Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QTableWidget and edit mode

QTableWidget and edit mode

Scheduled Pinned Locked Moved Unsolved General and Desktop
22 Posts 3 Posters 3.2k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Vlad02
    11 Apr 2023, 09:48

    @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 :)

    J Offline
    J Offline
    JonB
    wrote on 11 Apr 2023, 10:01 last edited by
    #21

    @Vlad02
    If I understand what you want (still not sure). https://stackoverflow.com/questions/2804115/how-to-connect-focus-event-from-qlineedit shows to subclass QLineEdit in order to override its focusIn/OutEvents and emit a signal for them. Which you could attach a slot to to do the same deselect/selectAll() principle as in the timer. Is that what you are looking to do?

    V 1 Reply Last reply 11 Apr 2023, 10:22
    0
    • J JonB
      11 Apr 2023, 10:01

      @Vlad02
      If I understand what you want (still not sure). https://stackoverflow.com/questions/2804115/how-to-connect-focus-event-from-qlineedit shows to subclass QLineEdit in order to override its focusIn/OutEvents and emit a signal for them. Which you could attach a slot to to do the same deselect/selectAll() principle as in the timer. Is that what you are looking to do?

      V Offline
      V Offline
      Vlad02
      wrote on 11 Apr 2023, 10:22 last edited by
      #22

      @JonB This looks interesting. I'll try to work with this, thanks!

      1 Reply Last reply
      0

      21/22

      11 Apr 2023, 10:01

      • Login

      • Login or register to search.
      21 out of 22
      • First post
        21/22
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved