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. Transparent widgets

Transparent widgets

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 563 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.
  • B Offline
    B Offline
    bask185
    wrote on last edited by bask185
    #1

    My GUI application has 5 seperate displays, these are 5 different Qtable widgets which lie over eachother. Each Table widget displays lettres and numbers in certain colors. The machine connected to the MMI (platform for the app) can send instructions whichs tell which of the 5 Qtable widgets is to be displayed. For this I use:

    monitors[index2]->raise(); // monitors are the 5 Qtable widgets
    

    But now I have been given new information, except for these 5 Qtable widgets there are also 5 graphical pages, for this I am using a QGraphicView widget. At the moment I only have 1 graphic page which has a rectangle, dot and a number.

    The items of the selected QGraphicView widget are to be displayed over the table widget, but I still want to be able to see the Qtable widgets. Even when I would raise another monitor, I still want one of the five graphic pages.

    I can ofcourse raise a graphic widget every time after I raise Qtable widget so that the graphic widget is on top of the widget stack, but can I make the graphic widget transparent so that I can still see the content of the Qtablewidget underneath the Qgraphic widget, where there are no graphic objects?

    So Qgraphic widget must be an overlay over a Qtable widget

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

      Hi,

      I don't remember whether the Z index of a QGraphicsProxyWidgetItem is fixed but it could offer a way to have everything in a QGraphicsView and manage everything from there.

      Hope it helps

      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