My Struggle with Qwt

barbara
Posts: 281
Joined: Sat Apr 04 2015 2:32 am

Re: My Struggle with Qwt

Post by barbara »

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.

Code: Select all

QTransform tmp;
painter.setTransform(tmp.rotate(30.0));
painter.drawText(150, 150, "Hello CopperSpice");
painter.resetTransform();
Can you experiment with this and see if you can get it repeatable. Then we can add Qwt back in to the mix.

Barbara

Post Reply