[PyQt] QDockWidget offset?

Matic Kukovec kukovecmatic at hotmail.com
Wed Apr 11 15:20:03 BST 2018


Hi guys,

I have a QDockWidget onto which I add a QGroupbox. On Windows, there are no problems.
But on Linux there is border with a gap on top from the windows frame, with the size similar to a system's menubar.
To illustrate this I added a screenshot in the attachment that shows a QDockWidget that has a QGroupBox added with the 'setWidget' function and a QPushButton added to the QGroupBox.
On the left is the Windows example and on the right is the Linux example with the border drawn behind the QPushButton.

How do I get rid of this border on Linux?

Thanks,
Matic
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20180411/e0a59884/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.png
Type: image/png
Size: 8027 bytes
Desc: test.png
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20180411/e0a59884/attachment.png>


More information about the PyQt mailing list