Richard Moore wrote: > > Stefan Taferner wrote: > > > > On Tue, 24 Aug 1999, Carsten Pfeiffer wrote: > > > On Sat, Aug 07, 1999 at 01:00:51AM +0200, Harri Porten wrote: > > > > > > Hi, > > > > > > I'm afraid I haven't answered this yet %-/ > > > > > > > > uh, I think the Trolls set Ctrl-A to "beginning of line" (and > > > > > appropriately Ctrl-E to "end of line" in all text-based widgets. > > > > > > > > Thanks for pointing this out. > > > > > > > > Will every shortcut define in QLineEdit stop us from using it ourselves > > > > ? Ctrl-F is for example used to move the cursor forward while we define > > > > it as an accelerator for find. > > > > > > I guess it depends on focus. If some Qt widget uses Ctrl-F for for "cursor > > > forward", it will get the keyevent first and most probably accept it. > > > > > > It would be nice to have a way to redefine all of Qt's accelerators, but > > > I'm afraid this is not feasible without subclassing all affected widgets. > > > > And even subclassing all the widgets is IMO no good way to solve > > the problem. > > > > We would then end up in a complete mess, where we have apps that > > use our widgets with our bindings, and apps that use Qt's widgets. > > > > IMO the only way that makes sense is to use Qt's standard bindings > > and add our own for the keys that are unused. > > We can also use event filters to handle this. > This doesn't change anything. The point Stefan had was that you have to everywhere or nowhere and that you have not really a way to ensure either way besides not doing it at all :) Greetings, Stephan -- Better give your hours some more life than your life some more hours. - anonymous