Hi, I have managed to successfully integrate QT with SFML using the various tutorials out there.
Unfortunately resizing doesn't work as expected. It only does once the mouse button is released. Let me be clear, in a pure SFML window (no QT), I don't have this issue. Neither do I have it in Windows. This only fails in OSX
The behaviour is when decreasing the QT window size, SFML will shrink its window by too much, leaving surrounding black spaces. When increasing it will over compensate, and stretch the SFML inner window too much.
Again, the window resizes correctly when the mouse button is released.
Some possible reasons/ factors that might play into this:
- I don't call pollEvent() at all, due to this not working on SFML prior to 2.6.0
- I have a high DPI resolution display. I know SFML doesn't support this, so as a workaround, I multiply the size in set size by devicePixelRatio provided by QT (2), on my windows device this is 1
- I call set size on every resize event, this is necessary since SFML isnt seeing the resize event and for the DPI issues mentioned above
Any insight on workarounds would be infinitely appreciated, thanks