QT QCombobox 操作

Qt 为QCombobox添加项

           其实很简单,代码如下:

            QComboBox *combobox = new QComboBox(this);             QStringList strings;             strings << tr("自由") << tr("典型") << tr("默认") ;             combobox->addItems(strings);

posted @ 2013-10-30 19:48  野狼谷  阅读(313)  评论(0)    收藏  举报