PDA

View Full Version : Qt / PyQt - Overlay widget



mattj
9th July 2019, 19:26
How would I go about making a overlay widget with qt?

13185

https://i.stack.imgur.com/OVgLP.png

I've considered using a QPaintEvent or a QGraphicsScene, but I want to be able to add widgets and for the widget to not occupy space in a layout, causing other widgets to shift when the popup appears.

anda_skoa
10th July 2019, 19:53
You could try

1) QMenu with QWidgetActions
2) QDialog with QListView and custom item delegate

Cheers,
_