[Qt-interest] Event handling in QListWidget
Ravi_Kalepalli
Ravi_Kalepalli at Satyam.com
Thu Feb 5 11:39:12 CET 2009
Hi All,
I am constructing listwidget for handling events using signal and slot.
When I am using
listWidget = new QListWidget(this);
QListWidgetItem Item(listWidget);
connect(listWidget,SIGNAL(itemPressed(Item)),this, SLOT(ItemDisplay1(Item )));
* void itemClicked<file:///C:\Qt\4.4.2-pyramid\doc\html\qlistwidget.html#itemClicked> ( QListWidgetItem * item )
* void itemDoubleClicked<file:///C:\Qt\4.4.2-pyramid\doc\html\qlistwidget.html#itemDoubleClicked> ( QListWidgetItem * item )
* void itemPressed<file:///C:\Qt\4.4.2-pyramid\doc\html\qlistwidget.html#itemPressed> ( QListWidgetItem * item )
What I want is if I click any item in the widget slot is not getting executed
void Mediagallery::ItemDisplay1(QListWidgetItem * item )
{
QMessageBox msgBox;
msgBox.setText("The document has been modified.");
msgBox.exec();
}
Please suggest me.
Thanks and Regards
Ravi Kalepalli
Telephone: 080-67807807
Mobile: 98807 24688
[cid:image001.gif at 01C987AC.154B4970]
________________________________
DISCLAIMER:
This email (including any attachments) is intended for the sole use of the intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or distribution or forwarding of any or all of the contents in this message is STRICTLY PROHIBITED. If you are not the intended recipient, please contact the sender by email and delete all copies; your cooperation in this regard is appreciated.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090205/ef1cc500/attachment.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.gif
Type: image/gif
Size: 8498 bytes
Desc: image001.gif
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090205/ef1cc500/attachment.gif
More information about the Qt-interest-old
mailing list