Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. [SOLVED]QListWidget : avoid clicking before selecting
Forum Updated to NodeBB v4.3 + New Features

[SOLVED]QListWidget : avoid clicking before selecting

Scheduled Pinned Locked Moved Mobile and Embedded
4 Posts 3 Posters 2.6k 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.
  • H Offline
    H Offline
    hisong1988
    wrote on last edited by
    #1

    Hi,all.

    I want to has focus when select a item of a QListWidget. But when I select a item and the item seems to be pressing. and then the item emit a signal itemClick(QListWidgetItem*)..... Running this on my 5800(touch-screen)

    how to avoid clicking before selecting or how to achieved that effect: at first I click the item and the item is selected,and then I click again the item and the item emit the signal itemClick(QListWidgetItem*)

    I am still searching for....

    1 Reply Last reply
    0
    • Q Offline
      Q Offline
      qtrahul
      wrote on last edited by
      #2

      You should use QWidget::setEditFocus() for QListWidget.

      1 Reply Last reply
      0
      • H Offline
        H Offline
        hisong1988
        wrote on last edited by
        #3

        Oh,qtrahul Thank you very much.

        QWidget::setEditFocus() woks well.

        I am still searching for....

        1 Reply Last reply
        0
        • K Offline
          K Offline
          kamalakshantv
          wrote on last edited by
          #4

          "This":http://discussion.forum.nokia.com/forum/showthread.php?190247-QListWidget-avoid-click-before-selecting FN thread solves this problem.

          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