×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Dec 2010
    Posts
    34

    Unhappy Cannot edit style sheet in Carbide.c++

    Hi,

    I place a button on the Qt designer.
    Right-click the button and select "Change Stylesheet..."
    in the Edit Style Sheet dialog, I add a color using the "Add Color" button
    "rgb(255, 180, 0)" added to the text area
    "invalid style sheet" in red at the bottom and OK button is disabled???

    Any idea? Please help!

    Thanks

  2. #2
    Nokia Developer Champion
    Join Date
    Nov 2009
    Location
    Minnesota, USA
    Posts
    3,209

    Re: Cannot edit style sheet in Carbide.c++

    Type "QPushButton{", press "Add Color" and select your color, then type "}".

  3. #3
    Registered User
    Join Date
    Dec 2010
    Posts
    34

    Re: Cannot edit style sheet in Carbide.c++

    Hi,

    Thanks for the response, but that did not work for me. I did not see the new color at design time nor at run time.

    It did let me save it, so I am assuming the syntax is ok.

    Any other ideas?

    Thanks

  4. #4
    Nokia Developer Champion
    Join Date
    Nov 2009
    Location
    Minnesota, USA
    Posts
    3,209

    Re: Cannot edit style sheet in Carbide.c++

    Well, you should consult the documentation for those attributes you actually can set in a style sheet. I don't know that color, as applied to a whole button, means anything.

Similar Threads

  1. style sheet for changing tableview border
    By srinivas.symbian in forum Qt
    Replies: 0
    Last Post: 2010-12-08, 07:25
  2. Style sheet problem with lists
    By AltoRetrato in forum Feedback on Forum Nokia's Renewal 2010
    Replies: 4
    Last Post: 2010-10-27, 13:30
  3. heading 1 style-sheet problem on 6630
    By mobhaku in forum Browsing and Mark-ups
    Replies: 0
    Last Post: 2005-05-20, 14:50

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •