Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. How to launch qml screen from C++ button click handler from slot
QtWS25 Last Chance

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

Scheduled Pinned Locked Moved QML and Qt Quick
4 Posts 2 Posters 885 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.
  • A Offline
    A Offline
    av2306
    wrote on last edited by
    #1

    Hi,

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

    Thanks.

    1 Reply Last reply
    0
    • p3c0P Offline
      p3c0P Offline
      p3c0
      Moderators
      wrote on last edited by
      #2

      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
      0
      • A Offline
        A Offline
        av2306
        wrote on last edited by
        #3

        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
        0
        • p3c0P Offline
          p3c0P Offline
          p3c0
          Moderators
          wrote on last edited by
          #4

          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
          0

          • Login

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