Results 1 to 2 of 2

Thread: Cound not find or load qt platform plugin windows... No working solution yet !

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #2
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,233
    Thanks
    303
    Thanked 864 Times in 851 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: Cound not find or load qt platform plugin windows... No working solution yet !

    Another thing that isn't very well documented in Qt5.

    There are two solutions:

    1. Create a file named "qt.conf". Put this in the same directory as your executable. Put this in it:

    Qt Code:
    1. [Paths]
    2. Plugins=<path to where you want to install shared plugins>/plugins
    To copy to clipboard, switch view to plain text mode 

    Then, create a directory called "plugins" in the shared plugins location, and a subdirectory "platforms" inside that. From your Qt distribution, find this same directory, and copy the file "qwindows.dll" from that directory into your own platforms directory.

    In this case, your installation looks like:

    Qt Code:
    1. /YourAppInstallFolder
    2. - YourApp.exe
    3. - any needed Qt DLLs
    4. - qt.conf
    5.  
    6. /YourSharedPluginsInstallFolder
    7. - /plugins
    8. - /platforms
    9. qwindows.dll
    To copy to clipboard, switch view to plain text mode 
    2. You can create the /plugins/platforms directory as a sub-directory of your application install directory, and put the dll there.

    In this case, your installation will look like this:

    Qt Code:
    1. /YourAppInstallFolder
    2. - YourApp.exe
    3. - any needed Qt DLLs
    4. - /plugins
    5. -/platforms
    6. - qwindows.dll
    To copy to clipboard, switch view to plain text mode 

    Hope this helps.

  2. The following user says thank you to d_stranz for this useful post:

    K4ELO (3rd November 2013)

Similar Threads

  1. Failed to load platform plugin "windows"
    By Eos Pengwern in forum Installation and Deployment
    Replies: 1
    Last Post: 19th September 2013, 16:57
  2. Replies: 1
    Last Post: 6th January 2013, 23:29
  3. installing QML canvas plugin in windows platform
    By Venu in forum Installation and Deployment
    Replies: 4
    Last Post: 20th February 2012, 14:46
  4. Ultimate solution for Qt cross-platform IPC
    By ManuMies in forum Qt Programming
    Replies: 4
    Last Post: 3rd February 2009, 11:54
  5. Replies: 4
    Last Post: 3rd April 2006, 08:22

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.