Results 1 to 3 of 3

Thread: Styling each item in a QComboBox

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2008
    Posts
    27
    Thanks
    8
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Styling each item in a QComboBox

    Hi,

    I am using a touch screen and have some combo boxes to select settings. Problem I am having is the drop down items are too small / close together to be able to accurately select the item the user wants on the first touch.

    I tried styling the QComboBox but have not had any luck accessing each item in the QListView sub-control in the combo box.

    I tried setting a style sheet of something like:
    Qt Code:
    1. QComboBox QListView::item * { text-size: 16px; padding:4px; }
    To copy to clipboard, switch view to plain text mode 

    This did not do anything.

    Any suggestions?

    Thanks
    Last edited by jpn; 23rd February 2008 at 08:36. Reason: missing [code] tags

Similar Threads

  1. QComboBox item disable?
    By Equilibrium in forum Qt Programming
    Replies: 8
    Last Post: 28th November 2007, 17:41
  2. QComboBox styling
    By Oleg in forum Qt Programming
    Replies: 3
    Last Post: 25th November 2007, 23:48
  3. Styling a QComboBox
    By Enygma in forum Qt Programming
    Replies: 6
    Last Post: 23rd August 2007, 10:22
  4. Cannot select an item in QComboBox
    By Declan in forum Qt Programming
    Replies: 2
    Last Post: 19th April 2007, 08:08
  5. QComboBox and item
    By drow in forum Qt Programming
    Replies: 4
    Last Post: 14th June 2006, 09:04

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.