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. Qt Widgets in Qt Quick application
Qt 6.11 is out! See what's new in the release blog

Qt Widgets in Qt Quick application

Scheduled Pinned Locked Moved Solved QML and Qt Quick
5 Posts 2 Posters 919 Views 2 Watching
  • 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.
  • B Offline
    B Offline
    Beatler
    wrote on last edited by
    #1

    Hello to all. I tried to find this information in google, but I can’t find anything about that.
    I have qt quick app, and I need to add several modal windows with some table views. This tables are pretty simple, but I need to modify them from c++ code, but working with qml’s tableview component is pretty hard, it is more easier to use qtableview widget for me.
    So is there a way to create qt widgets modal window inside qt quick application?
    E.g. I am adding qt widgets form with .ui file and it’s class, then after clicking some button in qt quick window I am calling cpp function, that creates instance of that class and shows that form.

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

      Hi and welcome to devnet,

      You should take a look at KDAB's DeclarativeWidgets project.

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

      B 1 Reply Last reply
      1
      • SGaistS SGaist

        Hi and welcome to devnet,

        You should take a look at KDAB's DeclarativeWidgets project.

        B Offline
        B Offline
        Beatler
        wrote on last edited by
        #3

        @SGaist thank you a lot for your replay.
        The library you’ve mentioned allows to use qt widgets in qml, but for me it is more appropriate to create a class, inherited from QDialog and call exec(), but I can’t do that , because I don’t have QApplication lunched, is there a way to do that without external libraries?

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

          If you want to use widgets in your application you will need to have a QApplication instance in place of your QGuiApplication.

          As for no external libraries, you can but you will have to re-implement the concepts done in DeclarativeWidgets.

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

          B 1 Reply Last reply
          0
          • SGaistS SGaist

            If you want to use widgets in your application you will need to have a QApplication instance in place of your QGuiApplication.

            As for no external libraries, you can but you will have to re-implement the concepts done in DeclarativeWidgets.

            B Offline
            B Offline
            Beatler
            wrote on last edited by
            #5

            @SGaist Thank you a lot!

            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