Search code examples
qtqt-creatorteamspeak

How to set QT_QPA_PLATFORM_PLUGIN_PATH properly (concept)?


I have Qt Creator and Qt 5.5 installed.

QT_QPA_PLATFORM_PLUGIN_PATH = C:\Qt\5.5\msvc2013\plugins

If I disable the environment var, I do get an error when I launch an application from QtC. So the variable seems to be required.

My problem is:

  1. When I run other Qt based applications (i.e. Teamspeak or such), those fail, I always have to disable (delete) QT_QPA_PLATFORM_PLUGIN_PATH first
  2. When I use KITS in QtC and switch between Qt versions (i.e. 5.4, 5.6) the variable is not in sync with this very version

How is this supposed to work?


Solution

  • The best solution I have found so far is to set it on the QtC Project page for that specific build

    Project Page