Inside Sabertooth
Learn how Sabertooth uses 3ds Max to create 3D interactive projects, including HBO Go’s Game of Thrones interactive experience
  • 1/3
You are here: Forum Home / Autodesk® Maya® / SDK / [QT] Can't catch hotkey in my own widget with Maya and Qt
  RSS 2.0 ATOM  

[QT] Can't catch hotkey in my own widget with Maya and Qt
Rate this thread
 
61899
 
Permlink of this thread  
avatar
  • small830
  • Posted: 12 November 2011 06:27 PM
  • Total Posts: 1
  • Joined: 27 January 2010 09:26 AM

I wrote a mll plugin for maya and use qt in it (I use maya 2011 x64 on windows and Qt opensource 4.5.3, build with vs2008).

There’s a QMainFrame in my plugin and some actions with shortcut added to the widget.

When I run it in maya, I can’t use any hotkey to invoke the my actions. For example, I set the Ctrl+n to my own “new file” action, but after I pressed Ctrl+n in maya (I focused on my widget), it just made a new maya scene, not my “new file” action. Then I tried to change the hotkey which isn’t existing in maya, like Ctrl+e, but failed also.

But I start my widget in standalone QApplication, I can use all my hotkeys!

So I can’t catch the hotkey in maya any more.

How to fix it?
Thx



Replies: 0