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 make a QQuickView appear in the main window?

How to make a QQuickView appear in the main window?

Scheduled Pinned Locked Moved QML and Qt Quick
3 Posts 2 Posters 681 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.
  • G Offline
    G Offline
    ggwolf
    wrote on last edited by
    #1

    Trying to replace a custom widget with a QQuickView, originally to make the custom widget appear in the main window I would use setCentralWidget(), which takes a QWidget *. Is there a way to convert a QQuickView to make it compatible with setCentralWidget() ?

    1 Reply Last reply
    0
    • G Offline
      G Offline
      ggwolf
      wrote on last edited by
      #2

      "answer":http://blog.qt.digia.com/blog/2013/02/19/introducing-qwidgetcreatewindowcontainer/

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

        Hi,

        Isn't QQuickWidget what you are looking for ?

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - 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