this could sound strange and it is more a curiosity then a question.
I have a simple combobox with 2 elements in Qt Designer.
The 2 combobox elements are vertical
and horizontal
but for the script I'm writing I need to get only v
or h
.
Usually I easily do it with a loop like:
name = self.combbox.currentText()
if name == 'vertical':
name = 'v'
else:
name = 'h'
and that's ok.
I was just thinking if there is a way in Qt Designer to assign a kind of tag
to the elements so the user sees the complete text but with the code it can be retrieved the tag
.
Thanks to all