Re: My Struggle with Qwt
Posted: Tue Jan 19 2021 7:24 am
We would like to follow up on this issue regarding painting text using a rotation. I understand you are using Qwt however we should ensure text rotation is working properly in CopperSpice. There maybe some interaction between the Qwt and CS which is making the issue harder to find.
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.
Barbara
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.
Code: Select all
QTransform tmp;
painter.setTransform(tmp.rotate(30.0));
painter.drawText(150, 150, "Hello CopperSpice");
painter.resetTransform();
Barbara