Hi,
I am trying to hide the title of a QwtPlot.
The title "blinks" but is not hidden.
I am on linux. It does not work on Windows XP.
The QwtTextLabel works fine.
Thanks.
Printable View
You could try to set an empty text to your plot title like this:
Code:
plot->setTitle("");
Yes ofc but as I want to show it later it means that I have to keep a copy of the title before removing it.
The question is more about why it does not work as expected.
Because your expectation is not how it works.
But, being more serious: hiding/showing of the plot title widget is under control - depending on an empty title or not - of the layout system of the plot widget. When you hide a not empty title widget manually it will be shown by the next replot. That's why it is blinking.
Uwe
Okay, thank you !
(and I wanted to mean "as I expected...")
That leaves me with two solutions I guess :
- The one we talked about (removing the string)
- And overloading the replot function.
I'll go with the first one which is fair enough for me :)