[Qt-interest] find/replace dialog
Mark Summerfield
list at qtrac.plus.com
Sun Nov 29 09:34:50 CET 2009
On 2009-11-28, Lorenzo Bettini wrote:
> Hi
>
> some time ago I asked whether there is a reusable find/replace dialog,
> but I was answered there's none.
>
> I tried to write one myself
>
> http://gitorious.org/qtfindreplacedialog
>
> any comment and contribution is welcome
Hi Lorenzo,
I noticed that in the screenshot on sourceforge you have a few duplicate
keyboard accelerators ("&Find:" and "&Find", "&Close" and "&Case
sensitive", and "R&eplace with" and "R&egular Expression").
I have a Qt program that lets you type in a list of texts (e.g., the
labels and button texts used in a dialog, or the options in a menu,
etc.), and produces a new list with keyboard accelerators and without
duplicates. See:
http://www.qtrac.eu/alt_key.html
In fact, the library that the program uses is fast enough to set
keyboard accelerators dynamically, so you can embed it in your (GPL)
code. Unfortunately I haven't yet documented the library, but it is easy
to use nonetheless---just use one of the accelrate*() functions. (This
library is used by almost all the examples in _Advanced Qt Programming_
and has already saved me lots of time.).
--
Mark Summerfield, Qtrac Ltd, www.qtrac.eu
C++, Python, Qt, PyQt - training and consultancy
"Advanced Qt Programming" - ISBN 0321635906
More information about the Qt-interest-old
mailing list