TheIndependentAquarius
21st August 2012, 10:00
For: http://doc.qt.nokia.com/4.7-snapshot/qcombobox.html#setItemText
I wrote:
<widget class="QComboBox" name = "button55">
<property name="ItemText">
<number>0</number>
<string>fontCombosBox</string>
</property>
</widget>
This results in:
ui_showmap.h:73:109: error: no matching function for call to ‘QComboBox::setItemText(QString)’
../../../../qtsdk-2010.05/qt/include/QtGui/qcombobox.h:206:10: note: candidate is: void QComboBox::setItemText(int, const QString&)
I checked: http://www.kde.gr.jp/~ichi/qt/designer-manual-15.html#1-19
Tried changing string to cstring. That didn't help either.
What's the way out?
P.S. Complier is g++ on openSUSE 11.3 with Qt 4.7
I wrote:
<widget class="QComboBox" name = "button55">
<property name="ItemText">
<number>0</number>
<string>fontCombosBox</string>
</property>
</widget>
This results in:
ui_showmap.h:73:109: error: no matching function for call to ‘QComboBox::setItemText(QString)’
../../../../qtsdk-2010.05/qt/include/QtGui/qcombobox.h:206:10: note: candidate is: void QComboBox::setItemText(int, const QString&)
I checked: http://www.kde.gr.jp/~ichi/qt/designer-manual-15.html#1-19
Tried changing string to cstring. That didn't help either.
What's the way out?
P.S. Complier is g++ on openSUSE 11.3 with Qt 4.7