jajdoo
16th July 2010, 20:54
trying to create something of this sort:
http://www.youtube.com/watch?v=GvGLzMXiaM0
i made a blank main window, and started adding QDockWidgets to it
for(int i = 0; i<4; i++)
{
QDockWidget* qa = new QDockWidget;
qa->setWidget(new CodeTextEdit);
qa->setAllowedAreas(Qt::AllDockWidgetAreas);
addDockWidget(Qt::TopDockWidgetArea, qa);
}
the problem is that i either get QDockWidgets that dock horizontally or vertically...
what am i doing wrong?
http://www.youtube.com/watch?v=GvGLzMXiaM0
i made a blank main window, and started adding QDockWidgets to it
for(int i = 0; i<4; i++)
{
QDockWidget* qa = new QDockWidget;
qa->setWidget(new CodeTextEdit);
qa->setAllowedAreas(Qt::AllDockWidgetAreas);
addDockWidget(Qt::TopDockWidgetArea, qa);
}
the problem is that i either get QDockWidgets that dock horizontally or vertically...
what am i doing wrong?