Results 1 to 2 of 2

Thread: QHBoxLayout & QVBoxLayout

  1. #1
    Join Date
    Feb 2010
    Posts
    23
    Qt products
    Qt3 Qt4
    Platforms
    Windows Symbian S60

    Default QHBoxLayout & QVBoxLayout

    Dear all,

    QHBoxLayout & QVBoxLayout will support transparent backgrounds or not ?

    QHboxLayout & QVBoxLayout doesn't contain

    1.setBackgroundRole
    2.setStyleSheet
    3.and not supporting QPalatte

    is there any way to make QHBoxLayout and QVBoxLayout to make transparency background?

  2. #2
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: QHBoxLayout & QVBoxLayout

    A layout has no background, so you can't make it transparent. But since it is not there it is "transparent". Probably your have to set the background roles of the widgets inside your layout.

    A layout only arranges widgets and has no paint event/method.

Similar Threads

  1. Problem with QHBoxlayout & QVBoxlayout
    By phillip_Qt in forum Qt Tools
    Replies: 5
    Last Post: 13th January 2009, 10:26
  2. QVBoxLayout and QHBoxLayout problem
    By fmariusd in forum Qt Programming
    Replies: 2
    Last Post: 10th January 2009, 20:58
  3. class QHBoxLayout
    By csvivek in forum Installation and Deployment
    Replies: 2
    Last Post: 10th April 2008, 07:57
  4. QScrollView with a QVboxlayout
    By rishid in forum Newbie
    Replies: 1
    Last Post: 18th January 2008, 16:14
  5. Replies: 3
    Last Post: 19th April 2006, 20:53

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.