Possible error in QTableView::resizeRowsToContents
-
wrote on 2 May 2016, 10:58 last edited by
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 ?
-
wrote on 2 May 2016, 22:21 last edited by
That'd take me a while since I've just finished creating the whole program - and finding a way to avoid the problem. I could send you a screen shot if I knew how!
-
You can post a link to image sharing site.
-
wrote on 2 May 2016, 23:15 last edited by BrianE 5 Mar 2016, 00:07
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.
-
wrote on 3 May 2016, 20:38 last edited by
OK I'll copy my project and strip it down. How does one upload a whole project? Zipped and a URL like the picture?
-
Most people usually use a git repo (bitbucket, gitlab, github etc.) or something like Dropbox
-
wrote on 3 May 2016, 22:37 last edited by
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.
8/9