Saturday, July 5th 2008, 1:01pm UTC+1

You are not logged in.

  • Login
  • Register

Dear visitor, welcome to QtForum.org. If this is your first visit here, please read the Help. It explains how this page works. You must be registered before you can use all the page's features. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Thursday, March 13th 2008, 12:54pm

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.
  • Go to the top of the page

Rate this thread