QCustomPlot Discussion and Comments

Move a Item to the top of the layersReturn to overview
January 12, 2015, 15:18
by Mostafa Alizadeh

I have created a plot with some graphs and a tracer for every graph.

What is the best way to have all the tracers on the top of the graphs always(Do i have to remove them and add them again?)?

January 15, 2015, 09:07
by DerManu

Layers control the rendering order.

So you can create a new layer (QCustomPlot ::addLayer ) above the main layer (that new layer will still be below the axis layer) and place all your tracers on that layer. This way they will appear above the graphs on main.

Have a look at the QCPLayer documentation for some more details about the system.

January 15, 2015, 11:11
by Mostafa Alizadeh

well done :) Thanks Emanuel.

January 17, 2015, 11:42
by Mostafa Alizadeh

Will this affects performance of the plots?

January 17, 2015, 15:01
by DerManu

No, the same things are drawn, just at different times.

July 23, 2023, 07:13
by ZacDu

I made the codes myself to use for my project.

You can move text item, arrow and wave bracket by mouse.
And you can resize the arrow and wave bracket by mouse.

I posted those on github : https://github.com/jcsu1835/QCustomPlot

I hope this will be helpful.

AltStyle によって変換されたページ (->オリジナル) /