Results 1 to 3 of 3

Thread: stylesheet help nedded

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #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: stylesheet help nedded

    Hi, use normal CSS selectors:
    Qt Code:
    1. button->setStyleSheet(
    2. "QPushButton {color:white; background:rgb(255,255,0); border-radius:10px; font:bold 16px; font-family:\"Arial\";}"
    3. "QPushButton:Pressed {padding-left: 5px; padding-top: 5px;}"
    4. );
    To copy to clipboard, switch view to plain text mode 

  2. The following user says thank you to Lykurg for this useful post:

    aj2903 (14th February 2009)

Similar Threads

  1. Replies: 7
    Last Post: 12th January 2011, 22:01
  2. StyleSheet syntax checking
    By MarkoSan in forum Qt Programming
    Replies: 5
    Last Post: 30th June 2008, 10:09
  3. StyleSheet components using Qt designer
    By Kostanev in forum Qt Tools
    Replies: 1
    Last Post: 21st April 2008, 08:28
  4. how to apply stylesheet to qtopia application using qss file
    By namita in forum Qt for Embedded and Mobile
    Replies: 2
    Last Post: 31st March 2008, 07:04
  5. Replies: 8
    Last Post: 17th March 2008, 14:04

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
  •  
Qt is a trademark of The Qt Company.