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. How can I get the previous and current items sent by a signal QTableWidget::currentItemChanged?

How can I get the previous and current items sent by a signal QTableWidget::currentItemChanged?

Scheduled Pinned Locked Moved Solved General and Desktop
slotssignal & slot
2 Posts 2 Posters 184 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.
  • J Offline
    J Offline
    jdent
    wrote on 1 May 2024, 17:14 last edited by
    #1

    I currently have the table widget connected to a void slot called onCurrentItemChanged() but I want to know the previous and the current items... how can I access that information from the slot? What signature do I need the slot to have?

    Thanks!

    M 1 Reply Last reply 1 May 2024, 17:22
    0
    • J jdent
      1 May 2024, 17:14

      I currently have the table widget connected to a void slot called onCurrentItemChanged() but I want to know the previous and the current items... how can I access that information from the slot? What signature do I need the slot to have?

      Thanks!

      M Offline
      M Offline
      medyakovvit
      wrote on 1 May 2024, 17:22 last edited by
      #2

      @jdent

      like the signal
      onCurrentItemChanged(QTableWidgetItem *current, QTableWidgetItem *previous)

      1 Reply Last reply
      1
      • J jdent has marked this topic as solved on 1 May 2024, 17:25

      2/2

      1 May 2024, 17:22

      • Login

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