Adding tableview to scene, appearing small and with scroll bars
Solved
General and Desktop
-
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}");