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. QGraphicsView transparent over another QGraphicsView

QGraphicsView transparent over another QGraphicsView

Scheduled Pinned Locked Moved General and Desktop
2 Posts 1 Posters 4.5k Views 1 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.
  • E Offline
    E Offline
    evergreen
    wrote on last edited by
    #1

    I know this subject is frequent on forums but I can't find a solution to my specific problem.

    I've got a QMAinWindow, which centralWiget is a QMdiArea composed by several QGraphicsView.
    I want to display a QGraphicsView over this QMainWidow and it's QGraphicsView s.
    I set the MainWindow as parent of my new QGraphicsView and apply a transparent
    brush on it ( setBackgroundBrush(Qt::transparent);
    viewport()->setAutoFillBackground(false);
    scene->setBackgroundBrush(Qt::transparent);
    )

    The result : the new QGraphicsView is not transparent when it passes over a QGraphicsView from the QMidAre of the MainWindow.
    If there's no QGraphicsView, there's no problem it's transparent (I've got a pixmap for background of my mainWaindow and it appears)

    If someone knows how to fix this problem it would be welcome
    Thanks

    1 Reply Last reply
    0
    • E Offline
      E Offline
      evergreen
      wrote on last edited by
      #2

      I can't find a solution to that problem.
      Nobody knows what can be done?

      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