<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=ks_c_5601-1987"><meta name=Generator content="Microsoft Word 14 (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:±¼¸²;
        panose-1:2 11 6 0 0 1 1 1 1 1;}
@font-face
        {font-family:±¼¸²;
        panose-1:2 11 6 0 0 1 1 1 1 1;}
@font-face
        {font-family:"¸¼Àº °íµñ";
        panose-1:2 11 5 3 2 0 0 2 0 4;}
@font-face
        {font-family:±¼¸²Ã¼;
        panose-1:2 11 6 9 0 1 1 1 1 1;}
@font-face
        {font-family:"\@¸¼Àº °íµñ";
        panose-1:2 11 5 3 2 0 0 2 0 4;}
@font-face
        {font-family:"\@±¼¸²Ã¼";
        panose-1:2 11 6 9 0 1 1 1 1 1;}
@font-face
        {font-family:"\@±¼¸²";
        panose-1:2 11 6 0 0 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        text-align:justify;
        text-justify:inter-ideograph;
        text-autospace:none;
        word-break:break-hangul;
        font-size:10.0pt;
        font-family:"¸¼Àº °íµñ";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"¹Ì¸® ¼­½ÄÀÌ ÁöÁ¤µÈ HTML Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:±¼¸²Ã¼;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"dz¼± µµ¿ò¸» ÅؽºÆ® Char";
        margin:0cm;
        margin-bottom:.0001pt;
        text-align:justify;
        text-justify:inter-ideograph;
        text-autospace:none;
        word-break:break-hangul;
        font-size:9.0pt;
        font-family:"¸¼Àº °íµñ";}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
        {mso-style-priority:34;
        margin-top:0cm;
        margin-right:0cm;
        margin-bottom:0cm;
        margin-left:40.0pt;
        margin-bottom:.0001pt;
        mso-para-margin-top:0cm;
        mso-para-margin-right:0cm;
        mso-para-margin-bottom:0cm;
        mso-para-margin-left:4.0gd;
        mso-para-margin-bottom:.0001pt;
        text-align:justify;
        text-justify:inter-ideograph;
        text-autospace:none;
        word-break:break-hangul;
        font-size:10.0pt;
        font-family:"¸¼Àº °íµñ";}
span.HTMLChar
        {mso-style-name:"¹Ì¸® ¼­½ÄÀÌ ÁöÁ¤µÈ HTML Char";
        mso-style-priority:99;
        mso-style-link:"¹Ì¸® ¼­½ÄÀÌ ÁöÁ¤µÈ HTML";
        font-family:±¼¸²Ã¼;}
span.Char
        {mso-style-name:"dz¼± µµ¿ò¸» ÅؽºÆ® Char";
        mso-style-priority:99;
        mso-style-link:"dz¼± µµ¿ò¸» ÅؽºÆ®";
        font-family:"¸¼Àº °íµñ";}
span.EmailStyle22
        {mso-style-type:personal;
        font-family:"¸¼Àº °íµñ";
        color:windowtext;}
span.EmailStyle23
        {mso-style-type:personal-reply;
        font-family:"¸¼Àº °íµñ";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:3.0cm 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
/* List Definitions */
@list l0
        {mso-list-id:197360608;
        mso-list-type:hybrid;
        mso-list-template-ids:1726806324 -1433107956 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;}
@list l0:level1
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        margin-left:38.0pt;
        text-indent:-18.0pt;
        mso-ansi-font-size:12.0pt;
        color:windowtext;}
@list l0:level2
        {mso-level-number-format:alpha-upper;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        margin-left:60.0pt;
        text-indent:-20.0pt;}
@list l0:level3
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        margin-left:80.0pt;
        text-indent:-20.0pt;}
@list l0:level4
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        margin-left:100.0pt;
        text-indent:-20.0pt;}
@list l0:level5
        {mso-level-number-format:alpha-upper;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        margin-left:120.0pt;
        text-indent:-20.0pt;}
@list l0:level6
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        margin-left:140.0pt;
        text-indent:-20.0pt;}
@list l0:level7
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        margin-left:160.0pt;
        text-indent:-20.0pt;}
@list l0:level8
        {mso-level-number-format:alpha-upper;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        margin-left:180.0pt;
        text-indent:-20.0pt;}
@list l0:level9
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        margin-left:200.0pt;
        text-indent:-20.0pt;}
ol
        {margin-bottom:0cm;}
ul
        {margin-bottom:0cm;}
--></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=KO link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span lang=EN-US>Hi.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>I am making a simple program with PyQt5.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>Why the below results are different?<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>I</span>¡¯<span lang=EN-US>d like to display 2. Style using QHeaderView.ResizeToContents option.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>Is this a pyqt bug?<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>Changho.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><pre style='margin-left:38.0pt;text-indent:-18.0pt;mso-list:l0 level1 lfo2;background:white'><![if !supportLists]><span lang=EN-US><span style='mso-list:Ignore'>1.<span style='font:7.0pt "Times New Roman"'>  </span></span></span><![endif]><span lang=EN-US>Set </span><span lang=EN-US style='font-size:9.0pt;color:black'>QHeaderView.ResizeToContents option<o:p></o:p></span></pre><pre style='background:white'><span lang=EN-US style='font-size:9.0pt;color:black'><o:p> </o:p></span></pre><pre style='background:white'><span lang=EN-US><img width=512 height=315 id="±×¸²_x0020_1" src="cid:image001.png@01D2BA93.D9D10A00"></span><span lang=EN-US style='font-size:9.0pt;color:black'><o:p></o:p></span></pre><pre style='background:white'><span lang=EN-US style='font-size:9.0pt;color:black'><o:p> </o:p></span></pre><pre style='background:white'><span lang=EN-US style='font-size:9.0pt;color:black'><o:p> </o:p></span></pre><pre style='margin-left:38.0pt;text-indent:-18.0pt;mso-list:l0 level1 lfo2;background:white'><![if !supportLists]><span lang=EN-US><span style='mso-list:Ignore'>2.<span style='font:7.0pt "Times New Roman"'>  </span></span></span><![endif]><span lang=EN-US style='font-size:9.0pt;color:black'>Didn</span><span style='font-size:9.0pt;color:black'>¡¯<span lang=EN-US>t set QHeaderView.ResizeToContents option<o:p></o:p></span></span></pre><pre style='background:white'><span lang=EN-US style='font-size:9.0pt;color:black'><o:p> </o:p></span></pre><pre style='background:white'><span lang=EN-US style='font-size:9.0pt;color:black'><o:p> </o:p></span></pre><pre style='background:white'><span lang=EN-US><img width=512 height=315 id="±×¸²_x0020_2" src="cid:image002.png@01D2BA93.D9D10A00"></span><span lang=EN-US style='font-size:9.0pt;color:black'><o:p></o:p></span></pre><pre style='background:white'><span lang=EN-US style='font-size:9.0pt;color:black'><o:p> </o:p></span></pre></div></body></html>