mullwaden
28th August 2008, 16:25
So here is my code:
Control class (it inializes widgets and sets up connects between them)
class Control {
public:
Control();
~Control();
private:
TimeLine *timeLine;
GLWidget *glWidget;
Window *window;
FileHandler *fileHandler;
ContextMenu *contextMenu;
HierarchyWidget *hierarchyWidget;
};
Main class:
int main(int argc, char *argv[])
{
//std::cout << "hej" << std::endl;
QApplication app(argc, argv);
Control control;
return app.exec();
}
If I in the main class change the line Control control to Control control() the controlclass' constructor will still run without error but... no QT window shows up. So I get a program that continues running but that shows nothing.
This is very peculiar in my opinion :)
Control class (it inializes widgets and sets up connects between them)
class Control {
public:
Control();
~Control();
private:
TimeLine *timeLine;
GLWidget *glWidget;
Window *window;
FileHandler *fileHandler;
ContextMenu *contextMenu;
HierarchyWidget *hierarchyWidget;
};
Main class:
int main(int argc, char *argv[])
{
//std::cout << "hej" << std::endl;
QApplication app(argc, argv);
Control control;
return app.exec();
}
If I in the main class change the line Control control to Control control() the controlclass' constructor will still run without error but... no QT window shows up. So I get a program that continues running but that shows nothing.
This is very peculiar in my opinion :)