PyQt SVG icon QToolButton
Parent class of this is QToolButton
and SvgAbstractButton
. (Multiple inheritance)
If you want to use svg supporting QPushButton
instead of QToolButton
, use pyqt-svg-button.
Note: Don't use this to PySide project. It doesn't take multiple inheritance well. Besides, you don't have to use this to PySide6 at all because i find that PySide6 or PyQt6(if you will) can automatically turn png into svg icon, or make it smoother. Correct me if i'm wrong.
- PyQt5 >= 5.8
python -m pip install pyqt-svg-toolbutton