Quantcast
Channel: Qt DevNet forums: Installation and Deployment
Viewing all articles
Browse latest Browse all 2113

Something in Qt broke and I can't compile anymore. QVBoxLayout doesn't name a type.

$
0
0
The problem is – everything was working fine, then I changed QVBoxLayout to QGridLayout after that if I include <QGridLayout> or any other Layout related stuff I get this kind of errors (they appear in projects that were builing just fine before) In file included from ..\..\Qt\5.2.1\mingw48_32\include/QtGui/qwindowdefs.h:45:0,                  from ..\..\Qt\5.2.1\mingw48_32\include\QtWidgets/qwidget.h:45,                  from ..\..\Qt\5.2.1\mingw48_32\include\QtWidgets/QWidget:1,                  from ..\DZ\HW14_7\TicTacToe\tictactoe.h:4,                  from ..\DZ\HW14_7\TicTacToe\tictactoe.cpp:1: ..\..\Qt\5.2.1\mingw48_32\include/QtWidgets/qboxlayout.h:137:20: error: 'QVBoxLayout' does not name a type      Q_DISABLE_COPY(QVBoxLayout)                     ^ ..\..\Qt\5.2.1\mingw48_32\include/QtCore/qglobal.h:978:17: note: in definition of macro 'Q_DISABLE_COPY'      Class(const Class &) Q_DECL_EQ_DELETE;\                  ^ ..\..\Qt\5.2.1\mingw48_32\include/QtCore/qglobal.h:978:23: error: ISO C++ forbids declaration of 'parameter' with no type [-fpermissive]      Class(const Class &) Q_DECL_EQ_DELETE;\                        ^ ..\..\Qt\5.2.1\mingw48_32\include/QtWidgets/qboxlayout.h:137:5: note: in expansion of macro 'Q_DISABLE_COPY'      Q_DISABLE_COPY(QVBoxLayout)      ^ In file included from ..\..\Qt\5.2.1\mingw48_32\include/QtCore/qglobal.h:71:0,                  from ..\..\Qt\5.2.1\mingw48_32\include/QtGui/qwindowdefs.h:45,                  from ..\..\Qt\5.2.1\mingw48_32\include\QtWidgets/qwidget.h:45,                  from ..\..\Qt\5.2.1\mingw48_32\include\QtWidgets/QWidget:1,                  from ..\DZ\HW14_7\TicTacToe\tictactoe.h:4,                  from ..\DZ\HW14_7\TicTacToe\tictactoe.cpp:1: ..\..\Qt\5.2.1\mingw48_32\include/QtCore/qcompilerdetection.h:787:29: error: ISO C++ forbids declaration of 'QVBoxLayout' with no type [-fpermissive]  # define Q_DECL_EQ_DELETE = delete                              ^ ..\..\Qt\5.2.1\mingw48_32\include/QtCore/qglobal.h:978:26: note: in expansion of macro 'Q_DECL_EQ_DELETE'      Class(const Class &) Q_DECL_EQ_DELETE;\                           ^ ..\..\Qt\5.2.1\mingw48_32\include/QtWidgets/qboxlayout.h:137:5: note: in expansion of macro 'Q_DISABLE_COPY'      Q_DISABLE_COPY(QVBoxLayout)      ^ In file included from ..\..\Qt\5.2.1\mingw48_32\include/QtGui/qwindowdefs.h:45:0,                  from ..\..\Qt\5.2.1\mingw48_32\include\QtWidgets/qwidget.h:45,                  from ..\..\Qt\5.2.1\mingw48_32\include\QtWidgets/QWidget:1,                  from ..\DZ\HW14_7\TicTacToe\tictactoe.h:4,                  from ..\DZ\HW14_7\TicTacToe\tictactoe.cpp:1: ..\..\Qt\5.2.1\mingw48_32\include/QtWidgets/qboxlayout.h:137:20: error: 'QVBoxLayout' does not name a type      Q_DISABLE_COPY(QVBoxLayout)                     ^ ..\..\Qt\5.2.1\mingw48_32\include/QtCore/qglobal.h:979:5: note: in definition of macro 'Q_DISABLE_COPY'      Class &operator=(const Class &) Q_DECL_EQ_DELETE;      ^

Viewing all articles
Browse latest Browse all 2113

Trending Articles