Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Qt Creator suddenly unable to run application due to "Could not find the Qt platform plugin"
Forum Updated to NodeBB v4.3 + New Features

Qt Creator suddenly unable to run application due to "Could not find the Qt platform plugin"

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 2 Posters 1.0k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • W Offline
    W Offline
    wdm3
    wrote on 14 Jul 2023, 22:19 last edited by
    #1

    I am on Windows 10 64-bit. I installed Qt 5.15.2 and Qt Creator 10.0.2 via the online installer. I was able to open a project in Qt Creator and successfully build and run it. However suddenly the application no longer successfully launches from Qt Creator. I get this error message upon launch:

    This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
    

    The above error also appears when I try running the .exe directly from Windows Explorer.

    And this appears in application output of Qt Creator:

    14:54:53: Starting C:\git\build-QVproject-Desktop_Qt_5_15_2_MSVC2015_64bit-Release\bin\QuickViewer.exe...
    5
    qt.qpa.plugin: Could not find the Qt platform plugin "windows" in ""
    This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
    
    14:54:58: C:\git\build-QVproject-Desktop_Qt_5_15_2_MSVC2015_64bit-Release\bin\QuickViewer.exe crashed.
    

    I am not sure why this error suddenly started happening. I uninstalled and reinstalled Qt and Qt Creator and the issue is still occurring. Any ideas why this could be happening?

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 15 Jul 2023, 19:03 last edited by
      #2

      Hi and welcome to devnet,

      Did you run windeployqt before trying to start it outside Qt Creator ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1
      • W Offline
        W Offline
        wdm3
        wrote on 16 Jul 2023, 04:36 last edited by
        #3

        Thanks, that resolved the issue. After running windeployqt, the exe now launches successfully from both Qt Creator and Windows Explorer.

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 16 Jul 2023, 18:32 last edited by
          #4

          You shouldn't need to do that when starting from Qt Creator after a clean build.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          1

          1/4

          14 Jul 2023, 22:19

          • Login

          • Login or register to search.
          1 out of 4
          • First post
            1/4
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved