PDA

View Full Version : Problem with dockwidget



mouni
22nd April 2015, 07:27
Hi friends,

I am running mainwindow application in that i added dockwidget.When i am opened dockwidget and it is undocked on mainwindow ..i am not able to operate mainwindow untill dockwidget is docked..plz tell me how to operate mainwindow when dockwidget isopened on mainwindow..

anda_skoa
22nd April 2015, 07:40
That should work, i.e a dock widget does not interfere with its parent.

How does your respective code look like.

Cheers,
_

mouni
22nd April 2015, 07:47
in mainwindow iadded gridlayout. in gridlayout added dockwidget added..if i double click on dockwidget it comes out from gridlayout and appear on mainwindow then we canot acces mainwindow....

anda_skoa
22nd April 2015, 10:42
ok, so this is some custom dock widget like window thing, not QDockWidget.

Then it is likely that your code set window modality or something similar.

Cheers,
_

mouni
29th April 2015, 06:30
thanks ..For giving solution it is really useful to me...

wysota
29th April 2015, 06:53
thanks ..For giving solution it is really useful to me...

The solution is to use QDockWidget the way it should be used.