View Single Post
Posts: 58 | Thanked: 10 times | Joined on Dec 2009
#1
Hi,
I have a QInputDialog in which the user selects some options.
The thing I don't like is that it displays a combobox in the dialog.
Then you have to click on the combobox, and another dialog appears where you can select your value.

Is it possible to get rid of the combobox, and have only the selection list in the first dialog.

Maybe some screenshots will clarify:
This is what I have now:


And this is what I would like it to look like:


Btw. I'm using python
My current code:
Code:
items = QtCore.QStringList()
items << "Female" << "Male"
	
item, ok = QtGui.QInputDialog.getItem(self, 'Select voice type', "", items, 0, False)

Last edited by zolakt; 2010-05-09 at 12:28.