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. Is there a way to add QGraphicsItem to QOpenGLWindow
Qt 6.11 is out! See what's new in the release blog

Is there a way to add QGraphicsItem to QOpenGLWindow

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 3 Posters 594 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.
  • A Offline
    A Offline
    aminM
    wrote on last edited by
    #1

    I have drawn a background image with QOpenGLWindow . Can I add some QGraphicsItems to it?

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

      Hi
      As far as i know, that is not possible as QOpenGLWindow knows nothing about
      QGraphicsItems.

      1 Reply Last reply
      0
      • O Offline
        O Offline
        ollarch
        wrote on last edited by
        #3

        Hi,

        Use a QGraphicsScene and a QGraphicsView. Add a QGraphicsPixmapItem to draw your background image and add QGraphicsItems.

        1 Reply Last reply
        2

        • Login

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