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

Author Topic: SFML and Qt  (Read 1809 times)

0 Members and 1 Guest are viewing this topic.

Tresky

  • Newbie
  • *
  • Posts: 44
    • View Profile
    • Email
SFML and Qt
« on: June 30, 2012, 10:18:19 pm »
Hey guys. I want to use SFML and Qt together but not in the way described in the tutorial. Is there possibly a way to have an SFML window first and put Qt widgets into it to create a GUI rather then he other way?

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10838
    • View Profile
    • development blog
    • Email
Re: SFML and Qt
« Reply #1 on: June 30, 2012, 11:20:36 pm »
I don't see why you would work the other way around, or what benefit you'd gain. Since I'm curious, can you explain why you want to do it that way?
Also this is more related to Qt than SFML. SFML does create the window and you can retrieve the window handel, so the questions is if you can use Qt on a window of which you only got the handle. So maybe you'd get a better answer in a Qt related forum.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Re: SFML and Qt
« Reply #2 on: July 01, 2012, 08:53:57 am »
No you can't.
Laurent Gomila - SFML developer

Tresky

  • Newbie
  • *
  • Posts: 44
    • View Profile
    • Email
Re: SFML and Qt
« Reply #3 on: July 01, 2012, 06:32:28 pm »
Thanks for the answer. :)

Celtic Minstrel

  • Jr. Member
  • **
  • Posts: 80
    • View Profile
Re: SFML and Qt
« Reply #4 on: July 01, 2012, 07:48:41 pm »
Even if you could make an SFML window and then add Qt widgets, I don't think it would be any different from making a Qt window with Qt widgets and then using SFML to draw in it.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Re: SFML and Qt
« Reply #5 on: July 01, 2012, 07:59:26 pm »
Quote
Even if you could make an SFML window and then add Qt widgets, I don't think it would be any different from making a Qt window with Qt widgets and then using SFML to draw in it.
He wants to draw Qt widgets on top of its SFML drawing. This is what's impossible ;)
Laurent Gomila - SFML developer