Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-38227

ICON qmake variable doesn't work on Windows

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Won't Do
    • P3: Somewhat important
    • Some future release
    • 5.2.1
    • Build tools: qmake
    • None
    • Qt 5.2.1
      Windows 7 / 32 bits

    Description

      I have the following project file

      # FormTest01.pro
      QT       += core gui
      
      greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
      
      TARGET = FormTest01
      TEMPLATE = app
      VERSION = 1.0.3
      ICON = FormTest.ico
      
      SOURCES += main.cpp\
              mainwindow.cpp
      
      HEADERS  += mainwindow.h
      
      FORMS    += mainwindow.ui
      

      The icon file should be added in the FormTest01_resource.rc generated file to display accordingly the application icon with the following line:

      IDI_ICON1 ICON DISCARDABLE "FormTest.ico"
      

      I know that I can use RC_FILE qmake variable but it would cancel the automatic FormTest01_resource.rc* generation that contains information about the version.

      It works if I add it manually between qmake and make.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Unassigned Unassigned
            martindelille Martin Delille
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes