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 Burks

    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 Burks

    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.

Voted #1 for:

  • Easiest to learn
  • Most time saving
  • Best support

Develop Cross-Platform Apps and Games 50% Faster!

  • Voted the best supported, most time-saving and easiest to learn cross-platform development tool
  • Based on the Qt framework, with native performance and appearance on all platforms including iOS and Android
  • Offers a variety of plugins to monetize, analyze and engage users
FREE!
create apps
create games
cross platform
native performance
3rd party services
game network
multiplayer
level editor
easiest to learn
biggest time saving
best support