PDA

View Full Version : How to remove gap between dockwidgets and central widgets in QMainWindow



sanjayshelke
30th November 2016, 10:41
Hi all,

I am developing an QMainWindow frameless application with some dock widgets at top, left and right dock areas.
All the dock widgets are developed using qml and they are too frameless.

The issue is there is some 2 to 4 px gap between all dock widgets and central widget. When we hover the mouse on these areas, resize cursor gets displayed. So it seems that it is basically dock widget resize grip handle.

Now my requirement is that I dont want this resize grip handle between the dock widgets and central widget.
For reference I have attached the screenshot of the UI that I am developing.

Thanking you in advance.

Regards,
Sanjay Shelke

anda_skoa
1st December 2016, 07:52
Can you clarify? Are the dock widgets QDockWidgets?
If yes, do you also have that border if you have an empty QWidget as the dock widget's content?

Cheers,
_