小弟最近做了个试验就是把QComboBox的编辑栏用
QLineEdit *edit = new QLineEdit;
QComboBox *combo=new QComboBox;
combo -> setEditable(true);
combo ->setLineEdit(edit);
edit->setText("123");
然后我用insert 语句插入了几条项目
combo->insertItem(0, "1111111111111");
combo->insertItem(1, "2222222222222");
然后我就发现。。 edit->setText("123");这条语句完全没有作用了%>_<%
有好心人知道这是为什么吗?
edit->setText("123");
什么时候才能有效果呢