[Qt-interest] find/replace dialog

André Somers andre at familiesomers.nl
Sun Nov 29 11:02:09 CET 2009


Hi, 

While you point out a valid issue, I'm not sure I like your automatic
assignment of accelerator keys either. Judging from the screenshot on your
site only, I immediately spot some problems. The most obvious is the
accelerator for Italic. Your application assigns that that to ALT+l. What is
unacceptable, I think. Practically *every* application uses uses the I key
here, I'd say. It would be confusing for a user if non-standard accelerators
would be used.

Another problem that I see, is that the keys may seemingly randomly change
between application versions. If between two application versions the
strings used change, then existing functions may end up with another
accelerator key. That doesn't sound like something my users would
appreciate. 

Perhaps I see it all wrong, but maybe you can comment on this?

André

-----Oorspronkelijk bericht-----
Van: qt-interest-bounces at trolltech.com
[mailto:qt-interest-bounces at trolltech.com] Namens Mark Summerfield
Verzonden: zondag 29 november 2009 9:35
Aan: qt-interest at trolltech.com
CC: Lorenzo Bettini
Onderwerp: Re: [Qt-interest] find/replace dialog

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
_______________________________________________
Qt-interest mailing list
Qt-interest at trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-interest





More information about the Qt-interest-old mailing list