I want create my custom model. But i confused with the code.
I want set text aligment some column and if in a cell have value =0, cell will color red.
Code:
#!/usr/bin/env python from PyQt4.QtCore import * from PyQt4.QtGui import * from PyQt4.QtSql import * def __init__(self, parent=None): def data(self, index, role): ?????
Sorry, my englis is bad