The problem was: wxClientDC draws in a QPicture owned by the DC. In the destructor, QtPictureSetter sets the picture to be used by the associated window and generates a paint event, then resets the picture when it goes out of scope before the paint handler has a chance to replay the image. In this commit, this setup is changed so that window owns the picture instead and is responsible for deleting it when it is actually used. |
||
|---|---|---|
| .. | ||
| msvc/wx | ||
| wx | ||