View Single Post
Old 03-09-2011, 10:00 AM   #7
meme
Sigil developer
meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.
 
Posts: 1,274
Karma: 1101600
Join Date: Jan 2011
Location: UK
Device: Kindle PW, K4 NT, K3, Kobo Touch
I've tried the delegate approach but just can't get it to work. If I set Stretch mode, then sizeHint doesn't get called, and if I don't set it, it doesn't stretch. I've tried using paint which is getting called, but can't get the column to resize.

I've even tried turning it around and fixing the maximum size of the window so that it doesn't grow larger than the table, but dropped it after a bit for being too fiddly.

At this point I'm leaving things as they are. I see the main Calibre library doesn't worry about the extra space on the right of the table either. For another table, due to the contents of the columns/headers I can set a minimum section size and table re-sizing works great. I may in fact apply that to the first table one more time to see if it works ok.

Thanks for the pointers.
meme is offline   Reply With Quote