[Qt-interest] Cocoa Qt version and keyboard shortcutsnot working

Murphy, Sean M. sean.murphy at gd-ais.com
Thu Mar 11 22:17:48 CET 2010


>>> I'm using Qt in a Photoshop plugin and I see that when using the
>>> Cocoa version of Qt, none of my keyboard shortcuts on my toolbar
>>> QActions trigger.
>>  I don't have an answer, but had a question for you about plugins.
Did
>> you have to do anything "weird" to get the Qt event loop to spin for
>> your plugin?  Last year I wrote a plugin for a non-Qt application,
and
>> struggled quite a bit to get Qt's event loop to spin, without
blocking
>> the host application's event loop.  This other application makes
>> blocking calls to running plugins, so my plugin couldn't call exec()
or
>> the host application locks up until my plugin returns from exec().
>> 
>> I've got no experience with Photoshop plugins, but was just curious
if
>> you ran into similar issues with what you're doing...
> 
> No, I didn't have these problems with Photoshop. I had other problems,
> like Qt interfering with the host app's menubar, but I found ways of
> disabling that.

So you were able to just create a QApplication in the plugin, and then
exec() that QApplication, so for the most part, Qt just operated like
normal? 




More information about the Qt-interest-old mailing list