SFML community forums

Help => General => Topic started by: e1ee7 on January 14, 2020, 06:13:07 pm

Title: Qt/QML inside SFML window (as game UI)
Post by: e1ee7 on January 14, 2020, 06:13:07 pm
Hi,

I know there's a lot of questions regarding Qt integration, but I can't find anything similar to mine. So. Please, help me to understand if I can use Qt/QML in a way to draw controls inside the rendering window? Basically, is it possible to use Qt/QML as game UI library?

I know I could create a Qt widget which will represent an SFML rendering window, but could other Qt controls be embedded there?

Thanks in advance.
Title: Re: Qt/QML inside SFML window (as game UI)
Post by: Laurent on January 15, 2020, 08:16:39 am
I don't think you can do this.

One solution would be to render either SFML or Qt to an off-screen texture and then draw it to the other using a fullscreen sprite/image.