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

Author Topic: QT widget  (Read 6847 times)

0 Members and 1 Guest are viewing this topic.

felipeota

  • Newbie
  • *
  • Posts: 2
    • View Profile
QT widget
« on: February 02, 2011, 09:45:51 pm »
I've tried the QT integration example from the wiki on Windows 7, Qt 4.7 and SFML 2 but it didn't work as expected. The screen flickered between the parent widget's background and the SFML graphics.
To fix it I added this to the QSFMLCanvas class:

Code: [Select]

QPaintEngine *paintEngine() const
{
  return 0;
}


I took the idea from an OGRE3D Qt widget.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
QT widget
« Reply #1 on: February 03, 2011, 07:37:24 am »
Which example from the wiki?? The QSFMLCanvas from the tutorials has this function and works fine.
http://www.sfml-dev.org/tutorials/1.6/graphics-qt.php
Laurent Gomila - SFML developer

felipeota

  • Newbie
  • *
  • Posts: 2
    • View Profile
QT widget
« Reply #2 on: February 04, 2011, 03:08:02 pm »
You are right. I've been looking at the 1.3 version wiki, it's the first result google shows when searching for "sfml qt". I didn't notice it was an old version even though there's a warning at the top of the page.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
QT widget
« Reply #3 on: February 04, 2011, 03:10:04 pm »
And that's not the wiki, that's the official tutorials of the website. There's a wiki as well, but it contains external contributions from SFML users.
Laurent Gomila - SFML developer