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

QMake generates incomplete resource file (RC)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Not Evaluated Not Evaluated
    • None
    • 4.7.1
    • Build tools: qmake
    • None
    • Microsoft Windows Professional 7 (64bit), Visual Studio Express C++ 2008, Qt 4.7.1 (32bit)

      Windows Region and Language settings:
      Location: Lithuania;
      Language for non-Unicode programs: English (United States)

      As I know starting from Windows Vista, VERSIONINFO resource is treated a bit different than in Windows XP. It seems that now it requires some additional information about multi-languages and translations.

      See this post:
      http://social.msdn.microsoft.com/Forums/en-US/Vsexpressvc/thread/d7d572e7-e827-493b-a6ff-a640bd2e5d6f

      This additional info must be added to the resource file for proper information presentation (tested on my machine and my regional configuration):

      BLOCK "VarFileInfo"
      BEGIN
      VALUE "Translation", 0x0409, 1252
      END

      1. Because by default QMake generates resource files without this additional information, text of some fields in file details dialog is not visible under Windows Vista or Windows 7 (see image Screenshots.png)

      2. File Version and Product Version fields are filled with values taken from different places. File Version is taken form definition "FILEVERSION" and Product Version is taken from BLOCK "StringFileInfo", VALUE "ProductVersion". So these versions can differ if user wants this. Besides Product Version field is allowed to have free text, so version can have not only numbers but also some text that is very useful! To reflect this, it would be nice in QMake project files additionally to variable "VERSION" have separate variable "PRODUCT_VERSION" that could have free text form.

        1. Screenshots.png
          Screenshots.png
          93 kB
        2. MibBrowser_resource.rc
          0.7 kB
        3. Custom_resource.rc
          0.8 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            jbornema Joerg Bornemann
            algirdasss Algirdas
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes