D
D
Denis2015-05-03 16:02:04
Qt
Denis, 2015-05-03 16:02:04

Why is the QStyledItemDelegate::paint method called twice?

Probably, again, no one except me will answer my question ... (:
I have a QLisView, I have my delegate inherited from QStyledItemDelegate.
What I see: when the list is displayed, the paint method of my delegate is called twice, despite the fact that the model contains only one element Why can this happen or should it be so?
UPD.
In general, is it correct to draw your widget in the list in this method?
I mixed up something (:

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question