[PyQt] Icon size and label position in QPushButton?

Maxwell, Thomas P. (GSFC-606.2)[SCIENCE APPLICATIONS INTL CORP] thomas.maxwell at nasa.gov
Fri Sep 9 15:05:42 BST 2011


I am creating a button with an icon:

        icon = QIcon ( iconFile )
        button = QPushButton(  icon, label, parent )

The icon as saved in the file is rather large, but is always scaled down to
a tiny size when displayed in the button.   Is there any way to get the
QPushButton to display the icon at full size?    Also, is there any way to
get the QPushButton to display the label below the icon (instead of to the
right)?



More information about the PyQt mailing list