Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

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
    https://pastebin.com/u/Cleo21


  • Lifetime Qt Champion

    Hi,

    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