Mailinglist Archive: opensuse-bugs (12871 mails)

< Previous Next >
[Bug 440101] Oxygen widget theme sends double clicks instead of single clicks in QTreeWidget
  • From: bugzilla_noreply@xxxxxxxxxx
  • Date: Wed, 7 Jan 2009 14:19:13 -0700 (MST)
  • Message-id: <20090107211913.A3BFE245391@xxxxxxxxxxxxxxxxxxxxxx>

User christoph@xxxxxxxxx added comment

--- Comment #20 from Christoph Feck <christoph@xxxxxxxxx> 2009-01-07 14:19:13
MST ---
You should really read Qt docs before you are going to state this.

The style hint is required because on many platforms it is a _users_ choice
wether items should be activated using single or double click. Applications
should respect that choice. And they do automatically, i.e. without any
additional code, if they use the activated() signal.

However, if there is a difference between selecting an item, and activating it,
you should be aware of the platform differences.

Solution: Simply use the doubleClicked() signal instead of the activated()
signal, if your item view needs to distinguish between selection and

Please see the documentation about QAbstractItemView::activated(), ::clicked()
and ::doubleClicked() signals.

Configure bugmail:
------- You are receiving this mail because: -------
You are on the CC list for the bug.

< Previous Next >