Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Game Development
  4. Overlaying QML-based view on top of OpenGL-based game (using qtgameenabler)
QtWS25 Last Chance

Overlaying QML-based view on top of OpenGL-based game (using qtgameenabler)

Scheduled Pinned Locked Moved Game Development
5 Posts 3 Posters 3.2k 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.
  • D Offline
    D Offline
    diorahman
    wrote on last edited by
    #1

    Hi all!

    What is the best way to show QML-based view on top of OpenGL-based game? I'm trying to figure out if it is possible to be integrated with qtgameenabler (https://projects.developer.nokia.com/qtgameenabler/browser). I know there is an integration approach using QWidget as mentioned in here: http://doc.qt.nokia.com/4.7-snapshot/qml-integration.html But it seems it will cost me with expensive memory allocation.

    Thanks!

    Dio

    1 Reply Last reply
    0
    • D Offline
      D Offline
      diorahman
      wrote on last edited by
      #2

      I need the QML to show dialogs :-)

      1 Reply Last reply
      0
      • M Offline
        M Offline
        minimoog77
        wrote on last edited by
        #3

        On top of it, like overpainting, or like a new window? :)

        1 Reply Last reply
        0
        • D Offline
          D Offline
          diorahman
          wrote on last edited by
          #4

          just like dialog, a new window on harmattan :-)

          1 Reply Last reply
          0
          • C Offline
            C Offline
            capisce
            wrote on last edited by
            #5

            I think you can subclass QDeclarativeView (which is a QGraphicsView) and reimplement QGraphicsView::drawBackground() to do your rendering. You might need to call painter->beginNativePainting() and painter->endNativePainting() around your rendering code to let Qt know that the GL state might have changed.

            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