Hi there,
been searching the forums quite a bit..but couldnt find something
reasonable.
I have a QToolButton and an icon. I dont want to bake the text into the
icon image, I d rather have a text using btn.setText("Text").
The problem the text is set right underneath the icon which I dont want in
my case.
It should be on top of the icon. Is there any way to do that?
I guess with a custom QToolButton..could someone help me out there?
btn = QtGui.QToolButton()
btn.setText("Text")
icon = QtGui.QIcon()
icon.addPixmap(os.path.join('path_to_icon.png', QtGui.QIcon.Normal,
QtGui.QIcon.On)
btn.setIcon(icon)
ideally:
icon.setToolButtonStyle(QtCore.Qt.ToolButtonText*OnTop*Icon
Is there a way to offset the text using style sheet?
Any help is appreciated
--
You received this message because you are subscribed to the Google Groups
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/python_inside_maya/1b3c3979-741f-476d-99ea-da96b656819b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.