<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgba(0, 0, 0, 0);">
Hey Alan,<br>
<br>
Sorry for the long delay. You were close! it is the 'border' that needs to be set to 'border: 0px' in QMainWindow's stylesheet!<br>
<br>
Thanks for the help!<br>
</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> QScintilla <qscintilla-bounces@riverbankcomputing.com> on behalf of Alan Garny <agarny@hellix.com><br>
<b>Sent:</b> Saturday, February 3, 2018 2:39 PM<br>
<b>To:</b> 'QScintilla'<br>
<b>Subject:</b> Re: [QScintilla] QMenuBar Windows vs Linux?</font>
<div> </div>
</div>
<style>
<!--
@font-face
        {font-family:"Cambria Math"}
@font-face
        {font-family:"Yu Gothic"}
@font-face
        {font-family:Calibri}
@font-face
        {}
p.x_MsoNormal, li.x_MsoNormal, div.x_MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif}
a:x_link, span.x_MsoHyperlink
        {color:#0563C1;
        text-decoration:underline}
a:x_visited, span.x_MsoHyperlinkFollowed
        {color:#954F72;
        text-decoration:underline}
p.x_msonormal0, li.x_msonormal0, div.x_msonormal0
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif}
p.x_xmsonormal, li.x_xmsonormal, div.x_xmsonormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif}
span.x_EmailStyle21
        {font-family:"Calibri",sans-serif;
        color:windowtext}
.x_MsoChpDefault
        {font-size:10.0pt}
@page WordSection1
        {margin:72.0pt 72.0pt 72.0pt 72.0pt}
div.x_WordSection1
        {}
-->
</style>
<div lang="EN-GB" link="#0563C1" vlink="#954F72">
<div class="x_WordSection1">
<p class="x_MsoNormal">Hi Matic,</p>
<p class="x_MsoNormal"> </p>
<p class="x_MsoNormal">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?</p>
<p class="x_MsoNormal"></p>
<p class="x_MsoNormal">Alan.</p>
<p class="x_MsoNormal"> </p>
<div style="border:none; border-left:solid blue 1.5pt; padding:0cm 0cm 0cm 4.0pt">
<div>
<div style="border:none; border-top:solid #E1E1E1 1.0pt; padding:3.0pt 0cm 0cm 0cm">
<p class="x_MsoNormal"><b><span lang="EN-US">From:</span></b><span lang="EN-US"> QScintilla [mailto:qscintilla-bounces@riverbankcomputing.com]
<b>On Behalf Of </b>Matic Kukovec<br>
<b>Sent:</b> 03 February 2018 14:19<br>
<b>To:</b> QScintilla <qscintilla@riverbankcomputing.com><br>
<b>Subject:</b> Re: [QScintilla] QMenuBar Windows vs Linux?</span></p>
</div>
</div>
<p class="x_MsoNormal"> </p>
<div class="x_MsoNormal" align="center" style="text-align:center">
<hr size="2" width="98%" align="center">
</div>
<blockquote>
<div id="x_divRplyFwdMsg">
<p class="x_MsoNormal"><b><span style="color:black">From:</span></b><span style="color:black"> Alan Garny <<a href="mailto:agarny@hellix.com">agarny@hellix.com</a>><br>
<b>Sent:</b> Saturday, February 3, 2018 12:34 PM<br>
<b>To:</b> 'Matic Kukovec'<br>
<b>Subject:</b> RE: [QScintilla] QMenuBar Windows vs Linux?</span> </p>
<div>
<p class="x_MsoNormal"> </p>
</div>
</div>
<p class="x_xmsonormal">Hi Matic,</p>
<p class="x_xmsonormal"> </p>
<p class="x_xmsonormal">I don’t use Python or PyQt5, but have you tried to comment out the line that reads:</p>
<p class="x_xmsonormal"> </p>
<p class="x_xmsonormal" style="text-indent:5.25pt">tabs = QTabWidget(self)</p>
<p class="x_xmsonormal"> </p>
<p class="x_xmsonormal">Alan</p>
<p class="x_xmsonormal"> </p>
<div>
<div style="border:none; border-top:solid #E1E1E1 1.0pt; padding:3.0pt 0cm 0cm 0cm">
<p class="x_xmsonormal"><b><span lang="EN-US">From:</span></b><span lang="EN-US"> QScintilla [<a href="mailto:qscintilla-bounces@riverbankcomputing.com">mailto:qscintilla-bounces@riverbankcomputing.com</a>]
<b>On Behalf Of </b>Matic Kukovec<br>
<b>Sent:</b> 03 February 2018 12:21<br>
<b>To:</b> QScintilla <<a href="mailto:qscintilla@riverbankcomputing.com">qscintilla@riverbankcomputing.com</a>><br>
<b>Subject:</b> [QScintilla] QMenuBar Windows vs Linux?</span></p>
</div>
</div>
<p class="x_xmsonormal"> </p>
<p class="x_xmsonormal"><span style="font-size:12.0pt; color:black">Hi guys,<br>
<br>
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.<br>
Here is the example on Windows (PyQt5 5.9):<br>
<img border="0" width="420" height="268" id="x_x__x005f_x0000_i1025" style="width:4.375in; height:2.7916in" src="cid:image001.png@01D39CFC.35DE0230"><br>
and this is the same app on Linux (PyQt5 5.7), the spacing is shown with the red arrows:<br>
<img border="0" width="546" height="374" id="x_x__x005f_x0000_i1026" style="width:5.6875in; height:3.8958in" src="cid:image002.png@01D39CFC.35DE0230"><br>
Can I remove this gap on Linux?<br>
<br>
Thanks,<br>
Matic</span></p>
</blockquote>
<p class="x_xmsonormal"> </p>
<p class="x_xmsonormal"><span style="font-size:12.0pt; color:black">Hey Alan,</span></p>
<p class="x_xmsonormal"> </p>
<p class="x_xmsonormal"><span style="font-size:12.0pt; color:black">Even without the QTabwidget, the gap is still there! It seems to be something with the layout, but I do not know what.</span></p>
<p class="x_xmsonormal"> </p>
<p class="x_xmsonormal"><span style="font-size:12.0pt; color:black">Matic</span></p>
</div>
</div>
</div>
</body>
</html>