Results 1 to 2 of 2

Thread: implementing stylesheet example px is not recognized

  1. #1
    Join Date
    Apr 2017
    Posts
    43
    Thanks
    6
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default implementing stylesheet example px is not recognized

    the line QRadioButton::indicator "indicator" does not name a type

    Also where can the png files be found?

    Here is the example

    Qt Code:
    1. QRadioButton::indicator
    2. {
    3. width: 13px;
    4. height: 13px;
    5. }
    6.  
    7. QRadioButton::indicator::unchecked
    8. {
    9. image: url(:/images/radiobutton_unchecked.png);
    10. }
    11.  
    12. QRadioButton::indicator:unchecked:hover
    13. {
    14. image: url(:/images/radiobutton_unchecked_hover.png);
    15. }
    16.  
    17. QRadioButton::indicator:unchecked:pressed
    18. {
    19. image: url(:/images/radiobutton_unchecked_pressed.png);
    20. }
    21.  
    22. QRadioButton::indicator::checked
    23. {
    24. image: url(:/images/radiobutton_checked.png);
    25. }
    26.  
    27. QRadioButton::indicator:checked:hover
    28. {
    29. image: url(:/images/radiobutton_checked_hover.png);
    30. }
    31.  
    32. QRadioButton::indicator:checked:pressed
    33. {
    34. image: url(:/images/radiobutton_checked_pressed.png);
    35. }
    To copy to clipboard, switch view to plain text mode 

  2. #2
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    4,058
    Thanks
    233
    Thanked 649 Times in 639 Posts
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows Android

    Default Re: implementing stylesheet example px is not recognized

    Qt Code:
    1. QRadioButton::indicator::checked
    To copy to clipboard, switch view to plain text mode 

    One too many ":" after "indicator".
    <=== The Great Pumpkin says ===>
    Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.

Similar Threads

  1. Header not recognized by QT
    By tchow in forum Qt Programming
    Replies: 1
    Last Post: 28th April 2013, 08:21
  2. Right ALT key not recognized
    By papillon in forum Newbie
    Replies: 1
    Last Post: 21st October 2011, 09:06
  3. configure is not recognized
    By Cucus in forum Installation and Deployment
    Replies: 3
    Last Post: 27th August 2011, 05:46
  4. QGraphicItem is not recognized
    By stella1016 in forum Qt Programming
    Replies: 3
    Last Post: 1st July 2011, 16:33
  5. mingw32-make not recognized
    By freekill in forum Installation and Deployment
    Replies: 4
    Last Post: 8th January 2010, 16:26

Tags for this Thread

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.