SFML community forums

Help => General => Topic started by: Tresky on June 30, 2012, 10:18:19 pm

Title: SFML and Qt
Post by: Tresky 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?
Title: Re: SFML and Qt
Post by: eXpl0it3r 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.
Title: Re: SFML and Qt
Post by: Laurent on July 01, 2012, 08:53:57 am
No you can't.
Title: Re: SFML and Qt
Post by: Tresky on July 01, 2012, 06:32:28 pm
Thanks for the answer. :)
Title: Re: SFML and Qt
Post by: Celtic Minstrel 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.
Title: Re: SFML and Qt
Post by: Laurent 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 ;)