capture.PNG
I can not find both setColumnWidth and resizeColumnsToContents in Qt desginer. (Though I prefer former to latter)
I can do it manually, but then I have to add additional code and I think it is not desirable.
capture.PNG
I can not find both setColumnWidth and resizeColumnsToContents in Qt desginer. (Though I prefer former to latter)
I can do it manually, but then I have to add additional code and I think it is not desirable.
Well, sometimes you just have to bite the bullet and actually write a few lines of code instead of just dragging and dropping icons. You -can- use Qt Designer to set the minimum and default section sizes for the horizontal header.I have to add additional code and I think it is not desirable.
In any case, how could Designer know how to apply a call to resizeColumnsToContents when all it has is an empty table? It isn't until run time that you put things in the table cells.
<=== The Great Pumpkin says ===>
Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.
Then how about just applying different width to each column header? Is it impossible too in Qt designer? Those options shown in above picture change whole headers.
Bookmarks