Qt 6.11 is out! See what's new in the release
blog
Error: invalid use of incomplete type "class QDockWidget"
General and Desktop
4
Posts
3
Posters
2.0k
Views
1
Watching
-
1st time using dockWidget
Error: invalid use of incomplete type "class QDockWidget"@
#include <QtGui>
#include <QMainWindow>QDockWidget* dockwidget = new QDockWidget(this);
dockwidget->setAllowAreas(Qt::LeftDockWidgetArea| Qt::RightDockWidgetArea);
dockwidget->setWidget(docWidgetContents);
addDockWidget(Qt::LeftDockWidgetArea,dockwidget);@
-
Hi,
Do you mean put it in the Qt::BottomDockWidgetArea ?