开发者

How to insert item which type is QString to a ComboBox in Qt?

I have an item which type is QString:

for example: QString name="Name"

the question is: How can I put this name variable into a combobox?

I've read the Qt 4.6.2 docs but still cant figure out how to do that. Please do开发者_StackOverflow社区nt refer me back to that Qt 4.6.2 docs again..


I don't see the problem with the docs. Just do

myComboBox->addItem(myString);
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜