Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
QCombobox read varialble like int
Creatorczyk last edited by
I want to read data from my QComboBox to int variable but it's problem because QComboBox return QString. Is there any easy way to get this data as int?
JonB last edited by JonB
Or, if you put
ints in originally, you might consider https://doc.qt.io/qt-5/qcombobox.html#setItemData to store the integer value in the data.