Qt Creator builds application with "UAC Icon" by default



  • Hi,
    I just finished my first application, and have only one problem to be solved.
    The exe file must be run with Administrators priviliges. When I click it to open in Explorer windows, system shows warning that it can make changes on my PC, ....
    I did not use any manifest files :( The sample Qt application work without this problem.
    I use MinGW compiler.
    The project files looks like following.

    @# Add more folders to ship with the application, here
    folder_01.source = qml/FirmwareUpdater
    folder_01.target = qml
    DEPLOYMENTFOLDERS = folder_01

    Additional import path used to resolve QML modules in Creator's code model

    QML_IMPORT_PATH =
    QMAKE_CXXFLAGS += -std=gnu++11

    QT =
    QT += serialport
    QT += qml quick

    If your application uses the Qt Mobility libraries, uncomment the following

    lines and add the respective components to the MOBILITY variable.

    CONFIG += mobility

    MOBILITY +=

    The .cpp file which was generated for your project. Feel free to hack it.

    SOURCES += main.cpp
    firmwareupdaterinterface.cpp

    Installation path

    target.path =

    Please do not modify the following two lines. Required for deployment.

    include(qtquick2applicationviewer/qtquick2applicationviewer.pri)
    qtcAddDeployment()

    OTHER_FILES +=
    qml/FirmwareUpdater/MainView.qml
    qml/FirmwareUpdater/SelField.qml

    HEADERS +=
    firmwareupdaterinterface.h

    INCLUDEPATH +=

    RESOURCES +=
    FirmwareUpdater.qrc
    @

    Thank you in advance.
    Krzysiek



  • Hi,
    Problem solved.
    This is because windows marking everything with update in name as required Admin priviliges. The program name is FirmwareUpdater.exe ...
    Renaming solved the problem :)


Log in to reply
 

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