[QScintilla] QMenuBar Windows vs Linux?

Matic Kukovec kukovecmatic at hotmail.com
Fri Feb 16 11:30:19 GMT 2018


Hey Alan,

Sorry for the long delay. You were close! it is the 'border' that needs to be set to 'border: 0px' in QMainWindow's stylesheet!

Thanks for the help!
________________________________
From: QScintilla <qscintilla-bounces at riverbankcomputing.com> on behalf of Alan Garny <agarny at hellix.com>
Sent: Saturday, February 3, 2018 2:39 PM
To: 'QScintilla'
Subject: Re: [QScintilla] QMenuBar Windows vs Linux?


Hi Matic,



If you think it’s an issue with the layout, then you might want to check  the value of the layout’s spacing, as well as its contents’ margins?

Alan.



From: QScintilla [mailto:qscintilla-bounces at riverbankcomputing.com] On Behalf Of Matic Kukovec
Sent: 03 February 2018 14:19
To: QScintilla <qscintilla at riverbankcomputing.com>
Subject: Re: [QScintilla] QMenuBar Windows vs Linux?



________________________________

From: Alan Garny <agarny at hellix.com<mailto:agarny at hellix.com>>
Sent: Saturday, February 3, 2018 12:34 PM
To: 'Matic Kukovec'
Subject: RE: [QScintilla] QMenuBar Windows vs Linux?



Hi Matic,



I don’t use Python or PyQt5, but have you tried to comment out the line that reads:



tabs = QTabWidget(self)



Alan



From: QScintilla [mailto:qscintilla-bounces at riverbankcomputing.com] On Behalf Of Matic Kukovec
Sent: 03 February 2018 12:21
To: QScintilla <qscintilla at riverbankcomputing.com<mailto:qscintilla at riverbankcomputing.com>>
Subject: [QScintilla] QMenuBar Windows vs Linux?



Hi guys,

I have a simple application and noticed that on Linux there is an additional spacing between the window's frame and the central widget at the top. The application is attached to this email.
Here is the example on Windows (PyQt5 5.9):
[cid:image001.png at 01D39CFC.35DE0230]
and this is the same app on Linux (PyQt5 5.7), the spacing is shown with the red arrows:
[cid:image002.png at 01D39CFC.35DE0230]
Can I remove this gap on Linux?

Thanks,
Matic



Hey Alan,



Even without the QTabwidget, the gap is still there! It seems to be something with the layout, but I do not know what.



Matic
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/qscintilla/attachments/20180216/1916aa69/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 1906 bytes
Desc: image001.png
URL: <https://www.riverbankcomputing.com/pipermail/qscintilla/attachments/20180216/1916aa69/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.png
Type: image/png
Size: 3288 bytes
Desc: image002.png
URL: <https://www.riverbankcomputing.com/pipermail/qscintilla/attachments/20180216/1916aa69/attachment-0001.png>


More information about the QScintilla mailing list