Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Error: invalid use of incomplete type "class QDockWidget"
-
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);@
-
Looks like you forgot to include the proper header:
@#include <QDockWidget>@
-
How to QDockWidget Bottom
-
Hi,
Do you mean put it in the Qt::BottomDockWidgetArea ?