The Tooltip widget has been added to v0.7-dev.
When using the built-in white theme, you only need to set the text.
Otherwise you must load the theme file first.
Edit:
But the downside of this news is that v0.7 is still far away from being released, so using v0.7-dev is not a great option unless it is just for testing, and I will not port the Tooltip widget to v0.6.
When using the built-in white theme, you only need to set the text.
Code Select
button->getTooltip()->setText("Hello world");
Otherwise you must load the theme file first.
Code Select
button->setTooltip(tgui::Tooltip::create("Black.conf"));
Edit:
But the downside of this news is that v0.7 is still far away from being released, so using v0.7-dev is not a great option unless it is just for testing, and I will not port the Tooltip widget to v0.6.