klistview header click event.

David Harel hareldvd at ergolight-sw.com
Sun Feb 15 19:54:37 UTC 2004


I am interested in running a slot function to a click() event whenever a 
user clicks on the title of a KListView item.
My development environment is KDE3.2 and corresponding QT. Kdevelop 3.0 
as from the site:

Code example:

KListView * mylistview;
mylistview = new KListView(this);
connect(mylistview->header(), SIGNAL( clicked()), this, SLOT( 
myclickfunction() ) );

On run time I get the following error messages:
QObject::connect: No such signal QHeader::clicked()
QObject::connect:  (sender name:   'list view header')
QObject::connect:  (receiver name: 'unnamed')

I also tried it with QListView that inherits to KListView but got the same error.

Any idea?


David Harel,


Home office +972 4 6921986
Fax:        +972 4 6921986
Cellular:   +972 54 534502
Snail Mail: Amuka
            D.N Merom Hagalil
Email:      hareldvd at ergolight-sw.com

to unsubscribe from this list send an email to kdevelop-request at kdevelop.org with the following body:
unsubscribe »your-email-address«

More information about the KDevelop mailing list