[Qt-interest] error in moc file
Ramesh
ramesh.bs at robosoftin.com
Thu Mar 18 10:33:46 CET 2010
I am not getting exactly what you are telling, what is the use of overriding
" selectionchange " method?
I have done like this,
1)inherit the listview
2)override the "selectionchange" slot
if I do this I am not getting the control only..
Is this wrong?
-----Original Message-----
From: qt-interest-bounces at trolltech.com
[mailto:qt-interest-bounces at trolltech.com] On Behalf Of
Oliver.Knoll at comit.ch
Sent: Thursday, March 18, 2010 2:55 PM
To: qt-interest at trolltech.com
Subject: Re: [Qt-interest] error in moc file
Ramesh wrote on Thursday, March 18, 2010 9:48 AM:
> ...
> When the selection of items in the listview gets changed I want to
> get the "selectionchange" event to come..
>
> So how can I achieve this.. pls tell me in brief...
Inherit from http://doc.trolltech.com/4.6/qabstractitemview.html (or
QListView) and overwrite the setSelection method (and possibly other methods
which change the selection). Then send your custom signal "selectionChanged"
in all these cases. Easy.
Cheers, Oliver
--
Oliver Knoll
Dipl. Informatik-Ing. ETH
COMIT AG - ++41 79 520 95 22
_______________________________________________
Qt-interest mailing list
Qt-interest at trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-interest
-----------------------------------------------
Robosoft Technologies - Come home to Technology
Disclaimer: This email may contain confidential material. If you were not an intended recipient, please notify the sender and delete all copies. Emails to and from our network may be logged and monitored. This email and its attachments are scanned for virus by our scanners and are believed to be safe. However, no warranty is given that this email is free of malicious content or virus.
More information about the Qt-interest-old
mailing list