Home > Mobile >  QListWidget how to do the mouse click to select a left key press and mobile are not allowed to selec
QListWidget how to do the mouse click to select a left key press and mobile are not allowed to selec

Time:10-09

Can't drag and radio only has already been set up, but when the left mouse button pressed and moving, will also follow the selected item, so get currectItem changed, cause misjudgment, don't know if you have found this, how can the mouse click to select, (excluding the use of a global variable record mouse selected item)

CodePudding user response:

Before I realized, that you don't need to control their own selected events, but rather to monitor mouse pop-up mouseReleaseEvent events, when receives this event to set the currently selected item of the index
  •  Tags:  
  • Qt
  • Related