prashant
9th September 2009, 16:09
Hi,
dock = new QDockWidget(tr("Log"), this);
dock->setAllowedAreas(Qt::TopDockWidgetArea | Qt::BottomDockWidgetArea);
dock->setFloating(false);
addDockWidget(Qt::BottomDockWidgetArea, dock);
When I press maximize button(two little square), the dock goes to floating status. What I need is, dock should maximize and cover the entire window area and pressing the button again should set the dock to it's previous state.
Secondly, this dock is taking too much height, how do I set the initial height.
Prashant
dock = new QDockWidget(tr("Log"), this);
dock->setAllowedAreas(Qt::TopDockWidgetArea | Qt::BottomDockWidgetArea);
dock->setFloating(false);
addDockWidget(Qt::BottomDockWidgetArea, dock);
When I press maximize button(two little square), the dock goes to floating status. What I need is, dock should maximize and cover the entire window area and pressing the button again should set the dock to it's previous state.
Secondly, this dock is taking too much height, how do I set the initial height.
Prashant