QIconView not emitting selectionChanged()

Krzysztof Lichota krzysiek at lichota.net
Mon Aug 28 14:54:25 BST 2006


Reposting to kde-core-devel, as it seems more appropriate list.

While testing my Cbar Konqueror extension I have noticed that multiple
selection of items works in all Konqueror list views, but it doesn't
work in icon views.

I have traced the problem down to QIconView. It does not emit
selectionChanged() signal when selecting items by dragging selection box
around them. It does when selecting by clicking on items.

So, is it a bug in Qt or intended behaviour? If a bug, can we work
around it in KDE by providing right behaviour in KIconView?

I attach simple python app which illustrates the problem. It shows
message box when selectionChanged() is emitted. It does not appear if
the 2 items are selected by dragging selection around them.

BTW. The funny (and counter-intuitive) thing is that when after
selecting these 2 items I click on the background and selection
disappears, the signal is emitted, although from point of view of
receiving app selection has not been changed! I.e step by step:
1. No items selected.
2. Select 2 items by dragging selection around them -> no signal emitted.
3. Click on icon view background -> selection disappears -> signal emitted.

	Krzysztof Lichota


-------------- next part --------------
A non-text attachment was scrubbed...
Name: testqticonview.py
Type: text/x-python
Size: 881 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20060828/45315fdc/attachment.py>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 254 bytes
Desc: OpenPGP digital signature
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20060828/45315fdc/attachment.sig>


More information about the kde-core-devel mailing list