Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. General talk
  3. Qt 6
  4. "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" help me plz
Forum Updated to NodeBB v4.3 + New Features

"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" help me plz

Scheduled Pinned Locked Moved Solved Qt 6
4 Posts 2 Posters 3.0k Views
  • 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.
  • Teemo of LOLT Offline
    Teemo of LOLT Offline
    Teemo of LOL
    wrote on last edited by
    #1

    When debugging the program in VS, I encounter an error message: "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." The release version runs fine, but why does this error occur in the debug version? Could you please explain the reason and provide a solution? Thanks!

    thx

    Ronel_qtmasterR 1 Reply Last reply
    0
    • Teemo of LOLT Teemo of LOL

      When debugging the program in VS, I encounter an error message: "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." The release version runs fine, but why does this error occur in the debug version? Could you please explain the reason and provide a solution? Thanks!

      Ronel_qtmasterR Offline
      Ronel_qtmasterR Offline
      Ronel_qtmaster
      wrote on last edited by
      #2

      @Teemo-of-LOL maybe because you compiled for release?

      Teemo of LOLT 1 Reply Last reply
      0
      • Ronel_qtmasterR Ronel_qtmaster

        @Teemo-of-LOL maybe because you compiled for release?

        Teemo of LOLT Offline
        Teemo of LOLT Offline
        Teemo of LOL
        wrote on last edited by
        #3

        @Ronel_qtmaster
        "I'm sorry. I didn't understand. The release works fine with VS2022. However, when running in debug mode, the mentioned error occurs. Even after setting the environment variables as suggested online, it doesn't get fixed."

        thx

        Ronel_qtmasterR 1 Reply Last reply
        0
        • Teemo of LOLT Teemo of LOL

          @Ronel_qtmaster
          "I'm sorry. I didn't understand. The release works fine with VS2022. However, when running in debug mode, the mentioned error occurs. Even after setting the environment variables as suggested online, it doesn't get fixed."

          Ronel_qtmasterR Offline
          Ronel_qtmasterR Offline
          Ronel_qtmaster
          wrote on last edited by
          #4

          @Teemo-of-LOL maybe because you compiled qt for release version

          1 Reply Last reply
          0
          • Teemo of LOLT Teemo of LOL has marked this topic as solved on

          • Login

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