nickich
1st April 2009, 17:32
Hi,
This code hangs on embedded when I touch the combobox:
#include <QtGui>
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
QWidget w;
QVBoxLayout bl(&w);
QComboBox pcb;
pcb.addItem("1");
pcb.addItem("2");
pcb.addItem("3");
bl.addWidget(&pcb);
bl.addStretch();
w.setLayout(&bl);
w.show();
return a.exec();
}
when I comment "pcb.addItem("x")" lines the application doesn't hang and it seems that the combobox accepts the events (seems to be redrawed). With these lines uncommented it hangs when the combo box is touched.
I noticed it hangs with QRadioButton also (instead of QComboBox), but with QPushButton - doesn't (it works).
Any ideas?
Regards,
Nikolay
This code hangs on embedded when I touch the combobox:
#include <QtGui>
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
QWidget w;
QVBoxLayout bl(&w);
QComboBox pcb;
pcb.addItem("1");
pcb.addItem("2");
pcb.addItem("3");
bl.addWidget(&pcb);
bl.addStretch();
w.setLayout(&bl);
w.show();
return a.exec();
}
when I comment "pcb.addItem("x")" lines the application doesn't hang and it seems that the combobox accepts the events (seems to be redrawed). With these lines uncommented it hangs when the combo box is touched.
I noticed it hangs with QRadioButton also (instead of QComboBox), but with QPushButton - doesn't (it works).
Any ideas?
Regards,
Nikolay