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

Application Name Appended to Every Dialog




      It appears there is no way to simply toggle setWindowFilePath to show the full file path in a platform consistent way and passing the full absolute file path doesn't seem to do it either. This should be the case considering Qt Creator itself was modified to support such a feature:

      Second, I believe there is a regression with setWindowFilePath because there is no way to get a main window title such as "filename - appname" without using setApplicationDisplayName. This is undesirable because setApplicationDisplayName is not always necessary when the appname does not differ from the display name, and second it appends it to every dialog title. This is also interesting consider Qt Creator itself does not exhibit this behavior on Windows. For example, Qt Creator has an application title "filename - Qt Creator" but its preferences dialog says just "Preferences" and NOT "Preferences - Qt Creator". No application I have seen before on Windows would do this appending of the app name to every dialog title.

      Other users have also discussed this it seems and found no resolution other than to completely reimplement the window title logic themselves. This is honestly ridiculous for such a simple feature.

      It seems that the application title feature in general has become poorly busted. There are several ways this could be fixed, such as not having the window title override the automatic Qt window title but amend it instead. It would also be fixed by simply having the option to have Qt set just the main window title to "filename - appname" without having to use setApplicationDisplayName.

      Update: This does in fact appear to be a bug as I reviewed the Qt SDI example, I noticed that the "filename - appname" format is shown in the Qt documentation, but this is NOT what I actually see running it on Windows 10.


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



            qt.team.quick.subscriptions Qt Quick and Widgets Team
            RobertBColton Robert B. Colton
            1 Vote for this issue
            4 Start watching this issue



                Gerrit Reviews

                There are no open Gerrit changes