Learn what Felgo offers to help your business succeed. Start your free evaluation today! Felgo for Your Business

Forums

OverviewFelgo 2 Support (Qt 5) › How to migrate a Qt/QML app project to a Felgo app project?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #22117

    Abe

    I want to migrate a Qt Creator project with a Qt/QML app for Android to a Felgo project. The existing project uses a SwipeView and qtquickcontrols2.conf for Universal theme styling:

    ApplicationWindow {

    SwipeView {
    id: swipeView
    anchors.fill: parent
    currentIndex: 2
    interactive: true

    Item {
    id: firstPage

    Loader {
    anchors.fill: parent
    sourceComponent: Qt.createComponent(“pages/firstPage.qml”, swipeView)
    }

    Item {

    }

    Item {

    }  

    }

    }

    I seems, that Felgo apps require a different QML type hierarchy, starting with Navigation, NavigationItem or NavigationStack. Different to the regular Qt creator, the Felgo IDE shows the mobile app like a desktop app with totally different screen resolution and colors.

    1. Which hierarchy of Navigation* QML Types do I have to use to migrate my SwipeView?
    2. How can I simulate the Mobile app experience with an appropriate screen resolution and ratio?
    3. How can I create and integrate a qtquickcontrols2.conf file

     

     

    #22148

    Abe

    I found a solution with the following QML type hierarchy:

    App {
        Navigation {
        navigationMode: navigationModeNone
            NavigationItem {
                SwipeView {
                    ...
            }
        }
    }

    Unfortunately the project works only in the annoying live view, that always pops up. It’s not possible to build and deploy the Felgo app to a developer device. I’ll post this issue in another thread.

Viewing 2 posts - 1 through 2 (of 2 total)

RSS feed for this thread

You must be logged in to reply to this topic.

Qt_Technology_Partner_RGB_475 Qt_Service_Partner_RGB_475_padded