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. why the QTreeWidgetItem::closeEditor implemented 2 times when i press the "Enter" keyboard....

why the QTreeWidgetItem::closeEditor implemented 2 times when i press the "Enter" keyboard....

Scheduled Pinned Locked Moved General and Desktop
4 Posts 2 Posters 902 Views 2 Watching
  • 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.
  • O Offline
    O Offline
    opengpu2
    wrote on last edited by
    #1

    why the QTreeWidgetItem::closeEditor implemented 2 times when i press the "Enter" keyboard....

    1 Reply Last reply
    0
    • Chris KawaC Offline
      Chris KawaC Offline
      Chris Kawa
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Can you clarify? QTreeWidgetItem has no member called "closeEditor".

      1 Reply Last reply
      0
      • O Offline
        O Offline
        opengpu2
        wrote on last edited by
        #3

        QTreeWidget::closeEditor

        1 Reply Last reply
        0
        • O Offline
          O Offline
          opengpu2
          wrote on last edited by
          #4

          and i find when i edit the item, i press ESC, the closeEditor emplement before keyPressEvent....and keyPressEvent even not implemented....
          what i want to do is while edit the item, the use can press ESC to delete the new editing item....how should i do this???

          1 Reply Last reply
          0

          • Login

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