Some smear in my curve widget,SOS


I wrote my own curve control referring to lv_chart. When the cursor moves over, there will be smear. Other controls will not.
Can you give some suggestions?

What MCU/Processor/Board and compiler are you using?


What LVGL version are you using?


What do you want to achieve?

When the cursor moves over, there will be normal.

What have you tried so far?

or lv_obj_set_click(m_curveObj,true); do not work.

Code to reproduce


Screenshot and/or video


Can you send a code sample, please?

I have send a message to you :smiley:

It seems to depend on other files.

Can you create a self-contained code sample that will run in the PC simulator and send that?

“Other files” contains an empty class.
On VS2017, I can’t do a mixed compilation of C and C++. :disappointed_relieved:

I tried to reproduce this problem in the simulator in C mode, but a new problem appeared: when the mouse moves into the control area, an exception will occur.

CurveCtrl.h (253 Bytes) CurveCtrl.c (7.9 KB)

In file lv_demo_widgets.c ,add test curve function

show cursor

Do you know what went wrong?