×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Dec 2010
    Posts
    34

    Unhappy QCombobox text color same as background color

    Hi,

    I am having problem seeing the options of a QCombobox widget since both the text color and the background color of it are white by default. The combobox looks ok in the simulator but not on the device.

    I tried changing the color using this code but it did not make any difference:
    Code:
    QPalette p(ui.myComboBox->palette());
    p.setColor(QPalette::Background, Qt::black);
    ui.myComboBox->setPalette(p);
    Any help would be appreciated.

    Thanks

    PS. I am using Qt 4.6, S60 5th edition SDK and carbide.c++

  2. #2
    Registered User
    Join Date
    Dec 2010
    Posts
    28

    Re: QCombobox text color same as background color

    Try changing it in the UI.

Similar Threads

  1. Chage Menupane text color & background color
    By LAS_VEGAS in forum Symbian User Interface
    Replies: 2
    Last Post: 2012-04-13, 12:09
  2. Custom background & text color for CBA and StatusPane
    By olhed in forum Symbian User Interface
    Replies: 7
    Last Post: 2009-10-16, 11:57
  3. Replies: 0
    Last Post: 2009-04-23, 08:59
  4. CEikRichtextEditor Background color for text
    By gmsk19 in forum Symbian User Interface
    Replies: 1
    Last Post: 2008-07-18, 09:39
  5. Replies: 0
    Last Post: 2007-09-12, 14:30

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×