Xincheng Yu
Xincheng Yu
### sdl source code ```c #include "widget_sdl.h" #include const int FPSCOUNTTIMEMS = 60000; const int FPSCOUNTTIME = 60; #define SDL_USEREVENT_RENDER_IMAGE 0x1001 #define SDL_USEREVENT_IMAGE_SIZE_CHANGE 0x1002 #ifdef _WIN32 #ifndef bzero #define bzero(m,n)...
### QT widget create sdl player source code ```c temp_player = std::make_unique(this); if (temp_player) { sdl_player = std::make_unique(); sdl_player->SetWnd(temp_player->Wnd()); sdl_player->Play(); qDebug()
### QT widget free sdl player source code: ```c if (sdl_player) { sdl_player->Stop(); sdl_player.reset(); qDebug()
When I create and release, The window handle of Windows Task Manager is constantly rising, and my platform is Win10, QT is 5.12.5, regardless of whether the external QT window...
> Are you calling SDL_PollEvent() to drain the SDL event queue? Now I am only using an external QT window to create an SDL window, without involving rendering, and without...
> If you create an SDL window, you should process SDL events on the thread that created the window. Try that and see if that fixes the issue? I tried...