<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:"Yu Gothic";
panose-1:2 11 4 0 0 0 0 0 0 0;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:"\@Yu Gothic";
panose-1:2 11 4 0 0 0 0 0 0 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
p.msonormal0, li.msonormal0, div.msonormal0
{mso-style-name:msonormal;
margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
p.xmsonormal, li.xmsonormal, div.xmsonormal
{mso-style-name:x_msonormal;
margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
span.EmailStyle21
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-GB link="#0563C1" vlink="#954F72"><div class=WordSection1><p class=MsoNormal>Hi Matic,<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=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?<o:p></o:p></p><p class=MsoNormal> <o:p></o:p></p><p class=MsoNormal>Alan.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></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=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?<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><div class=MsoNormal align=center style='text-align:center'><hr size=2 width="98%" align=center></div><blockquote><div id=divRplyFwdMsg><p class=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> <o:p></o:p></p><div><p class=MsoNormal> <o:p></o:p></p></div></div><p class=xmsonormal>Hi Matic,<o:p></o:p></p><p class=xmsonormal> <o:p></o:p></p><p class=xmsonormal>I don’t use Python or PyQt5, but have you tried to comment out the line that reads:<o:p></o:p></p><p class=xmsonormal> <o:p></o:p></p><p class=xmsonormal style='text-indent:5.25pt'>tabs = QTabWidget(self)<o:p></o:p></p><p class=xmsonormal> <o:p></o:p></p><p class=xmsonormal>Alan<o:p></o:p></p><p class=xmsonormal> <o:p></o:p></p><div><div style='border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=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><o:p></o:p></p></div></div><p class=xmsonormal> <o:p></o:p></p><p class=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 style='width:4.375in;height:2.7916in' id="x__x005f_x0000_i1025" 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 style='width:5.6875in;height:3.8958in' id="x__x005f_x0000_i1026" src="cid:image002.png@01D39CFC.35DE0230"><br>Can I remove this gap on Linux?<br><br>Thanks,<br>Matic</span><o:p></o:p></p></blockquote><p class=xmsonormal><o:p> </o:p></p><p class=xmsonormal><span style='font-size:12.0pt;color:black'>Hey Alan,</span><o:p></o:p></p><p class=xmsonormal><o:p> </o:p></p><p class=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><o:p></o:p></p><p class=xmsonormal><o:p> </o:p></p><p class=xmsonormal><span style='font-size:12.0pt;color:black'>Matic</span><o:p></o:p></p></div></div></body></html>