Results 1 to 2 of 2

Thread: QWidget over a QGLWidget

  1. #1
    Join Date
    Dec 2014
    Posts
    1
    Qt products
    Qt5

    Default QWidget over a QGLWidget

    Hi,

    I know there is an eternal question and there are a lot of post about this but without a solution.

    I try to create a HUD (QWidget) on a QGLWidget with transparency but I have of black background. Actually I create QWidget on a separate window but it's a little dirty. I prefer integrate HUD into the main window.

    I try to use QGraphicsView / QGraphicsScene but I cant create a good exemple (my QGLWidget catch some event and with QGraphicsView event is not send to QGLWidget).

    With Qt5.3 or Qt5.4 there is another method to display QWidget over a QGLWidget ?

    Thanks in advance,
    Niko

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: QWidget over a QGLWidget

    Why do you need to display a widget over QGLWidget? Why can't you use an overlay?
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. Render QWidget ontop of QGLWidget
    By scarecr0w132 in forum Newbie
    Replies: 1
    Last Post: 13th November 2013, 09:24
  2. problem with displaying QGLWidget in QWidget made in desinger
    By yasirsaleem in forum Qt Programming
    Replies: 4
    Last Post: 9th March 2011, 18:46
  3. QWidget/QGlwidget ( + window opacity )
    By medved6 in forum Qt Programming
    Replies: 0
    Last Post: 5th October 2010, 06:14
  4. Render QWidget within QGLWidget
    By crazymonkey in forum Newbie
    Replies: 29
    Last Post: 26th September 2010, 13:54
  5. Transparent QWidget on QGLWidget
    By showhand in forum Qt Programming
    Replies: 2
    Last Post: 27th November 2006, 01:00

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.