Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: SFML 2.0 and QT 5 Integration  (Read 8662 times)

0 Members and 1 Guest are viewing this topic.

Anteara

  • Newbie
  • *
  • Posts: 40
    • View Profile
    • Email
SFML 2.0 and QT 5 Integration
« on: July 12, 2013, 05:52:24 pm »
Hi all, I've been trying to integrate SFML 2 with QT 5, but the only tutorial I found was the SFML 1.6 tutorial, with regards to QT. I tried it anyway but couldn't get it working.

Does anyone have a tutorial/guide for SFML 2 and QT 4 or 5?

Thanks.

The Terminator

  • Full Member
  • ***
  • Posts: 224
  • Windows and Mac C++ Developer
    • View Profile
Re: SFML 2.0 and QT 5 Integration
« Reply #1 on: July 12, 2013, 08:16:49 pm »
There's none that I know of. QT Creator is an IDE just like Codeblocks, visual studio, etc, therefore the same rules apply. Either download the precompiled binaries, or use cmake to compile the source. Then, all you have to do is find out how to link the libraries to QT.
« Last Edit: July 12, 2013, 09:23:19 pm by The Terminator »
Current Projects:
Technoport

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6287
  • Thor Developer
    • View Profile
    • Bromeon
Re: SFML 2.0 and QT 5 Integration
« Reply #2 on: July 12, 2013, 08:38:10 pm »
QT is an IDE just like Codeblocks, visual studio, etc, therefore the same rules apply.
Don't you mean Qt Creator?

Qt is a framework for GUI and various other stuff.
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development:

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11032
    • View Profile
    • development blog
    • Email
AW: Re: SFML 2.0 and QT 5 Integration
« Reply #3 on: July 12, 2013, 08:40:38 pm »
QT is an IDE just like Codeblocks, visual studio, etc, therefore the same rules apply.
You have mixed something right there. Qt (yes lower case t and it's pronounced "cute") is a collection of libraries, best known for its free and crossplatform GUI system.
What you had in mind is the Qt creator which is an IDE and comes with a visual UI designing tool. ;)

As for the OP, no there's no such guide and from what I've heard it's a bit more tricky than in the past... :-
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

The Terminator

  • Full Member
  • ***
  • Posts: 224
  • Windows and Mac C++ Developer
    • View Profile
Re: SFML 2.0 and QT 5 Integration
« Reply #4 on: July 12, 2013, 09:22:58 pm »
QT is an IDE just like Codeblocks, visual studio, etc, therefore the same rules apply.
Don't you mean Qt Creator?

Qt is a framework for GUI and various other stuff.

Yes, I meant that. Silly mistake by me, thanks for catching it.
Current Projects:
Technoport

cpolymeris

  • Jr. Member
  • **
  • Posts: 65
    • View Profile
    • Email
Re: SFML 2.0 and QT 5 Integration
« Reply #5 on: July 13, 2013, 01:11:20 am »
I tried it anyway but couldn't get it working.

If you were more specific maybe someone could help.

Francismoy

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: SFML 2.0 and QT 5 Integration
« Reply #6 on: October 24, 2013, 11:16:25 am »
Hi,

I've been playing around with this issue and I got to make the integration :). However, I did it only for Mac OS, but anyway I guess it could be of help even if you use Windows or Linux. I posted the details on my blog: http://becomingindiedev.blogspot.fr/2013/10/qt-5-and-sfml-20-integration.html

Hope it helps a little bit! And ask me if you have any questions.
FM