Apparently using a QPushbutton with an Icon does not work. As alternative, I am going to use a QToolbutton.
Here is an example that adds Scrollbars to a QVBoxLayout. The one thing that tripped me up was that you need to explicitly create a Widget for the QScrollArea.
This example creates a QTreeListWidget to display a folder-structure.
You can add Icons to many types of QWidgets. PySide provides you with a method to access the native system icons. A complete list of icons can be found here: PySide.QtGui.PySide.QtGui.QStyle.StandardPixmap To apply the QIcon you need to Here a small example:
PySide (www.pyside.org) is an awesome Framework that allows you to use Qt with Python. Installation is as straightforward as typing I will be creating a menu that opens with a right click. This menu is called “Context Menu” in QT. In this example, the right-click menu on the button removes …