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. QListWidget, new selections, last selections
Forum Updated to NodeBB v4.3 + New Features

QListWidget, new selections, last selections

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 188 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.
  • SPlattenS Offline
    SPlattenS Offline
    SPlatten
    wrote on last edited by
    #1

    I am have a slot connected to the signal itemSelectionChanged, in the slot I create a JSON object which includes all the new selections.

    I want to add to the last selections, is there a way to get the selections before this as they were before this selection changed?

    Kind Regards,
    Sy

    jsulmJ 1 Reply Last reply
    0
    • SPlattenS SPlatten

      I am have a slot connected to the signal itemSelectionChanged, in the slot I create a JSON object which includes all the new selections.

      I want to add to the last selections, is there a way to get the selections before this as they were before this selection changed?

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @SPlatten said in QListWidget, new selections, last selections:

      is there a way to get the selections before this as they were before this selection changed?

      You can simply remember previous selections (when the slot was called last time), can't you?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      SPlattenS 1 Reply Last reply
      3
      • jsulmJ jsulm

        @SPlatten said in QListWidget, new selections, last selections:

        is there a way to get the selections before this as they were before this selection changed?

        You can simply remember previous selections (when the slot was called last time), can't you?

        SPlattenS Offline
        SPlattenS Offline
        SPlatten
        wrote on last edited by
        #3

        @jsulm , thank you, thats what I'm looking at implementing now.

        Kind Regards,
        Sy

        1 Reply Last reply
        0
        • SPlattenS SPlatten has marked this topic as solved on

        • Login

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