QTabWidget rendering issue?

Matic Kukovec kukovecmatic at hotmail.com
Sat Apr 27 17:50:03 BST 2024


Ok, thanks, will do some testing into that direction.
________________________________
From: Charles <peacech at gmail.com>
Sent: Saturday, April 27, 2024 6:34 PM
To: Matic Kukovec <kukovecmatic at hotmail.com>
Cc: PyQt at riverbankcomputing.com <pyqt at riverbankcomputing.com>
Subject: Re: QTabWidget rendering issue?

Maybe QTabWidget does not compute the sizeHint based on the custom font size?

On Sat, Apr 27, 2024 at 11:12 PM Matic Kukovec <kukovecmatic at hotmail.com<mailto:kukovecmatic at hotmail.com>> wrote:
This happens even without any styling changes, seen here:
[cid:ii_18f2067d08bcb971f162]
Note that this is a plain vanilla QTabBar, no sub-classing.

Regards,
Matic

________________________________
From: Matic Kukovec <kukovecmatic at hotmail.com<mailto:kukovecmatic at hotmail.com>>
Sent: Saturday, April 27, 2024 12:59 PM
To: PyQt at riverbankcomputing.com<mailto:PyQt at riverbankcomputing.com> <pyqt at riverbankcomputing.com<mailto:pyqt at riverbankcomputing.com>>
Subject: QTabWidget rendering issue?

Hi guys,

Specs:

  *
Windows 10 x64
  *
Python 3.12
  *
PyQt 6.6.1

I have a QTabWidget inside a layout and when initial layout is built not all of tabs are rendered.
The selected tab is rendered as the first tab, but when I select a different tab, all the tabs render correctly,
here is an example:
[cid:ii_18f2067d089cb971f161]
As you can see, when the initial layout is rendered the 'systick.c' tab is shown as the first, but in reality
the 'main.c' tab should be first, but it only appears after I click any non-current tab.

Any idea of where the problem is?

Regards,
Matic

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20240427/50e05016/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 38763 bytes
Desc: image.png
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20240427/50e05016/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 34769 bytes
Desc: image.png
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20240427/50e05016/attachment-0003.png>


More information about the PyQt mailing list