Results 1 to 3 of 3

Thread: Style Sheet Question

  1. #1
    Join Date
    Dec 2008
    Location
    Istanbul, TURKEY
    Posts
    537
    Thanks
    14
    Thanked 13 Times in 13 Posts
    Qt products
    Qt4
    Platforms
    Windows Android

    Default Style Sheet Question

    Hi,

    I'm using the following style sheet;

    Qt Code:
    1. QFrame#myFrame { ... }
    To copy to clipboard, switch view to plain text mode 

    But I want this style sheet only effect the "myFrame" not it's children.

    How can I do this?

  2. #2
    Join Date
    May 2012
    Posts
    3
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Style Sheet Question

    If I understand correctly:

    myFrame->setStyleSheet("QFrame { }");

  3. #3
    Join Date
    Dec 2008
    Location
    Istanbul, TURKEY
    Posts
    537
    Thanks
    14
    Thanked 13 Times in 13 Posts
    Qt products
    Qt4
    Platforms
    Windows Android

    Default Re: Style Sheet Question

    Hi,

    Yes you definitely understand it correctly, but I forgot to say that I want to do this in my qss file.

Similar Threads

  1. Style Sheet Question
    By zgulser in forum Newbie
    Replies: 1
    Last Post: 26th April 2012, 19:27
  2. Style sheet related question
    By chandan in forum Newbie
    Replies: 1
    Last Post: 7th May 2010, 15:51
  3. Problems with Gradient style used through Style sheet on ARM platform
    By puneet.narsapur in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 25th January 2010, 12:48
  4. qt 4 color palette / style sheet question
    By killerwookie99 in forum Qt Programming
    Replies: 1
    Last Post: 6th November 2008, 23:05
  5. How to use style sheet
    By safknw in forum Qt Programming
    Replies: 1
    Last Post: 20th November 2006, 13:05

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.