[Eric] about my qt 4.5.3 problem

detlev detlev at die-offenbachs.de
Fri Oct 23 16:53:09 BST 2009


On Freitag, 23. Oktober 2009, Linos wrote:
> it seems that if i change E4Action for QAction objects i get the correct
> behavior with the shortcuts. I have changed this in Debugger/DebugUI.py.
> 
> self.runProjectAct = E4Action(self.trUtf8('Run Project'),
>          UI.PixmapCache.getIcon("runProject.png"),
>          self.trUtf8('Run &Project...'),Qt.SHIFT + Qt.Key_F2,0,self,
>         'dbg_run_project')
> 
> for this:
> 
> from PyQt4.QtGui import QAction, QKeySequence
> self.runProjectAct = QAction(UI.PixmapCache.getIcon("runProject.png"),\
>          self.trUtf8('Run Project'), self)
> self.runProjectAct.setShortcut(QKeySequence(Qt.SHIFT + Qt.Key_F2))

The E4Action constructor does a little bit more than your lines of code. Can 
you please step through the eric4 code and check, where it fails.

> 
> and now this shortcut works ok as you can see in the screenshot. Eric it is
>  the only application i have problems with qt 4.5.3 upgrade, i have tried
>  in qt creator and i can use all the keys in the editor window, arrow and
>  backspace too. Anyone know how i can fix this?
> 
> Regards,
> Miguel Angel.
> 

Detlev
-- 
Detlev Offenbach
detlev at die-offenbachs.de


More information about the Eric mailing list