Issue
In Qt Designer I can only drag the ToolButton from Widget box. The generated code will look like this.
self.toolButton = QtWidgets.QToolButton(Frame)
self.toolButton.setGeometry(QtCore.QRect(350, 480, 26, 22))
self.toolButton.setObjectName("toolButton")
The button will look like this:
I want it to be an arrow button. For it to be an arrow button, I can do like this:
self.toolButton.setArrowType(QtCore.Qt.UpArrow)
My question is, how can I make the arrow button directly in QtDesigner without changing any code ?
Solution
Its in the settings for the tool button on the right hand side
Answered By - alexpdev
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.