Results 1 to 6 of 6

Thread: How to show all Combobox items when has the focus

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Dec 2014
    Posts
    82
    Thanks
    10
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default How to show all Combobox items when has the focus

    Hi,

    I am making a gui application with wizard+wizardpages in which interaction is 100% keyboard so the user moves around widgets and options using tab.

    So i have a wizardpage with a line edit and a combobox wich has the next items : item1, item2, item3 and item4.

    What I have is: When user enters this page, the focus is on line edit, so he can write there and if he tab, he goes to the combobox which is showing item1 by default. If he press down arrow, combobox shows item2. The problem here is that with this way the user don't know all the options of the combobox unless he press down until the last option.

    What I want is: When user enters, the focus is on line edit (until here: ok). BUT then, when he tabs and go to combobox, I want this combobox to show all options (as when you click with the mouse, that you can see all the options in a list). I've been looking for dropdown options and views but couln't find one that makes that... do you know if there is any option to do that?

    And another question: by default in qt, when you have the focus on a widget like a button or a line edit or a combobox.... there is a thin blue border to mark it... is there any way to change that style when focus? I want to change that border to orange or disable it and change the combobox background color when it has the focus for example...

    Thank you so much!
    Last edited by roseicollis; 11th February 2015 at 11:54.

Similar Threads

  1. Replies: 2
    Last Post: 4th June 2014, 09:20
  2. To show all items from combobox using wildcard character *
    By Sanjay123 in forum Qt Programming
    Replies: 0
    Last Post: 28th September 2011, 14:40
  3. How to use Combobox to show a Ballon?
    By Bong.Da.City in forum Qt Programming
    Replies: 0
    Last Post: 19th August 2010, 11:21
  4. QSqlRelationalDelegate (ComboBox) id on first show
    By janus in forum Qt Programming
    Replies: 1
    Last Post: 5th September 2008, 13:58
  5. Combobox with checkable items
    By qtneuling in forum Qt Programming
    Replies: 1
    Last Post: 5th July 2008, 14:42

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.