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. Display QtWidget inside QML object

Display QtWidget inside QML object

Scheduled Pinned Locked Moved Solved QML and Qt Quick
qmlwidgetsintegration
4 Posts 3 Posters 1.5k 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.
  • M Offline
    M Offline
    MoaMoaK
    wrote on 8 Sept 2017, 13:52 last edited by
    #1

    Hi,
    I have some widgets made in C++ that work fine. I would like to make a QML object that contains them.
    Is there a way to create one of those widget, to whatever I want with it in C++, pass it to a QML view and tell QML to display it as a normal C++ widget ?
    Some widgets could be described as quite complex (repainting, event filters, ...) and in a perfect world the solution would keep those functionalities.
    I haven't found any mention of this kind of stuff yet.

    MoaMoaK

    R 1 Reply Last reply 8 Sept 2017, 13:54
    0
    • M MoaMoaK
      8 Sept 2017, 13:52

      Hi,
      I have some widgets made in C++ that work fine. I would like to make a QML object that contains them.
      Is there a way to create one of those widget, to whatever I want with it in C++, pass it to a QML view and tell QML to display it as a normal C++ widget ?
      Some widgets could be described as quite complex (repainting, event filters, ...) and in a perfect world the solution would keep those functionalities.
      I haven't found any mention of this kind of stuff yet.

      MoaMoaK

      R Offline
      R Offline
      raven-worx
      Moderators
      wrote on 8 Sept 2017, 13:54 last edited by
      #2

      @MoaMoaK
      short answer: no

      --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
      If you have a question please use the forum so others can benefit from the solution in the future

      1 Reply Last reply
      3
      • V Offline
        V Offline
        VRonin
        wrote on 8 Sept 2017, 13:55 last edited by
        #3

        Probably of little help but the opposite is possible. You can show QML inside a QWidget with QQuickWidget

        "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
        ~Napoleon Bonaparte

        On a crusade to banish setIndexWidget() from the holy land of Qt

        1 Reply Last reply
        1
        • M Offline
          M Offline
          MoaMoaK
          wrote on 8 Sept 2017, 14:46 last edited by
          #4

          Ok thx guys, that was what I was worried about. I think I'll have to redo the design with a QML component though.

          1 Reply Last reply
          0

          1/4

          8 Sept 2017, 13:52

          • Login

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