Results 1 to 4 of 4

Thread: Making my QStackedWidget transperant

  1. #1
    Join Date
    Mar 2012
    Location
    India
    Posts
    102
    Thanks
    4
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Default Making my QStackedWidget transperant

    Hi,

    I want the pages in my QStackedWidget to be transparent. I tried using the method

    ui->stackedWidget->setWindowOpacity(0.0);

    but it doesn't work. Does anybody have any idea how to set my pages transparent ?

    Thanks for the help in advance.
    - Charvi

  2. #2
    Join Date
    May 2012
    Location
    Bangalore, India
    Posts
    271
    Thanks
    29
    Thanked 50 Times in 47 Posts
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Making my QStackedWidget transperant

    Ideally QStackedWidget is used to put mutiple widgets in it but only one widget visible at any time (which is on top of the stack). In your case you need a transparent layer (hence another widget which is transparent), hence I don’t see any difference if the underlying widget is QStackedWidget or something else. As mentioned before, go for QGraphicsView to create multiple layers.
    Heavy Metal Rules. For those about to rock, we salute you.
    HIT THANKS IF I HELPED.

  3. #3
    Join Date
    May 2012
    Posts
    136
    Thanks
    2
    Thanked 27 Times in 24 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Making my QStackedWidget transperant

    Hi,

    The stacked widget is always transparent. why do you want to set it again? to show more pages that are stacked? (this is not possible only one page is shown at a time)

  4. #4
    Join Date
    Mar 2012
    Location
    India
    Posts
    102
    Thanks
    4
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Default Re: Making my QStackedWidget transperant

    Quote Originally Posted by StrikeByte View Post
    Hi,

    The stacked widget is always transparent. why do you want to set it again? to show more pages that are stacked? (this is not possible only one page is shown at a time)
    Yes got it. Can't show all the pages with some pages transparent on the QStackedWidget. Only one page will be visible at a time.

Similar Threads

  1. QStackedWidget
    By sattu in forum Qt Programming
    Replies: 6
    Last Post: 28th September 2011, 14:44
  2. QTableWidget along with QStackedWidget
    By smiling in forum Qt Programming
    Replies: 5
    Last Post: 13th March 2010, 13:46
  3. Help with QStackedWidget
    By onírico in forum Newbie
    Replies: 6
    Last Post: 12th November 2009, 17:34
  4. QStackedWidget scrollable
    By mattia in forum Qt Tools
    Replies: 1
    Last Post: 19th April 2008, 10:02
  5. QT3 natively transperant widget
    By darkeye in forum Qt Programming
    Replies: 1
    Last Post: 6th February 2007, 10:28

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.