[Qt-interest] [SOLVED] doubleClick signal for QLineEdit
M. Bashir Al-Noimi
mbnoimi at gmx.com
Thu Jul 23 15:47:31 CEST 2009
John McClurkin wrote:
> Well, the stock QLineEdit object doesn't emit any signals for mouse
> click events, so if you want one you will have subclass your own version
> of QLineEdit.
>
> With a bit of clever design you won't have to modify your code every
> time you modify a gui element. Have your eventFilter emit a signal when
> it receives a MouseButtonDblClick event. Then, just connect the signal
> to a slot or don't. A signal that is not connected to any slots just
> harmlessly disappears.
Hi All,
OK, I've modified my code by using eventFilter and I discovered that
it's very very easy and flexible and I didn't find any M$ windows
programming language can do that (MS C#, Visual C++ or Delphi).
Thanks all.
PS.
I've migrated from M$ Windows to Linux/ubuntu since months ago, ubuntu
is truly the heaven of users and programmers.
-----
Best Regards
Muhammad Bashir Al-Noimi
My Blog: http://mbnoimi.net/
More information about the Qt-interest-old
mailing list