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

Author Topic: [Solved] Cant get SFML2 to work with Qt!  (Read 9619 times)

0 Members and 1 Guest are viewing this topic.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
[Solved] Cant get SFML2 to work with Qt!
« Reply #15 on: April 07, 2011, 03:05:00 pm »
Are you sure that your class has the Q_OBJECT macro?
Laurent Gomila - SFML developer

hayer

  • Jr. Member
  • **
  • Posts: 58
    • View Profile
[Solved] Cant get SFML2 to work with Qt!
« Reply #16 on: April 08, 2011, 12:05:13 am »
Solved;

Put the MyCanvas into a .cpp and .h file like any other class and add the Q_OBJECT.

If your using Qt Creator, Clean project, build -> works :D

dreamcycle

  • Newbie
  • *
  • Posts: 1
    • View Profile
Linking
« Reply #17 on: April 09, 2011, 04:20:07 pm »
How did you manage to link the libraries in QT?

Regards,
Ivelin Penchev