Results 1 to 2 of 2

Thread: Does etch-disabled-text work?

  1. #1
    Join Date
    Jun 2007
    Posts
    62
    Thanks
    28
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Question Does etch-disabled-text work?

    I'm using Qt 4.3.2 on Windows.

    My QPushButtons, when in the disabled state, have their text rendered with a drop-shadow. I wish them to render without a drop shadow.

    So in my *.qss file I had the following:

    Qt Code:
    1. QPushButton:disabled
    2. {
    3. etch-disabled-text: 0;
    4. }
    To copy to clipboard, switch view to plain text mode 

    which had absolutely no effect.

    Any idea what I am doing wrong?

  2. #2
    Join Date
    Aug 2007
    Location
    Gorakhpur, India
    Posts
    254
    Thanks
    8
    Thanked 14 Times in 14 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Re: Does etch-disabled-text work?

    I am telling you alternate way;
    You can set the palette of Disabled QPushButton using with QtDesigner or by code. before setting the disabled property, setAutoFillBackground set True. Hoping its help you.
    Anurag Shukla
    A man who never makes mistake is the man who never does anything! Theodre Rosvelt!

  3. The following user says thank you to ashukla for this useful post:

    WinchellChung (24th January 2008)

Similar Threads

  1. Unhandled exception in qatomic
    By NewGuy in forum Qt Programming
    Replies: 14
    Last Post: 23rd July 2013, 09:49

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.