QTableWidget and edit mode
-
@JonB said in QTableWidget and edit mode:
Tab key will move to edit the next editable field
Yes, you're right.
Just for convenience, it would be nice, when switching to each next cell, to select all the text in it in order to write something new, and not erase the old one and then write down the new one, that's what I'm talking about. And in the previous cell, just the new text remains and that's it, without any selections
P.S. Sorry for lengthy responses, I can write every 10 minutes :)
wrote on 11 Apr 2023, 10:01 last edited by@Vlad02
If I understand what you want (still not sure). https://stackoverflow.com/questions/2804115/how-to-connect-focus-event-from-qlineedit shows to subclassQLineEdit
in order to override itsfocusIn
/OutEvent
s and emit a signal for them. Which you could attach a slot to to do the samedeselect
/selectAll()
principle as in the timer. Is that what you are looking to do? -
@Vlad02
If I understand what you want (still not sure). https://stackoverflow.com/questions/2804115/how-to-connect-focus-event-from-qlineedit shows to subclassQLineEdit
in order to override itsfocusIn
/OutEvent
s and emit a signal for them. Which you could attach a slot to to do the samedeselect
/selectAll()
principle as in the timer. Is that what you are looking to do?
21/22