Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Integrating qml to an existing qQWidget application
Qt 6.11 is out! See what's new in the release blog

Integrating qml to an existing qQWidget application

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 2 Posters 418 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.
  • P Offline
    P Offline
    Parvathy_R
    wrote on last edited by
    #1

    Hi,
    I am new to Qt. I have an existing Qt Widgets desktop application. I have qml file for the UI structure. i know qml shall work with qtquick applications. But is there a way without much changing my existing code i could integrate qml to the qwidgets application?

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

      See https://doc.qt.io/qt-6/qquickwidget.html or https://doc.qt.io/qt-6/qquickview.html depending on your requirements.

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • P Offline
        P Offline
        Parvathy_R
        wrote on last edited by Parvathy_R
        #3

        i am using qt 5.12. It has more than 1 view. I am new to qml also. So can you tell me if i am correct, if i am using qml, all the controls should come in qml right, and on cpp functions can be called in qml and i am also using openGLWidgts, in qml what should be used?Is there a way i can keep the qwidgets as such without converting to qquickwidgets?

        jsulmJ 1 Reply Last reply
        0
        • P Parvathy_R

          i am using qt 5.12. It has more than 1 view. I am new to qml also. So can you tell me if i am correct, if i am using qml, all the controls should come in qml right, and on cpp functions can be called in qml and i am also using openGLWidgts, in qml what should be used?Is there a way i can keep the qwidgets as such without converting to qquickwidgets?

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @Parvathy_R Then replace the 6 with 5 in these URLs...

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          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