Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Change title of the top window in taskmanager
Forum Updated to NodeBB v4.3 + New Features

Change title of the top window in taskmanager

Scheduled Pinned Locked Moved Unsolved General and Desktop
8 Posts 4 Posters 1.2k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    raketmus
    wrote on 19 Jul 2021, 10:01 last edited by
    #1

    Hi, how can i change the window title and icon or entirely remove this window.
    This is the window i am talking about 3255515d-46b8-42d8-bdab-462803d81f66-image.png
    I only want the bottom one and don't understand why i can edit or delete the top one.

    J T 2 Replies Last reply 19 Jul 2021, 10:54
    0
    • R raketmus
      19 Jul 2021, 10:01

      Hi, how can i change the window title and icon or entirely remove this window.
      This is the window i am talking about 3255515d-46b8-42d8-bdab-462803d81f66-image.png
      I only want the bottom one and don't understand why i can edit or delete the top one.

      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 19 Jul 2021, 10:54 last edited by
      #2

      @raketmus https://doc.qt.io/qt-5/qapplication.html#windowIcon-prop
      https://doc.qt.io/qt-5/qwidget.html#windowTitle-prop
      https://doc.qt.io/qt-5/qwidget.html#windowIcon-prop

      "I only want the bottom one and don't understand why i can edit or delete the top one" - hard to say without more information. I guess this Nebula.exe starts the other process (the bottom one)?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      4
      • C Offline
        C Offline
        Chris Kawa
        Lifetime Qt Champion
        wrote on 19 Jul 2021, 11:02 last edited by
        #3

        Task manager does not show windows. It shows processes. This picture shows a process running a Nebula.exe program that started a child process. Task manager has a set of heuristics to show useful information to the user. It will try various things to get a meaningful name shown, for example checking if the process's main window (if it has one) has a title.

        It would be helpful if you described this setup in more detail i.e. what processes you start and how (do you use QProcess for example). Is Nebula.exe your app or is that some sort of host that runs your app as its child?

        From the looks of it Nebula.exe is a windowless app (so task manager falls back to showing the executable name) that starts a child process and that child process has a window titled LECtXKtVvoK9. If you don't give your window an icon explicitly (like in the links @jsulm provided) it will get one from the executable. If the executable doesn't have it task manager will show a default one (like in your picture). Here's info on how to set an icon for the executable: Setting the Application Icon.

        R 1 Reply Last reply 19 Jul 2021, 20:26
        5
        • R raketmus
          19 Jul 2021, 10:01

          Hi, how can i change the window title and icon or entirely remove this window.
          This is the window i am talking about 3255515d-46b8-42d8-bdab-462803d81f66-image.png
          I only want the bottom one and don't understand why i can edit or delete the top one.

          T Offline
          T Offline
          Thank You
          wrote on 19 Jul 2021, 14:22 last edited by
          #4

          @raketmus

          For Icons
          Insert this in main.pro
          app-logo.ico means directory of icon

          RC_ICONS = app-logo.ico
          

          For another one, @Chris-Kawa and @jsulm had described more and dropped link

          Let's make QT free or It will go forever

          TRUE AND FALSE <3

          1 Reply Last reply
          0
          • C Chris Kawa
            19 Jul 2021, 11:02

            Task manager does not show windows. It shows processes. This picture shows a process running a Nebula.exe program that started a child process. Task manager has a set of heuristics to show useful information to the user. It will try various things to get a meaningful name shown, for example checking if the process's main window (if it has one) has a title.

            It would be helpful if you described this setup in more detail i.e. what processes you start and how (do you use QProcess for example). Is Nebula.exe your app or is that some sort of host that runs your app as its child?

            From the looks of it Nebula.exe is a windowless app (so task manager falls back to showing the executable name) that starts a child process and that child process has a window titled LECtXKtVvoK9. If you don't give your window an icon explicitly (like in the links @jsulm provided) it will get one from the executable. If the executable doesn't have it task manager will show a default one (like in your picture). Here's info on how to set an icon for the executable: Setting the Application Icon.

            R Offline
            R Offline
            raketmus
            wrote on 19 Jul 2021, 20:26 last edited by
            #5

            @Chris-Kawa I am using QML with a GUIApplication, inside QML i am using a Window that is frameless. My whole app appears to be living inside the child window, i am not creating any other windows then my main window.

            It doesn't seem that frameless has a affect on the window setup and still creates a child window.

            Setting RC_ICONS those work though and sets the logo for both windows, now i would just like to be able to change Nebula.exe to my own text

            T 1 Reply Last reply 20 Jul 2021, 11:44
            0
            • R raketmus
              19 Jul 2021, 20:26

              @Chris-Kawa I am using QML with a GUIApplication, inside QML i am using a Window that is frameless. My whole app appears to be living inside the child window, i am not creating any other windows then my main window.

              It doesn't seem that frameless has a affect on the window setup and still creates a child window.

              Setting RC_ICONS those work though and sets the logo for both windows, now i would just like to be able to change Nebula.exe to my own text

              T Offline
              T Offline
              Thank You
              wrote on 20 Jul 2021, 11:44 last edited by
              #6

              @raketmus

              Setting RC_ICONS those work though and sets the logo for both windows, now i would just like to be able to change Nebula.exe to my own text

              So glad that I could Help you.

              For changing the name of application.

              You can simply change the application name in your folder
              LIKE
              92e6fe48-a76f-48d1-b489-3118e207b11a-image.png
              Just rename it. And same name will be displayed in task manager

              Let's make QT free or It will go forever

              TRUE AND FALSE <3

              R 1 Reply Last reply 20 Jul 2021, 12:56
              0
              • T Thank You
                20 Jul 2021, 11:44

                @raketmus

                Setting RC_ICONS those work though and sets the logo for both windows, now i would just like to be able to change Nebula.exe to my own text

                So glad that I could Help you.

                For changing the name of application.

                You can simply change the application name in your folder
                LIKE
                92e6fe48-a76f-48d1-b489-3118e207b11a-image.png
                Just rename it. And same name will be displayed in task manager

                R Offline
                R Offline
                raketmus
                wrote on 20 Jul 2021, 12:56 last edited by
                #7

                @Thank-You Is this possible at runtime?
                The solution works but is not runtime and cannot remove .exe from the name

                T 1 Reply Last reply 20 Jul 2021, 17:03
                0
                • R raketmus
                  20 Jul 2021, 12:56

                  @Thank-You Is this possible at runtime?
                  The solution works but is not runtime and cannot remove .exe from the name

                  T Offline
                  T Offline
                  Thank You
                  wrote on 20 Jul 2021, 17:03 last edited by
                  #8

                  @raketmus
                  I am sure executable name is same as project name at very first.

                  For runtime I guess
                  You can generate copy of that executable to another one and rename to it. When You close the application, Make something which will delete the older one and keep the new one.
                  Like uninstaller, It deletes everything and itself too. Here you don't delete everything but delete itself.
                  I only know this one. Maybe changing windows

                  Let's make QT free or It will go forever

                  TRUE AND FALSE <3

                  1 Reply Last reply
                  0

                  1/8

                  19 Jul 2021, 10:01

                  • Login

                  • Login or register to search.
                  1 out of 8
                  • First post
                    1/8
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • Users
                  • Groups
                  • Search
                  • Get Qt Extensions
                  • Unsolved