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

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -