Results 1 to 3 of 3

Thread: Stylesheets and QFontComboBox Sub-control

  1. #1
    Join Date
    Oct 2008
    Posts
    306
    Thanks
    6
    Thanked 9 Times in 8 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Stylesheets and QFontComboBox Sub-control

    I've been trying to use a picture for the background of the "down-arrow" of QFontComboBox. If I try
    Qt Code:
    1. QFontComboBox::arrow_down{
    2. border:none;
    3. background-image: url("arrow.png" );
    4. }
    To copy to clipboard, switch view to plain text mode 
    Nothing happens. I tried that on a regular QComboBox and no image is displayed, but using gradients work fine.
    The effect I want to achieve with the font combobox, is a no-border box, not even the down-arrow. Just everything plain.

  2. #2
    Join Date
    Oct 2009
    Posts
    28
    Thanks
    4
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Stylesheets and QFontComboBox Sub-control

    Hello,

    I've one question to you, ¿have you added the arrow.png file to thr resources file of the project?.
    Maybe I'm wrong, but when I've tried to put an icon into a button or maybe into a menu bar, nothing has appear unless I add it into the resorurces file.

    I hope that helps.
    Regards.

  3. #3
    Join Date
    Oct 2008
    Posts
    306
    Thanks
    6
    Thanked 9 Times in 8 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: Stylesheets and QFontComboBox Sub-control

    It seems that I only needed to use :: before the sub-control I wished to configure.

Similar Threads

  1. Where to put my stylesheets?
    By martinn in forum Qt Programming
    Replies: 3
    Last Post: 2nd February 2010, 15:28
  2. Visibility with styleSheets
    By jano_alex_es in forum Newbie
    Replies: 2
    Last Post: 21st January 2010, 11:14
  3. Replies: 0
    Last Post: 16th December 2009, 09:45
  4. Stylesheets
    By FuryCradle in forum Newbie
    Replies: 2
    Last Post: 26th September 2009, 21:34
  5. stylesheets with RGB
    By tommy in forum Qt Programming
    Replies: 4
    Last Post: 13th December 2007, 01:02

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.