[PyQt] Confused about Delegates...
Martin Höfling
martin.hoefling at gmx.de
Sat Dec 15 15:08:51 GMT 2007
Hi all,
I am learning PyQt at the moment with "Rapid GUI Programming with Python and
Qt". Not new to Python but to Qt, this is where my confusion starts:
My Implementation should display data of my model in a specific table cell the
following way:
A C E D K [###### ] L I N
The letters are fixed but the Background behind each individual one should
change dependent on data. In the middle, there's a progressbar.
My current approach was to provide the row as an integer in the model data().
The idea was to reimplement paint() with my custom delegate and paint data of
my model in the described way based on the provided row. Providing the row is
no problem but how to paint the above? Basically, the above cell layout can
be implemented by a Horizontal layout, filled with Label Widgets and a
ProgressBar Widget right? But how to paint this?
Thanks for any hints and comments, how to do this better with Qt ;-)
Martin
More information about the PyQt
mailing list