QTreeWidget - Drag to Resize



  • I want a user to be able to resize the QTreeWidget to their desired width/height.

    Though I am unsure what container allows for that within the mainwindow.

    Currently it's inside a QWidget container within the mainwindow.

    I just want them to be able to take the bottom-right-corner and drag it out to a different size.
    What should I be looking at to do this?



  • I'm afraid "inside a QWidget container within the mainwindow" does not say enough for someone to be able to provide an answer.

    Are you using a QMdiArea?
    Or is the QWidget the central widget of the QMainWindow?
    Are you using a layout inside the QWidget?



  • To me, it sounds like you need to look into [[doc:QSplitter]]


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.