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. Signal emitted when the cursor comes out of QTableWidget Cell
Forum Updated to NodeBB v4.3 + New Features

Signal emitted when the cursor comes out of QTableWidget Cell

Scheduled Pinned Locked Moved General and Desktop
4 Posts 3 Posters 4.0k 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.
  • I Offline
    I Offline
    Indrajeet
    wrote on last edited by
    #1

    Hi

    Is there any signal which gets emitted when the cursor comes out of QTableWidget Cell.
    In QT documentation i didnt come across any of such signal.

    1 Reply Last reply
    0
    • A Offline
      A Offline
      andre
      wrote on last edited by
      #2

      No, there is no such signal. What do you want to achieve (the ultimate goal, not how you planned to get there).

      1 Reply Last reply
      0
      • I Offline
        I Offline
        Indrajeet
        wrote on last edited by
        #3

        Hi Andre

        I have created a table using QTableWidget.Which has 5 columns
        Only one column i have made as editable.
        When the data is populated in table user can go to editable column cells & edit the content but i dont want user to leave that cell as blank or empty.
        If it is empty when the table is first populated its ok but user should not make the it empty if data is already there.

        1 Reply Last reply
        0
        • G Offline
          G Offline
          giesbert
          wrote on last edited by
          #4

          You could use the signal "cellChanged":http://doc.qt.nokia.com/4.7/qtablewidget.html#cellChanged to check the data of a changed cell. This does not imply entering and leaving a cell without editing it.

          You could also use "currentCellChanged":http://doc.qt.nokia.com/4.7/qtablewidget.html#currentCellChanged which is used when the focus switches from one cell to another. This does not include moving the cursor out of the table with tab or mouse.

          Nokia Certified Qt Specialist.
          Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

          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