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 item should be de-selected on ctrl key + click
Forum Updated to NodeBB v4.3 + New Features

QListWidget item should be de-selected on ctrl key + click

Scheduled Pinned Locked Moved General and Desktop
6 Posts 2 Posters 1.7k 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.
  • M Offline
    M Offline
    Mahima
    wrote on last edited by
    #1

    Hi,

    I am having a problem with extended selection of QListWidget- icon view.
    Following are the steps to reproduce the issue:

    You should make selection mode as Extended selection.

    1. Select items.
    2. Now press Ctrl key
    3. Now press left button down

    The item get de-selected, actually it should remain selected and should de-select only on ctrl key + click not on ctrl+LMB down.

    Do any one is having idea how can I resolve the issue? I tried to fix the issue in event filter, but it does not work.

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

      Hi,

      You need to add which version of Qt you are using as well as OS you are running on.

      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
      • M Offline
        M Offline
        Mahima
        wrote on last edited by
        #3

        Yes, its QT 5.3.1 and OS is windows 7.

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

          Can you provide a minimal code sample (e.g. QListWidget setup) that reproduce that problem ?

          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
          • M Offline
            M Offline
            Mahima
            wrote on last edited by
            #5

            Hi,

            Thanks for your response.
            I have not done any coding to handle the selections. In the UI designer, I used selection mode of QListWidget as Extended selection.
            I think the behaviour can be reproduced if you have QListWidget with icon view and QlistWidget selection mode is Extended.

            Thanks,
            Maahi

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

              Just checked on OS X with Numbers, the cells get deselected on mouse down so it would make the behavior consistent at least on OS X

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