Double click edit QTableWidget row header

  • Hi!

    I would like to allow renaming of a table row by double clicking on the row header.

    I'm unsure how I should do this though. I'm pretty new to QT.

    I'm already using the setHorizontalRowLabels function when I set the rows up for the first time. But I would like to basically turn the row header into a lineedit widget and allow the user to enter some text. Then when they push enter I need to set the row header name

    How should I do this?

  • Lifetime Qt Champion

    Hi and welcome to devnet,

    You can find an example here

Log in to reply

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