Nominate our 2022 Qt Champions!

Do I need Activity and Fragment in Qt for Android?

  • Hi; I develop mobile apps for Android, iOS and Windows Mobile. Do I need activity and fragment in Qt for Android? Have to I run Java codes for Activity and Fragment? I use .ui.qml files and I write to all the different pages on different items:

    // Example:
    Item { id: page1 }
    Item { id: page2 }
    Item { id: page3 }

    I know there are onCreate, onResume, onPause etc. methods on the activities. Are there these activity methods alternatives in Qt/QML? Is there activity and fragment alternative for Qt on mobile? Thanks.

  • How can I use onCreate, onResume etc. activity methods in QML Forms?

Log in to reply