So why not put a QLabel inside QScrollArea and forget about the whole problem?
As for the current situation scrollbars will only appear if you declare the viewport size larger than the scrollarea size. Currently you didn't declare anything so the viewport size is practically undetermined. Unless you implement scrollbar handling yourself (setting the sizes and handling moving them) you won't be able to use them.
Bookmarks