Results 1 to 3 of 3

Thread: QMainWindow->centralWidget with alpha?

  1. #1
    Join Date
    Dec 2008
    Location
    Mexico City
    Posts
    4
    Thanks
    1
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Red face QMainWindow->centralWidget with alpha?

    Hi,

    How can I make the central widget in a QMainWindow with alpha channel and see thow it, the background of the desktop or anything else back of my QMainwindow?

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

    Default Re: QMainWindow->centralWidget with alpha?

    Unfortunately this is platform dependent. In Unix you can use ARGB windows with the composite extension turned on in the X server. With Windows Vista you need to use the platform API regarding manipulation of the client area. With older Windows systems the effect might not be possible to achieve at all.

  3. The following user says thank you to wysota for this useful post:

    wafto (7th December 2008)

  4. #3
    Join Date
    Dec 2008
    Location
    Mexico City
    Posts
    4
    Thanks
    1
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Wink Re: QMainWindow->centralWidget with alpha?

    mm.. Ok, thanks.

Similar Threads

  1. QMainWindow setCentralWidget from ui widget, Qt4
    By alan in forum Qt Programming
    Replies: 5
    Last Post: 13th May 2008, 13:00
  2. QMainWindow child of a QDialog
    By brevleq in forum Qt Programming
    Replies: 2
    Last Post: 16th January 2008, 07:16

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.