Quote Originally Posted by Caius Aérobus
void
vadControlPolygon::dataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight)
{
this->paint();
}
This should be something like:
Qt Code:
  1. void
  2. vadControlPolygon::dataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight)
  3. {
  4. QRect rect( calculateChangeRegion( topLeft, bottmRight ) );
  5. update( rect );
  6. }
To copy to clipboard, switch view to plain text mode