On Tuesday, 27 de September de 2011 09:58:14 Mark wrote: > I recently discovered LibQxt because i was looking for some way to have > global key shortcuts without the need of the window being active. LibQxt > has QxtGlobalShortcut for that and i think that should be functionality in > Qt only a bit differently. Qt has QSchortcut which works just fine, but it > needs to have another enum value for the setContext function for system wide > shortcuts, right now there is : > http://doc.qt.nokia.com/latest/qt.html#ShortcutContext-enum For example add > one with the name Qt::SystemShortcut and when that's set you should get the > same behavior as you would get when using QxtGlobalShortcut.
As I explained before, global shortcuts are slightly more complicated because
you may not get the shortcut you asked for if another application already has
it. Though technically speaking, even normal shortcuts could be taken by
global shortcuts, like Ctrl+F1 or Ctrl+1.
I think we should have a global shortcut API in Qt. The Qxt codebase might
work well as a baseline, but someone needs to research a bit more how to
integrate with the KDE global shortcut manager. Another task for the platform
plugin, probably.
> Besides QxtGlobalShortcut there is more in LibQxt, like QxtJSON and
> QxtSmtp, that would be really convenient to have in Qt without 3rd party
> plugins. Perhaps a few others as well?
SMTP support could be provided as an addon until we get a good idea how common
the use is. If we find out it's used often, it can move to QtNetwork.
JSON support is provided by many different implementations already. I don't
think we can choose one right now. So we should simply list all the available
ones and apply the Darwin principle: standardise on the one that survives.
Another technology I see very often needed is serial port support. I think
there's only one implementation easily available for Qt, so it's a no brainer
which one to choose.
Is there anyone working on USB support?
> Note: How is it even possible in Todays Qt that we do have QML with json
> things in it, but no way to use it from C++..? Or did i miss something
> somewhere?
>
> Do those interesting parts of LibQxt make any chance of getting in Qt?
Yes, but only if someone does the effort and the licensing is compatible.
--
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
Software Architect - Intel Open Source Technology Center
PGP/GPG: 0x6EF45358; fingerprint:
E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ Qt5-feedback mailing list [email protected] http://lists.qt.nokia.com/mailman/listinfo/qt5-feedback
