Hi, I've found strange problem in my program.

I can declare one Qlabel item, but declaring another one is connected with compilation error (file-build-desktop-....\debug\file.exe ends with code -1073741819 instead of 0).

file.h
Qt Code:
  1. #include <QLabel>
  2.  
  3. class N : public QWidget
  4. {
  5. Q_OBJECT
  6. public:
  7. N(QWidget *parent = 0);
  8. private:
  9. QLabel *firstlabel;
  10. QLabel *secondlabel;
  11. }
To copy to clipboard, switch view to plain text mode