Results 1 to 2 of 2

Thread: Qt / PyQt - Overlay widget

  1. #1
    Join Date
    Jun 2019
    Posts
    1
    Qt products
    Qt5
    Platforms
    Windows

    Default Qt / PyQt - Overlay widget

    How would I go about making a overlay widget with qt?

    iDGAc.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.

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Qt / PyQt - Overlay widget

    You could try

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

    Cheers,
    _

Similar Threads

  1. Glass widget overlay on top of application
    By harald.studer@gmial.com in forum Qt Programming
    Replies: 1
    Last Post: 28th May 2018, 18:30
  2. Replies: 4
    Last Post: 25th August 2015, 11:12
  3. Replies: 3
    Last Post: 11th March 2015, 04:21
  4. Layout (widget overlay)
    By whitefurrows in forum Qt Programming
    Replies: 3
    Last Post: 4th July 2009, 00:54

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.