PDA

View Full Version : Qt Designer Setting "defaultAction" of QToolButtons in Qt designer.



LonelyStar
6th October 2011, 14:01
Hi,

When I have a QToolButton (not in a toolbar, but as a widget in a from) I can "connect" it to an action with "setDefaultAction", which has many advantages (i.E. the toolButton gets disabled when the action gets disabled).
Can I make this connection also directly in qt4 designer?

Thanks!

wysota
7th October 2011, 20:46
As far as I remember this has to be done in code. Designer can't handle it. Just add an empty button and then add an action to it in code.