Results 1 to 5 of 5

Thread: Qt5/C++ - QComboBox - change currrent text color and the dropdown text colour

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #5
    Join Date
    Oct 2006
    Posts
    105
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows
    Thanks
    13
    Thanked 4 Times in 4 Posts

    Default Re: Qt5/C++ - QComboBox - change currrent text color and the dropdown text colour

    Hello,

    Many thanks, this seems to work.

    Qt Code:
    1. ui->myComboBox->setStyleSheet("QComboBox { background-color: white }" "QListView { color: blue; }");
    To copy to clipboard, switch view to plain text mode 
    Regards
    Last edited by jimbo; 19th July 2016 at 22:33.

Similar Threads

  1. Replies: 2
    Last Post: 6th September 2011, 05:55
  2. change the text colour in Menubar
    By chinmayapadhi in forum Qt Programming
    Replies: 1
    Last Post: 16th August 2010, 01:31
  3. Replies: 3
    Last Post: 22nd January 2010, 16:46
  4. How to change Label text colour in Qt designer
    By sudhansu in forum Qt Programming
    Replies: 2
    Last Post: 6th January 2010, 12:31
  5. How to change Text colour in EditText?
    By phillip_Qt in forum Qt Programming
    Replies: 6
    Last Post: 6th March 2008, 08:48

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.