Tuesday, September 29, 2020

Catalin George Festila: Python Qt5 - Use QStandardItem with Images.

This tutorial show you how to use QStandardItem with Images. The source code is simple to understand. import sys from PyQt5.QtWidgets import QApplication, QMainWindow, QTreeView from PyQt5.QtCore import Qt from PyQt5.QtGui import QFont, QColor, QImage, QStandardItemModel, QStandardItem class ItemImage(QStandardItem): def __init__(self, txt='', image_path='', set_bold=False, color=QColor(0,

from Planet Python
via read more

No comments:

Post a Comment

TestDriven.io: Working with Static and Media Files in Django

This article looks at how to work with static and media files in a Django project, locally and in production. from Planet Python via read...