SFML community forums

Help => General => Topic started by: JamesYeoman on February 18, 2018, 09:14:22 pm

Title: [Request] [IDE Configuration] QT Config to go onto the Main Site
Post by: JamesYeoman on February 18, 2018, 09:14:22 pm
After spending a day working through and trying (and eventually succeeding) to get QT to work with SFML, I wouldn't wish the frustration I have had today upon anyone. Hence, I wish to provide the configuration steps for QT so that it can be put onto a page on the main SFML website alongside the configuration for MinGW and MSVC.

Here goes




Replace the contents of main.cpp with the following

#include <SFML/Graphics.hpp>

int main()
{
    sf::RenderWindow window(sf::VideoMode(200, 200), "SFML works!");
    sf::CircleShape shape(100.f);
    shape.setFillColor(sf::Color::Green);

    while (window.isOpen())
    {
        sf::Event event;
        while (window.pollEvent(event))
        {
            if (event.type == sf::Event::Closed)
                window.close();
        }

        window.clear();
        window.draw(shape);
        window.display();
    }

    return 0;
}
 

And compile.
Title: Re: [Request] [IDE Configuration] QT Config to go onto the Main Site
Post by: eXpl0it3r on February 18, 2018, 09:48:35 pm
Great that you figured it out! I think this explanation would be much better published on the community wiki alongside similar topics.

For the website we'd need a French translation, a proper formatting, more in-depth point plus screenshots and the guarantee that you're going to maintain it as long as possible (at least multiple years). If you can bring all this to the table, then feel free to provide a pull request on our website repository. :)
Title: Re: [Request] [IDE Configuration] QT Config to go onto the Main Site
Post by: JamesYeoman on February 18, 2018, 10:20:12 pm
Great that you figured it out! I think this explanation would be much better published on the community wiki alongside similar topics.

For the website we'd need a French translation, a proper formatting, more in-depth point plus screenshots and the guarantee that you're going to maintain it as long as possible (at least multiple years). If you can bring all this to the table, then feel free to provide a pull request on our website repository. :)

You will be pleased to know that the Windows section of Compile And Link SFML With Qt Creator (https://github.com/SFML/SFML/wiki/Tutorial:-Compile-and-Link-SFML-with-Qt-Creator) now has my findings on there.