qcombobox

Autofill QComboBox with data from database

I have created a QComboBox delegate which I use for a single column of a QTableView (each cell of that column is an individual combobox), the data which I want to display in my combobox returns from the database as a string of id's separated by a ';', my question is, how do I populate my combobox with this data retrieved by the database....

Font size QComboBox items?

Say I fill QComboBox with a number on each line. And lines are very close vertically. How can I control vertical the distance? ...

QComboBox : select on Key_space

Hi, I work on a Qt application in an embedded system and I only have a remote on which the main key is Key_space. So, I would like to have a QComboBox on which you can select an item when pushing the Key_space button. How to do it ? Maybe I should inherit from QComboBox and redefine keyPressEvent ? ...

QComboBox replacing edit text if case differs from existing item.

Hi I'm having a problem with QComboBox not allowing me to change the edit text to anything existing item of differing case. Example code is below. What I'd like to do is enter 'one' into a combo box already containing the item 'One' without the side effect of the text being changed to 'One'. Currently it's changed back to 'One' as...

PyQt (or just QT). How to get QComboBox to fire a signal whenever it is set to a value (even if unchanged)

I am using PyQt4, but this is general enough that it could just apply to QT. I have a series of QComboBoxes that I fill from left to right (i.e. selecting an item in the leftmost will populate the next one. Selecting an item in that one will populate the next, and so on) I am having difficulty getting my signals to fire under all situa...