×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Regular Contributor
    Join Date
    May 2009
    Location
    sydney
    Posts
    117

    Question how do I have the click() event for QListWidgetItem?

    Hi all, is there any way I can have some samples of a click() event when I navigate thru a list of items under QListWidget?
    say e.g. I've got a list of contacts in the QListWidget, I wanna select and click to edit the contact rather than create a button of "Edit" to do so, is it possible?
    Chrs,
    Wenz
    Last edited by wenz; 2010-10-19 at 03:28.

  2. #2
    Nokia Developer Moderator
    Join Date
    Oct 2009
    Location
    Finland
    Posts
    327

    Re: how do I have the click() event for QListWidgetItem?

    For a generic QWidget based approach, just use http://doc.qt.nokia.com/4.6/qwidget....ousePressEvent (you have an example there - even though it's graphical, it applies to QWidgets in general).

  3. #3
    Nokia Developer Moderator
    Join Date
    Oct 2009
    Posts
    4,326

    Re: how do I have the click() event for QListWidgetItem?

    Connect your slot to QListWidgetItem::itemClicked()
    http://doc.qt.nokia.com/4.7/qlistwid...ml#itemClicked

Similar Threads

  1. Mouse click Event
    By abhimanyu1 in forum Symbian
    Replies: 2
    Last Post: 2009-10-09, 08:10
  2. capture inbox click event
    By pamelag in forum Symbian User Interface
    Replies: 3
    Last Post: 2008-10-03, 11:20
  3. Camera Click Event
    By shashideokar10 in forum Symbian
    Replies: 1
    Last Post: 2008-06-10, 09:38

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •