I tried a simple example by adding the following code in KitchenSink ( draw_area.cpp ) to the paintevent() method. It did not crash and the text was indeed rotated as expected.
Can you experiment with this and see if you can get it repeatable. Then we can add Qwt back in to the mix.
Code: Select all
QTransform tmp; painter.setTransform(tmp.rotate(30.0)); painter.drawText(150, 150, "Hello CopperSpice"); painter.resetTransform();