Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. New window
QtWS25 Last Chance

New window

Scheduled Pinned Locked Moved Solved Mobile and Embedded
7 Posts 2 Posters 1.1k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Y Offline
    Y Offline
    Yacinoben
    wrote on last edited by
    #1

    Hello,

    This is the first time I use QML, how i can open a new window (activity for android ) ?

    Thank's

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Can you give more details about what you are trying to do ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • Y Offline
        Y Offline
        Yacinoben
        wrote on last edited by
        #3

        When I click on a button , i would like that a new window opens

             onClicked:{
                        var component =  Qt.createComponent("Register.qml") ;
                        var window = component.createObject(root);
                        window.show()
                    }
        

        On desktop, it works, but in mobile the smartphone freeze, and no new window opens

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by SGaist
          #4

          Check that the file can be found. I suspect that they are not in the place you think they should go.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • Y Offline
            Y Offline
            Yacinoben
            wrote on last edited by
            #5

            The new window is active, but it is not shown. When I leave the application and when I the opens, the new window appears

            Register.qml

            ApplicationWindow {
                id: root
                visible: true
                width: 640
                height: 480
                
            /*
            code
            */  
            }
            
            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              How do you know it's active and not shown ?

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              1
              • Y Offline
                Y Offline
                Yacinoben
                wrote on last edited by
                #7

                Solved

                http://stackoverflow.com/questions/28961223/qt-android-new-qml-window-does-not-work-properly
                http://stackoverflow.com/questions/32092532/back-key-navigation-doesnt-work-even-though-focus-is-set-to-true

                1 Reply Last reply
                0

                • Login

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • Users
                • Groups
                • Search
                • Get Qt Extensions
                • Unsolved