I have been using qt for embedded linux 4.5 on Embedded(arm) platform. While running simple qt application I got segmentation fault. I traced out and found that while creating object for QApplication its shows segmentation fault.(I have installed shared Lib at right location)
Below is my code..
int main(int argc, char * argv[])
{
printf("Inside main\n");
printf("object created \n");
Widget w;
w.show();
app.exec();
}
./my
Inside main
Segmentation fault
int main(int argc, char * argv[])
{
printf("Inside main\n");
[B]QApplication app(argc, argv);[/B] // Got error here
printf("object created \n");
Widget w;
w.show();
app.exec();
}
./my
Inside main
Segmentation fault
To copy to clipboard, switch view to plain text mode
But I am able to create Object for QCoreApplication
int main(int argc, char * argv[])
{
printf("Inside main\n");
printf("object created \n");
a.arguments();
a.flush();
}
./my
Inside main
object created
int main(int argc, char * argv[])
{
printf("Inside main\n");
[B]QCoreApplication app(argc, argv);[/B]
printf("object created \n");
a.arguments();
a.flush();
}
./my
Inside main
object created
To copy to clipboard, switch view to plain text mode
I don't understand why its not creating object for QApplication??
What is going wrong??
I am not able to find the reason, can anybody help me out??
Bookmarks