So here is my code:

Control class (it inializes widgets and sets up connects between them)
Qt Code:
  1. class Control {
  2.  
  3.  
  4. public:
  5.  
  6. Control();
  7. ~Control();
  8.  
  9. private:
  10.  
  11. TimeLine *timeLine;
  12. GLWidget *glWidget;
  13. Window *window;
  14. FileHandler *fileHandler;
  15. ContextMenu *contextMenu;
  16. HierarchyWidget *hierarchyWidget;
  17.  
  18. };
To copy to clipboard, switch view to plain text mode 

Main class:
Qt Code:
  1. int main(int argc, char *argv[])
  2. {
  3. //std::cout << "hej" << std::endl;
  4. QApplication app(argc, argv);
  5.  
  6. Control control;
  7.  
  8. return app.exec();
  9. }
To copy to clipboard, switch view to plain text mode 

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