For: http://doc.qt.nokia.com/4.7-snapshot...ml#setItemText
I wrote:
<widget class="QComboBox" name = "button55">
<property name="ItemText">
<number>0</number>
<string>fontCombosBox</string>
</property>
</widget>
<widget class="QComboBox" name = "button55">
<property name="ItemText">
<number>0</number>
<string>fontCombosBox</string>
</property>
</widget>
To copy to clipboard, switch view to plain text mode
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
&)
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&)
To copy to clipboard, switch view to plain text mode
I checked: http://www.kde.gr.jp/~ichi/qt/design...l-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
Bookmarks