Of i see the same result here. It is because i use the function "tab->setTextSize(fontSize(16, width, height));"
in "onResize". All parts of tab should resize and this includes font resize. When you resize the window width to 200 then
font must be squeezed down. All programs have some limits that does not allow user for example to resize under 800.
I think i can understand what you a saying. My code works only for my program and behave not good if i set different text sizes in tabs. For example
if i set "MyTab1", "MyTab string is very big", for two tabs then i do not have the result i want. In other words i manage to resize tab widget because
i have some specific constants. All my texts have the same size of chars.
If i were you, i will start thinking in creating a setTabWidth function where the user will set the width of individual tab. For example if he set 30 for width and
he uses 3 tabs the the whole widget will get a 3*30 = 90 width. The texts should be align in center of each tab. In this way, i believe you can handle width much
better.
Hope i help. I want to help. In bottom line, you did all that hard work and we are very appreciate for this.
Hope i