Good afternoon everyone,<br><br>I'm developing a "little" application for my own purpose, using Qt model view.<br><br>I've develop my own model, for my own data, witch is quiet like a tree (to make it simple).
<br><br>I've got many tree view connected to my single model and that works great.<br><br>For one of those view, I would like to change a bit how it should be represented (make some color on some specific line, and put some data of a sub node in a line of an upper node).
<br><br>So, I create a new delegate (witch inherit from QItemDelegate) and redefined the 'paint' method for my own purpose.<br>I take a look about the trolltech method of qitemdelegate.cpp, and they use the function qt_format_text function to make it properly.
<br>This function his defined in qpainter.cpp (but it's not a method, it's a function).<br><br>I would like to use it too in my own delegate.<br>How could I do that ? I've not found any clue of this function in the pyQt documentation.
<br><br>Should I do it an other way ?<br><br>Thanks for you time, and sorry for my english, it's not my mother tong.<br clear="all"><br>-- <br>Alex<br>