Hello,
I have a very simple problem but I couldn't find the solution by myself or on this forum...
Adding any widget to my group makes my application crash.
I have a classe named Application, it has a tgui object called tgui.
When I create Application, I try to do this :
Application::Application()
{
// Some code
// Graphical User Interface
Application::tgui.setTarget(Application::window); // setting my tgui object on my window object
try
{
auto button1 = tgui::Button::create();
auto group = tgui::Group::create();
group->add(button1, "button"); // CRASH
}
catch (const tgui::Exception& e)
{
std::cerr << "TGUI Exception: " << e.what() << std::endl;
}
}
I don't have any answer from cerr, and I don't understand why this would crash ?
Thank you for your help !