Ok, coming back to my problem, I've basically created a new QStyledItemDelegate and populated it with dummy data, but the speed didn't change at all.
from PyQt4 import QtGui, QtCore
from PyQt4.QtGui import QStyledItemDelegate, QPixmap
from PyQt4.QtCore import Qt, QDir
def __init__(self, parent = None):
def paint(self, painter, option, index):
QStyledItemDelegate.paint(self, painter, option, index)
pixmap = QPixmap("../resources/images/assetBrowser.jpg")
and i am calling this as follows:
self.model().setData(self.model().index(0, 0), QPixmap("../resources/images/upArrow.png"), Qt.DecorationRole)
So, before i was calling setItemWidget, now setItemDelegate... am i doing something wrong? And i still don't get why this would be faster than "setItemWidget"