Skip to content

Commit dcb8e88

Browse files
authored
Removed conflicting Qt5 environment variable on Windows (cyberbotics#6258)
* Removed conflicting QT5 environment variable on Windows * Update changelog-r2023.md
1 parent 9a7e809 commit dcb8e88

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

docs/reference/changelog-r2023.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ Released on June 27th, 2023.
4141
- Deprecated the C and MATLAB API functions `wb_supervisor_node_enable/disable_contact_point_tracking` in favor of `wb_supervisor_node_enable/disable_contact_points_tracking` to be more consistent with other APIs ([#5633](https://github.com/cyberbotics/webots/pull/5633)).
4242
- Remove SUMO dependency from Webots package ([#6245](https://github.com/cyberbotics/webots/pull/6245)).
4343
- Bug Fixes
44+
- Windows: fixed conflict with Qt5 installation by removing the `QT_QPA_PLATFORM_PLUGIN_PATH` environment variable from the Webots launcher ([#6258](https://github.com/cyberbotics/webots/pull/6258)).
4445
- Fixed random crashes while creating [Skin](skin.md) and [Mesh](mesh.md) nodes ([#6218](https://github.com/cyberbotics/webots/pull/6218)).
4546
- Windows: fixed compilation of controller programs located in paths with non-ASCII characters ([#6235](https://github.com/cyberbotics/webots/pull/6235)).
4647
- Fixed the size of the Kondo [KHR-3HV](https://webots.cloud/run?url={{ url.github_tree }}/projects/robots/kondo/khr-3hv/protos/Khr3hv.proto) robot which was twice too large ([#6228](https://github.com/cyberbotics/webots/pull/6228)).

src/webots/launcher/launcher.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,9 @@ int main(int argc, char *argv[]) {
9797
if (!SetEnvironmentVariableW(L"QT_ENABLE_HIGHDPI_SCALING", L"1"))
9898
fail("SetEnvironmentVariableW", "QT_ENABLE_HIGHDPI_SCALING=1");
9999

100+
// if set, we need to remove this environment variable set by Qt5 which conflicts with Qt6
101+
SetEnvironmentVariableW(L"QT_QPA_PLATFORM_PLUGIN_PATH", NULL);
102+
100103
// start the webots-bin.exe process, wait for completion and return exit code
101104
STARTUPINFOW info = {sizeof(info)};
102105
PROCESS_INFORMATION process_info;

0 commit comments

Comments
 (0)