I don't know is such assumptions are appropriate. Calling verticalScrollBar()->isVisible() might be more reliable.
That doesn't matter. You can change the size hint once the widget is rendered for the first time using QWidget::updateGeometry().Qt doesn't seem to know [whether a scrollbar is needed] by the time sizeHint is called;
Yes, that's normal for every widget.The scrollbar width() always returns 100 there, it changes into 16 once it is actually rendered on screen.
Bookmarks