Adding tableview to scene, appearing small and with scroll bars
-
wrote on 11 Jul 2021, 12:39 last edited byThis post is deleted!
-
Hi @mrjj . Thanks for the quick reply. around some 20 to 25 pixels is missing . we are doing resizeColumnsToContents() right. This should be considering the font sizes right ?
@sachinrd
Hi
yes resizeColumnsToContents();
should calculate the needed space with the current font.
and we then add up the needed sizes and expand the view.Do you use any stylesheet or anything that could make the calculation a bit off ?
I don't see it here from a fast test so i wonder what difference it.
-
@mrjj . yeah i am using this style:
indexPageTableView->setStyleSheet("QTableView::item{border: 2px solid black}");@sachinrd
Hi
Ok
can you check without if its then accurate ? -
wrote on 11 Jul 2021, 13:09 last edited by
sure let me check.
-
wrote on 11 Jul 2021, 13:40 last edited byThis post is deleted!
-
@sachinrd
Hi
try setting
and see if then the table is not fully drawn.
I recall it will "reserve" some space for the scrollbars and hence the width of a scrollbar is missing in the calcualation.
18/18