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. no Qt platform plugin could be initialized.

no Qt platform plugin could be initialized.

Scheduled Pinned Locked Moved Solved Qt 6
5 Posts 3 Posters 1.7k 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.
  • W Offline
    W Offline
    Wunian
    wrote on 15 Feb 2024, 07:46 last edited by
    #1

    Hi,
    My environment is below,
    Win11 + Desktop Qt 6.5.0 MSVC2019 64bit.

    I created a very simple main-window, and built this program in my release-build folder.
    When starting my exe file in my release-build folder, it complians "This application failed to start because no Qt platform plugin could be initialized".
    May I know how I could solve this issue?
    Thanks.
    Have a nice day.

    J J 2 Replies Last reply 15 Feb 2024, 07:47
    0
    • W Wunian
      15 Feb 2024, 07:46

      Hi,
      My environment is below,
      Win11 + Desktop Qt 6.5.0 MSVC2019 64bit.

      I created a very simple main-window, and built this program in my release-build folder.
      When starting my exe file in my release-build folder, it complians "This application failed to start because no Qt platform plugin could be initialized".
      May I know how I could solve this issue?
      Thanks.
      Have a nice day.

      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 15 Feb 2024, 07:47 last edited by
      #2

      @Wunian If you want to start your application outside of QtCreator you need to deploy it.
      See https://doc.qt.io/qt-6/windows-deployment.html

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      W 1 Reply Last reply 16 Feb 2024, 02:51
      3
      • W Wunian
        15 Feb 2024, 07:46

        Hi,
        My environment is below,
        Win11 + Desktop Qt 6.5.0 MSVC2019 64bit.

        I created a very simple main-window, and built this program in my release-build folder.
        When starting my exe file in my release-build folder, it complians "This application failed to start because no Qt platform plugin could be initialized".
        May I know how I could solve this issue?
        Thanks.
        Have a nice day.

        J Offline
        J Offline
        JoeCFD
        wrote on 15 Feb 2024, 19:26 last edited by JoeCFD
        #3

        @Wunian or you set env QT_PLUGIN_PATH to Qt plugin path?
        https://doc.qt.io/qt-6/deployment-plugins.html

        W 1 Reply Last reply 16 Feb 2024, 02:53
        0
        • J jsulm
          15 Feb 2024, 07:47

          @Wunian If you want to start your application outside of QtCreator you need to deploy it.
          See https://doc.qt.io/qt-6/windows-deployment.html

          W Offline
          W Offline
          Wunian
          wrote on 16 Feb 2024, 02:51 last edited by
          #4

          @jsulm
          Thanks for your reply and help.
          It works now when I refer what you mentioned, and https://medium.com/theskyisblue/在-windows-中-deploy-qt-apps-cf4054a5ee58

          Have a nice day.

          1 Reply Last reply
          0
          • J JoeCFD
            15 Feb 2024, 19:26

            @Wunian or you set env QT_PLUGIN_PATH to Qt plugin path?
            https://doc.qt.io/qt-6/deployment-plugins.html

            W Offline
            W Offline
            Wunian
            wrote on 16 Feb 2024, 02:53 last edited by
            #5

            @JoeCFD
            Thanks for your reply and help.
            I did what you mentioned, but it was failed.

            Have a nice day.

            1 Reply Last reply
            0
            • W Wunian has marked this topic as solved on 16 Feb 2024, 02:54

            1/5

            15 Feb 2024, 07:46

            • Login

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