Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    How to launch qml screen from C++ button click handler from slot

    QML and Qt Quick
    2
    4
    727
    Loading More Posts
    • 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.
    • A
      av2306 last edited by

      Hi,

      I have a.qml. I want to launch this from already existing C++ button handler. Any inputs?

      Thanks.

      1 Reply Last reply Reply Quote 0
      • p3c0
        p3c0 Moderators last edited by

        Hi,

        bq. I want to launch this from already existing C++ button handler.

        Where is this C++ button handler ?
        Also Check "this":http://qt-project.org/doc/qt-5/qqmlcomponent.html

        157

        1 Reply Last reply Reply Quote 0
        • A
          av2306 last edited by

          Where is this C++ button handler ?

              Few Screens implemented with QWindow sub-class. New screens implementing in QML. So, I want to show the qml screen from slot of QWindow derived class.
          
          1 Reply Last reply Reply Quote 0
          • p3c0
            p3c0 Moderators last edited by

            Do you want these new QML loaded inside the class ?
            If yes, then better option would be to use "QQuickWidget":http://qt-project.org/doc/qt-5/qquickwidget.html

            157

            1 Reply Last reply Reply Quote 0
            • First post
              Last post