PDA

View Full Version : A QComboBox item produces segmentation fault when used



prykHetQuo
18th March 2009, 18:52
OS: Ubuntu Linux 8.10 x64

QT version: 4.4.3


I have a problem using a QComboBox, it produces a segmentation fault when accessed.

I have created a simple application that reproduces the problem, and I have uploaded the source code at my site:

http://www.cpp-software.net/temp/test.zip


Any help will be greatly appreciated!

spirit
18th March 2009, 18:56
add this line and enjoy!


Test(QWidget *parent= 0):QMainWindow(parent)
{
setupUi(this);//<--- this

spirit
18th March 2009, 18:57
btw, remove ";" from this line


...
if(app.exec()!= 0)
...

prykHetQuo
19th March 2009, 00:13
OK, thank you both.