-
Notifications
You must be signed in to change notification settings - Fork 76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Windows WSL2 WSLg not rendering inside window and release only build #682
Comments
Thanks for taking the time to report the issue. I would be interested if someone could point to where the debug vs release build is going wrong on Windows. As a lot of this is coming from Corrosion now. Is this the issue with the I don't think any of us have tried this on WSLg, not many of us have even tried it on Windows. From the Qt online installer you should be able to download any release you want via the "archive" checkbox on the right side then click "filter" (eg i can pick any version from 5.9 -> 6.6 beta). |
Wonder if we are hitting the difference between |
Thanks @ahayzen-kdab Maybe I have this wrong, I set
For debug build Added line 173
This produced the debug build with only the LINK warning.
|
I’m thinking the WSL2 WSLg issue is due to theme. Other Qt apps render fine. One assistant reports the theme is not set. |
I see how we are hitting and These are issues that @OlivierLDff was also trying to solve. I wonder if we can set the right things in the CMakeLists for now to make things happy. Eg do we set I also wonder if we can get away with one of them and if they work for both Debug and Release builds or whether there is more fine tuning to do there... |
Or maybe we just set in all our CMake files so it happens everywhere and easy for folks to see in the examples 🤷
|
Would be interesting if #683 makes things better or worse :-) |
This is the "best" way to handle it that will break less stuff that #683 |
#683 should solve the |
After ensuring that the folder that contains I can run (using msvc2019 + Qt online installer 5.15.2) CMake builds and targets from QtCreator and I can run So the remaining issue on this task is whether something specific to WSL2 / WSLg is broken, as you suggested maybe it is a theming problem ? Can you run without any custom themes and see if that helps ? |
FWIW I have managed to run the latest |
Seems that this issue is solved from the previous comment, please open a new issue if there are still problems. |
Windows 11 x64
Passing along feedback that like other people have reported release only builds are needed on the Windows 11 side. The default or debug does not complete and create an executable. The below worked for me. The cargo only build did not work either, could not find Qt stuff. Error was QtMissing ... See also #498 and #676
WSL2
WSLg
Ubuntu 22
The cmake build works and the cargo only. However, it does not render anything in the window, just a white canvas, no buttons, etc controls. The button is clickable and I see terminal output, "Hi from rust ...". Unfortunately the empty window has no workaround that I could find. I don't know if this is a Qt issue and WSLg.
Last issue Qt organization, if you download from them you are forced to use Qt6.5 and this project is not ready for that. This is unfortunate and not a good developer experience. Don't understand the poor support for prior releases. This is not anyone's here fault, just noting the latest may cause issues.
The text was updated successfully, but these errors were encountered: