Add user32.lib to the QtWidget project in QtCreator

I am a complete newbie to Qt. In the test case, I need to call the user32 function for some reason. My small application compiles but is not connected due to lack of user32.lib

Fixing this seemed straightforward, add the library as shown below. But I can not proceed to the next step, as shown in the screenshot. I tried almost every combination of library types / settings but the library path is always shown in red and I canโ€™t continue. I even copied lib at the root level of the drive to avoid spaces in the path. Any clues?

Notes:

  • This question ( Link to user32.lib in QTCreator ) is a follow-up situation after the library has been added this way. This does not duplicate.
  • Environment QtCreator 2.4.1 Win7
  • A workaround through LIBS += found below , but why does this permission allow me to continue?

Add library in QtCreator

+4
source share
1 answer

How to question How to add an external .a library to a Qt Creator project through a graphical interface? I found a working solution (added to the .pro file):

 win32 { LIBS += "P:\Microsoft SDKs\Windows\v7.1\Lib\User32.Lib" } 

However, I'm still wondering what am I doing wrong with the above dialog ?

Note : seems to be fixed, see mlvljr comment below

+4
source

All Articles