Qt application is requesting for admin privileges without any reason



  • Hi all,

    I've just started development of a Console application in Qt and, when I start it from within QtCreator it fails with the following message: "Failed to start program. Path or permissions wrong?".
    After I while, I discovered that if I "Run as administrator" QtCreator everything works.

    Why? My application simply processes a local XML file and prints its content on the screen. I don't need and I don't want it to request for admin privileges.

    The .pro file contains the following lines:

    QT += core xml network
    QT -= gui
    TEMPLATE = app

    And of course, SOURCES, LIBS and the rest.

    Thanks



  • Hi, if you start your Console application from a CMD window, does it still fail with the ".. permissions wrong" message?

    Note: to be able to start your Qt program from a CMD window, you probably need to first invoke qtenv2.bat (in the bin directory) so that the Qt DLLs can be found.



  • Yes!

    Windows asks me to allow the program to make changes to this computer via the canonical message box (background greyed and so on). Why? I don't have set any special in my application.



  • Hmmm, I see you include network, could it be you're opening a TCP port below 1024?


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.