Results 1 to 3 of 3

Thread: Using css for all QFrame's except one.

  1. #1
    Join Date
    Nov 2007
    Posts
    291
    Thanks
    85
    Thanked 1 Time in 1 Post

    Default Using css for all QFrame's except one.

    hi
    i want to use a common style sheet for all the QFrame,s which can be done like this.
    Qt Code:
    1. QApplication a(argc, argv);
    2. a.setStyleSheet("QFrame {background-image: url(qt.png);}");
    To copy to clipboard, switch view to plain text mode 

    if any one of the QFrame object needs different stylesheet ,how to get it.

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Using css for all QFrame's except one.

    You may use selectors.
    J-P Nurmi

  3. #3
    Join Date
    Nov 2007
    Posts
    291
    Thanks
    85
    Thanked 1 Time in 1 Post

    Default Re: Using css for all QFrame's except one.

    You may use selectors.
    A selector Matches all the widgets ,i want to exclude one of them.
    Last edited by babu198649; 10th July 2008 at 09:12.

Similar Threads

  1. Fall back to untranslated mode
    By fullmetalcoder in forum Qt Programming
    Replies: 10
    Last Post: 2nd July 2007, 09:33
  2. How setEnabled() works on QFrames.
    By Doug Broadwell in forum Newbie
    Replies: 4
    Last Post: 18th October 2006, 20:55

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.