Important: Please read the Qt Code of Conduct -

Qt static dll x64 using QApplication issues

  • Hi,

    Since some days i want to build a qt static dll using MSVC x64 build statically, the compilation works the dll is around of 9mb but i have this message:

    It's strange, i never had this message with .exe builds (if i create and build an application she works fine).

    That happen only using QWidgets and QApplication in the dll, if i use some libraries like QString of whatever else it works.


  • Lifetime Qt Champion

    Hi and welcome to devnet,

    That's because QWidget and QApplication need the corresponding QPA plugin in order to work (i.e. the platform plugin). QString is part of QtCore which doesn't depend on the platform plugin.

    The static plugin part of the Plugin How To might be of interest.

    Hope it helps

  • Hi,

    Yes that helped me, thanks a lot.

Log in to reply