Results 1 to 3 of 3

Thread: Visibility with styleSheets

  1. #1
    Join Date
    Apr 2009
    Location
    Valencia (Spain)
    Posts
    245
    Thanks
    38
    Thanked 19 Times in 19 Posts
    Qt products
    Qt4
    Platforms
    Symbian S60

    Default Visibility with styleSheets

    Hi,

    I'm trying to find a way to change the visibility of the widgets by the stylesheet, is it possible? I don't find anything and I've tried "isVisible", "setVisibility", "visible"...

    thanks!

  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: Visibility with styleSheets

    Hi,

    use the "qproperty-" prefix to manipulate properties of a widget.

    Lykurg

  3. The following 2 users say thank you to Lykurg for this useful post:

    jano_alex_es (19th January 2010), numbat (19th January 2010)

  4. #3
    Join Date
    Apr 2009
    Location
    Valencia (Spain)
    Posts
    245
    Thanks
    38
    Thanked 19 Times in 19 Posts
    Qt products
    Qt4
    Platforms
    Symbian S60

    Default Re: Visibility with styleSheets

    It doesn't seem to work. Right button - change stylesheet - qproperty-visible: false and nothing happens.

    I tried several ways, like with quotation marks or parenthesis.

Similar Threads

  1. [Qt4] QTextEdit & cursor visibility
    By Ti_Thom in forum Qt Programming
    Replies: 5
    Last Post: 27th September 2012, 06:04
  2. Visibility of QDialog
    By elizabeth.h1 in forum Qt Programming
    Replies: 7
    Last Post: 15th October 2009, 17:40
  3. Qtable visibility problem
    By jano_alex_es in forum Newbie
    Replies: 0
    Last Post: 21st May 2009, 11:51
  4. QTabWidget tab visibility
    By dcss-design in forum Qt Programming
    Replies: 2
    Last Post: 30th January 2007, 23:24
  5. QDataTable not visibility?
    By Dmitry in forum Newbie
    Replies: 1
    Last Post: 6th April 2006, 20:35

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.