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

Author Topic: QSfmlWidget  (Read 1727 times)

0 Members and 1 Guest are viewing this topic.

panithadrum

  • Sr. Member
  • ****
  • Posts: 304
    • View Profile
    • Skyrpex@Github
    • Email
QSfmlWidget
« on: September 25, 2010, 02:42:21 pm »
Hello. I am using the QSfmlWidget provided by Laurent, and I have the following problem:

I would like to be able to change the context settings while my widget is running, so when I do sf::RenderWindow::Create(winId()) the widget stops displaying new content, and the console shows the following:
Quote
Failed to set pixel format for device context -- cannot create OenGL context (by the way, there is a spelling error in that sentence :P)
Failed to activate the window's context (this is repeated every frame)


What should I do? Maybe some kind of close function? (I tried to call sf::RenderWindow::Close before,  but still getting this error).

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
QSfmlWidget
« Reply #1 on: October 03, 2010, 11:16:47 am »
Does it work if you keep the same context settings as before? Have you tried to copy and paste the creation code that is inside the QSFMLCanvas class?
Laurent Gomila - SFML developer