[PyQt] javascript does not execute method in exposed QT object

JC Francois jc.francois at gmail.com
Mon Mar 17 12:12:37 GMT 2014


JC Francois wrote:

> Why doesn't checkBold get executed while the test() javascript function
> runs?

I found the solution myself. The trick is to add a @pyqtSlot() decoration in 
front of the exposed method:

     @pyqtSlot()
     def checkBold(self):
         self.action_Bold.setChecked(True)

-- 
/~JC



More information about the PyQt mailing list