Possible error in QTableView::resizeRowsToContents
-
I have a TableView and resizeRowsToContents works fine with normal layout. BUT, when when I have some columns spanned the height of the row is the same as if there were not columns spanned. So a row that should only take up one line of text in a height of (say) 21 pixels actually uses 53 pixels because that's the height it would have taken without spanning. Not sure what to do about this!
-
Hi,
Can you reproduce that with a simple compilable example ?
-
You can post a link to image sharing site.
-
Not sure if the above will show.
Anyway, the green heading is big because there's lots of words which would make it tall in the 'qty' column. The two blue rows with two words in are two lines high, the same size as the two-line descriptions. The one-word blue rows are just the minimum height allowed.
Pretty obviously it's the blue/green rows that have their spans set.
-
I think I see what you mean but that really needs a minimal project to test and check.
-
Most people usually use a git repo (bitbucket, gitlab, github etc.) or something like Dropbox
-
OK here we go. All the files are in DropBox and should be available via:
https://www.dropbox.com/sh/7hzpv4k021k50y2/AACobsU7FpvbllB_56UUffP5a?dl=0
I have hardcoded a minimal data set which is accessed by clicking on the Load button - so as to keep the system as intended. No other buttons work.