scrollbar - How to get scroll bar real width in Qt? -
i'm trying make custom widget, bunch of textedits single vertical scroll bar on right. keep widget size determined, have find width of scrollbar, texedits geometry depends on it. calling scroll_bar->width(); freshly created vertical bar returns 101, obviuosly wrong.
so, there way determine vertical scroll bar width correctly in qt 3.2.3?
int w = qapp->style()->pixelmetric(qstyle::pm_scrollbarextent);
Comments
Post a Comment