Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QTableWidget's currentCellWasChanged called twice
Qt 6.12 LTS is out! See what's new in the release blog

QTableWidget's currentCellWasChanged called twice

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 438 Views 1 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.
  • P Offline
    P Offline
    Publicnamer
    wrote on last edited by Publicnamer
    #1

    I have a QTableWidget which has 1 column and 100 rows.
    When I click on the 1st row, my app's slot that I've connected to currentCellWasChanged gets called twice, once for row 0 and once for row 1.
    What could cause this type of bug?
    These 2 calls happen when I click down, not when I release the mouse button.

    Update:
    This bug occurs when I'm trying to control whether the QTableWidget is hidden i.e. I want the user to be able to click on an entry, and then I set the QTableWidget to hidden so that I can show something else.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Which version of Qt ?
      On which OS ?
      Can you provide a minimal compilable example that reproduces that behaviour ?

      Did you check the old and current values ?

      How do you implement your widget hiding ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      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
      • Unsolved