[PyQt] Question of QTableWidget setSpan

이창호 changho at hyundai-autron.com
Fri Apr 21 03:38:52 BST 2017


Hi.

 

I am making a simple program with PyQt5.

 

Why the below results are different?

 

I’d like to display 2. Style using QHeaderView.ResizeToContents option.

 

Is this a pyqt bug?

 

 

Changho.

 

1.  Set QHeaderView.ResizeToContents option
 

 
 
2.  Didn’t set QHeaderView.ResizeToContents option
 
 

 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20170421/9b3df65b/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 24860 bytes
Desc: not available
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20170421/9b3df65b/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.png
Type: image/png
Size: 25178 bytes
Desc: not available
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20170421/9b3df65b/attachment-0003.png>


More information about the PyQt mailing list