Important: Please read the Qt Code of Conduct -

Qt 5 + SDL2 Renderer

  • Hello all. I am currently working on a 2D tile map editor and am interested in using Qt to provide GUI functionality and SDL2 to render graphics (SDL_Gpu also would do for me) within a widget/view port. I have looked around at previous related questions (all over the internet) and have not found a answer that works for me. How can I achieve embedding SDL2 and its renderer within a Qt widget? Also if it is possible to do so, should I create a separate thread for SDL2 Rendering and Qt GUI widgets? (Also I don't know if it makes much of a difference, but I am currently utilizing Qt within visual studio instead of QtCreator). Thank you.

Log in to reply