문제

I've a PyQt4 Installed on Python 2.6. I wish to insert actions or widgets into a toolbar in QtDesigner instead of adding them in code, with addAction or addWidget (as simple as adding actions to a menu in design time).

도움이 되었습니까?

해결책

You can add actions by dragging them to your tool bar from the "Action editor" dock window. You cannot add widgets to the tool bar in Qt Designer, I'm afraid you'll have to do this from your code.

다른 팁

You can create your own widget plugins with new or extended functionalities. Just follow the definition rules from the documentation . I use a lot of custom widgets inside the Qt Designer. Once you have figured out, how it works, it becomes a really power full method for your design work flow inside Qt Designer.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top