helloworld example segmentation fault
Dear all,
I am having problem when running a qtopia helloworld application for ARM platform.
I compiled it successfully without any warnings or errors.
it gives segmentation fault when i launch helloworld application.
Please find the code below:
#include <qapplication.h>
#include <qpushbutton.h>
int main(int argc, char *argv[])
{
qDebug( "Entered my window handle " );
QApplication app(argc, argv);
cout<<"Before Button" << endl;
QPushButton hello("Hello world!", 0);
cout<<"Before resize"<< endl;
hello.resize(100, 30);
cout<<"After resixe" << endl;
app.setMainWidget(&hello);
cout<<"Before shoe" << endl;
hello.show();
cout<<"Before exec "<< endl;
return app.exec();
}
output:
mnt/ide $ ./linux_zarm -qws
Entered my window handle
Opened the /dev/ts successfully
Before Button
Before resize
After resixe
Before shoe
Segmentation fault
Please suggest on how this can be solved.
Thanks in advance.
Regards,
Vamshi.