4.3.1 vs 4.1.4 setfixedwidth (bugs??)
I worked with visual studio 2005 and 4.1.4. Now I have installed 4.3.1 and works fine (I thought). I have 2 QDockWidget, one I want to be fixed (it's width) and the other no fixed when i resize the windows.
When I compile my project with 4.1.4 version works fine, but with this version the two QtDockwidget resize. My code is:
Code:
glWidgetArea->setWidget(glWidget);
glWidgetArea->setWidgetResizable(true);
glWidgetArea->setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
glWidgetArea->setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
glWidgetArea->setMinimumSize(100, 100);
ogldock->setAllowedAreas(Qt::LeftDockWidgetArea);
ogldock
->setFeatures
(QDockWidget::NoDockWidgetFeatures);
ogldock->setWidget(glWidgetArea); <- this resize
gdock->setAllowedAreas(Qt::RightDockWidgetArea);
gdock->setFixedWidth(250); <- this would be fixed, but it doesn't
gdock->setWidget(toolBox);
I have prove this at the end of this code
Code:
toolBox->setFixedWidth(250);
and toolBox inside gdock is fixed but the area around resize. ogldock and gdock area resize 50% for each.
Re: 4.3.1 vs 4.1.4 setfixedwidth (bugs??)
I have just solve my problem with this line:
gdock->setSizePolicy(QSizePolicy::Fixed,QSizePolicy::Ign ored);
Thanks