Nominate our 2022 Qt Champions!

QScrollbar on QMainWindow

  • Hello, I am building a desktop application for the first time and I am presently having some challenges which I would appreciate your contribution to make things easier for me a little.

    I want scrollbars in the Window. Please study my codes and correct me where you think should be corrected. I am including a link to my codes in pastebin.

    reg2.JPG scA.JPG scrolllll.JPG

  • Lifetime Qt Champion


    Use your scroll area as central widget.
    Do not use self.centralWidget as variable name, you are nuking a method of the QMainWindow by doing that,

Log in to reply