defaultsectionsize qheaderview
Solved
General and Desktop
-
Hi,
I override QHeaderView and in the constructor i set the minimal section size with "setMinimumSectionSize" and I want to set de default section size with "setDefaultSectionSize".
setDefaultSectionSize seems not working because if I check it with:
int x; x = defaultSectionSize(); // x = 30? Default i guess? this->setDefaultSectionSize(10); x = defaultSectionSize(); // x = 25 -> ALWAYS. Why not 10? Why 25?
Interesting is, that the same works without problems with setMaximumSectionSize...
Furthermore I am searching for a good explanation how to debug into the QT-Code (with Visual Studio because I have to use VS). Has someone a hint for a good tutorial or what ever? Maybe then it would be easier to find reasons for this by myself :-)
Thanks!
-
It's because the minimum section size is 25 in your case.
-
@Christian-Ehrlicher Thanks! :-)