Results 1 to 3 of 3

Thread: QSpinBox StyleSheet

  1. #1
    Join Date
    Aug 2007
    Posts
    166
    Thanks
    16
    Thanked 14 Times in 14 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Question QSpinBox StyleSheet

    Hi,

    How can I set mirror effected background on my SpinBox, here the CSS code that I want to use:
    Qt Code:
    1. background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #fcfcfc, stop: 0.5 #fbfbfb, stop: 0.6 #f7f7f7, stop:1 #f5f5f5);
    To copy to clipboard, switch view to plain text mode 

    It work perfect for example on QLineEdit but on QSpinBox it isn't work at all. Is there a fix or this is a bug ?
    The interesing is that when I set static color like #ff0000 (red) it work.
    Btw the :hover option is not working at all for background colors.

    Thanks!

  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: QSpinBox StyleSheet

    Looks like I can reproduce the problem too. I'd suggest you to report the problem to the task tracker.
    J-P Nurmi

  3. #3
    Join Date
    Aug 2007
    Posts
    166
    Thanks
    16
    Thanked 14 Times in 14 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QSpinBox StyleSheet

    Ok I reported it.

Similar Threads

  1. eventFilter and clicking inside QSpinBox
    By T4ng10r in forum Qt Programming
    Replies: 2
    Last Post: 6th March 2007, 22:02
  2. QSpinBox and setStylesheet problem
    By Ace-X in forum Qt Programming
    Replies: 2
    Last Post: 19th January 2007, 12:21
  3. QSpinBox with checkbox
    By :db:sStrong in forum Qt Programming
    Replies: 4
    Last Post: 17th January 2007, 14:22
  4. float value to Qspinbox
    By nErnie in forum Qt Programming
    Replies: 6
    Last Post: 17th October 2006, 09:16
  5. Problem reimplementing QSpinBox in a custom widget
    By hvengel in forum Qt Programming
    Replies: 1
    Last Post: 30th March 2006, 09:12

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.