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

Author Topic: Qt/QML inside SFML window (as game UI)  (Read 1043 times)

0 Members and 1 Guest are viewing this topic.

e1ee7

  • Newbie
  • *
  • Posts: 4
    • View Profile
Qt/QML inside SFML window (as game UI)
« 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.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: Qt/QML inside SFML window (as game UI)
« Reply #1 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.
Laurent Gomila - SFML developer

 

anything