×
Siemens Industry Online Support
Siemens AG
Entry type: FAQ Entry ID: 109779505, Entry date: 04/28/2020
(0)
Rate

Error message: Qt platform plugin could not be initialized

  • Entry
  • Associated product(s)
Solution when "run_hmi.exe" does not start due to incorrectly set variable.

After starting CMVM (Create MyVirtual Machine), the HMI status switches to red and the following error message appears: "This Application failed to start beacuse no Qt platform plugin could be initialized. Reinstalling the application may fix this problem. Available platform plugins are: direct2d, minimal, offscreen, windows.


Fig. 1: Error Message

The error occurs because the QTDIR variable is set to an incompatible value. Therefore, "run_hmi.exe" cannot start correctly (the platform plug-in-Dll for Windows cannot be loaded).

In the properties of the "run_hmi.exe" you can control the variable QTDIR:

Fig. 2: Properties of "run_hmi.exe"

Remedy
The QTDIR variable is not necessary for the expiration of a standard Qt application.
Therefore, to fix the error, delete the QTDIR variable from the global Windows variables in the run_hmi.exe:

Fig. 3: Global variables
Security information
In order to protect technical infrastructures, systems, machines and networks against cyber threats, it is necessary to implement – and continuously maintain – a holistic, state-of-the-art IT security concept. Siemens’ products and solutions constitute one element of such a concept. For more information about cyber security, please visit
https://www.siemens.com/cybersecurity#Ouraspiration.
Rate entry
no rating
Requests and feedback
What do you want to do?
Note: The feedback always relates to the current entry / product. Your message will be forwarded to our technical editors working in the Online Support. In a few days, you will receive a response if your feedback requires one. If we have no further questions, you will not hear from us.