Below is my test application code
main.cpp file
#include <QtGui/QApplication>
#include <QLabel>
#include "widget.h"
int main(int argc, char *argv[])
{
printf("Inside main\n");
unsigned int loop;
printf("argc = %d \n",argc);
for(loop=0;loop<argc;loop++)
{
printf("argv[%d] = %s \n",argc,argv[loop]);
}
Widget w;
w.setFixedSize(200,200);
w.show();
return a.exec();
}
[B][U]widget.cpp file[/U][/B]
#include "widget.h"
{
}
Widget::~Widget()
{
}
[U][B]widget.h file[/B][/U]
#ifndef WIDGET_H
#define WIDGET_H
#include <QtGui/QWidget>
{
Q_OBJECT
public:
~Widget();
};
#endif // WIDGET_H
#include <QtGui/QApplication>
#include <QLabel>
#include "widget.h"
int main(int argc, char *argv[])
{
printf("Inside main\n");
unsigned int loop;
QApplication a(argc, argv);
printf("argc = %d \n",argc);
for(loop=0;loop<argc;loop++)
{
printf("argv[%d] = %s \n",argc,argv[loop]);
}
Widget w;
w.setFixedSize(200,200);
w.show();
return a.exec();
}
[B][U]widget.cpp file[/U][/B]
#include "widget.h"
Widget::Widget(QWidget *parent)
: QWidget(parent)
{
}
Widget::~Widget()
{
}
[U][B]widget.h file[/B][/U]
#ifndef WIDGET_H
#define WIDGET_H
#include <QtGui/QWidget>
class Widget : public QWidget
{
Q_OBJECT
public:
Widget(QWidget *parent = 0);
~Widget();
};
#endif // WIDGET_H
To copy to clipboard, switch view to plain text mode
Back trace of the above code is attached - file : QApplication_backtrace.txt
I have also attached back trace of qt's example code - framebuffer , file : QtFramebuffer_exampleCode.txt
Your suggestion would be a great help for me..
Bookmarks