TLine: forbid edit

Is there a way to disable TLine “edit” when it is drawn on top of a TGraph or THist?
By default it is possible to select the line and move it with the mouse.

Thanks,
Andrey

{
   auto C = new TCanvas();
   TLine *line = new TLine(0.2320917,0.5136842,0.6446991,0.6821053);
   line->Draw();
   C->SetEditable(kFALSE);
}
1 Like

Thank you Oliver! Sorry for not answering in time.

Oliver, is there any other way to do it?

This method is too “global”, it affects too many other things related to drawing.
I am using TCanvas in a QWidget inside a Qt application.

Regards,
Andrey

Not as far as I know.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.