This feature request proposes to add the capability of defining qt designer custom extensions for specific taurus widgets.
Currently a taurus widget can be added to qt designer:
from taurus.qt.qtgui.util.qtdesigner import QtDesignable @QtDesignable class MyWidget(Qt.QWidget): pass
or
class MyWidget(Qt.QWidget): @classmethod def getQtDesignerPluginInfo(cls): return ...
However it is not possible to add a customized task menu or a property sheet extension.
This feature request proposes to add options to QtDesignable decorator and to the getQtDesignerPluginInfo to support these extensions. Example:
@QtDesignable(task_menu=MyWidgetTaskMenu) class MyWidget(Qt.QWidget): pass from taurus.qt.qtdesigner.taurusplugin import TaurusTaskMenu class MyWidgetTaskMenu(TaurusTaskMenu): def taskActions(self): # build Qt actions here return []
Seems a nice feature to me (and I do not see any drawbacks).
Are you already working on the implementation?
BTW: is the QtDesignable decorator already available? (I cannot find it in the develop branch)
On Mon, 2015-02-09 at 08:20 +0000, Carlos Pascual wrote:
On Mon, 2015-02-09 at 08:18 +0000, Carlos Pascual wrote:
Ticket moved from /p/sardana/tickets/321/
Can't be converted:
Hi Tiago, any update on this?