Important: Please read the Qt Code of Conduct -

Custom QTreeView, row height problem

  • Hi everyone,
    I created custom Qtreeview and added it to the Dock.
    The problem is the height of the rows, because if I extend or narrow the dock, the height is always fixed, but I expect the height to increase or decrease depending on the text.
    I've tried with the Delegate's "SizeHint" function, but this is called only when creating Qtreeview.
    Is there a way to dynamically change the height of the rows?
    I hope I explained myself.
    thank you.

  • Just reimplement the resizeEvent of the View

  • Right, I had forgotten that function, now it's perfect, thank you.

Log in to reply