Yes, now it work
You teach me a good thing today
Thank you
You teach me a good thing today
Thank you
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts Menu
str_annual_wages = std::to_string(drivers_vector[i]->contract->getAnnualWages()) + "â,¬";
vect.push_back(sf::String::fromUtf8(str_annual_wages.begin(), str_annual_wages.end()));
// This is a part of my code, i use vectors to fill the listview columns
#include <TGUI/TGUI.hpp>
int main()
{
sf::RenderWindow window{{800, 600}, "Window"};
tgui::Gui gui{window}; // Create the gui and attach it to the window
tgui::Button::Ptr button = tgui::Button::create();
tgui::EditBox::Ptr editBox = tgui::EditBox::create();
//gui.add(button);
//gui.add(editBox, "MyWidgetName");
while (window.isOpen())
{
sf::Event event;
while (window.pollEvent(event))
{
if (event.type == sf::Event::Closed)
window.close();
gui.handleEvent(event); // Pass the event to the widgets
}
window.clear();
//gui.draw(); // Draw all widgets
window.display();
}
}