Results 1 to 3 of 3

Thread: Semi-Transparent Widgets over OpenGL rendering

  1. #1
    Join Date
    Aug 2010
    Posts
    3

    Default Semi-Transparent Widgets over OpenGL rendering

    Hi there,

    I found this article on the web: http://doc.trolltech.com/qq/qq26-openglcanvas.html.
    It says that with Qt 4.4 the only way to have semi-transparent widgets as overlay on OpenGL renderings is to use QGraphicsScene instead of QGLWidget.
    Did that change with the latest version of Qt or is this still the only way to go?

    Thanks a lot.

  2. #2
    Join Date
    Aug 2007
    Posts
    166
    Thanks
    16
    Thanked 14 Times in 14 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Semi-Transparent Widgets over OpenGL rendering

    Still the same. Though there is nothing bad in using QGraphicsScene.

  3. #3
    Join Date
    Aug 2010
    Posts
    3

    Default Opaque Button Foregrounds on Semi-Transparent Dialog

    Thank you!
    So i successfully implemented an OpenGL rendered scene with a semi-transparent QDialog on top. On the dialog I have a couple of buttons, that have images on them. Those images are png files with transparent background and opaque foreground.

    What I want to achieve is, that the image foreground on the buttons is 100% opaque, while the button backgrounds and the dialog itself are semi-transparent. Apparently the setWindowOpacity call for the dialog has an effect also on the child-buttons though: the opaque image foreground is also shown semi-transparent.
    Is there a way to get the image foreground on the buttons 100% opaque while the rest is still semi-transparent?
    Last edited by ddpro; 19th August 2010 at 03:05.

Similar Threads

  1. Can QDockWidget be semi-transparent?
    By PolyVox in forum Qt Programming
    Replies: 3
    Last Post: 17th March 2009, 21:09
  2. Non-transparent QWidget on semi-transparent parent
    By EuroElessar in forum Qt Programming
    Replies: 0
    Last Post: 29th August 2008, 17:20
  3. qt4.3 semi-transparent widgets winxp
    By kernel_panic in forum Qt Programming
    Replies: 2
    Last Post: 19th July 2007, 07:25
  4. Semi transparent QDialog
    By cs_raja in forum Qt Programming
    Replies: 3
    Last Post: 23rd May 2007, 11:14
  5. QTextEdit with semi-transparent background
    By ber_44 in forum Qt Programming
    Replies: 6
    Last Post: 29th April 2007, 01:01

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.