Results 1 to 4 of 4

Thread: Style Sheets: Change font-style in QComboBox but not in corresponding popup

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Sep 2014
    Posts
    2
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Style Sheets: Change font-style in QComboBox but not in corresponding popup

    Unfortunately, this doesn't work. The problem doesn't seem to be with the selectors, but with applying a font-style to the QListView, as overriding styles in the QListView does work e.g. for background-colors.

    Quote Originally Posted by Rajesh.Rathod View Post
    I have tried one example in which combobox font is italics and dropdown font is normal, below is stylesheet used for that...
    QComboBox {font-style: italic;}
    QComboBox QListView { font-style: normal; }
    Which Version of Qt did you use for that? Maybe I should say I'm using Qt 5.2.1.

  2. #2
    Join Date
    Apr 2012
    Location
    India.
    Posts
    88
    Thanked 8 Times in 8 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Style Sheets: Change font-style in QComboBox but not in corresponding popup

    Qt 5.1.0 & Qt Creator 2.7.2.

Similar Threads

  1. QComboBox and style sheets
    By Krieger in forum Qt Programming
    Replies: 0
    Last Post: 21st March 2014, 10:02
  2. Do Qt Style Sheets support List-style-image?
    By daiheitan in forum Qt Programming
    Replies: 6
    Last Post: 12th March 2010, 01:41
  3. Style sheets and font weight bug
    By Oleg in forum Qt Programming
    Replies: 8
    Last Post: 14th February 2010, 22:19
  4. How to change cursor using style sheets?
    By 0x815 in forum Newbie
    Replies: 0
    Last Post: 13th September 2009, 13:35
  5. Change color of a link in QLabel using Style Sheets?
    By codeslicer in forum Qt Programming
    Replies: 2
    Last Post: 15th April 2008, 11:00

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.