Change title of the top window in taskmanager
-
Hi, how can i change the window title and icon or entirely remove this window.
This is the window i am talking about
I only want the bottom one and don't understand why i can edit or delete the top one.@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)?
-
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.
-
Hi, how can i change the window title and icon or entirely remove this window.
This is the window i am talking about
I only want the bottom one and don't understand why i can edit or delete the top one. -
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.
@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
-
@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
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
Just rename it. And same name will be displayed in task manager -
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
Just rename it. And same name will be displayed in task manager@Thank-You Is this possible at runtime?
The solution works but is not runtime and cannot remove .exe from the name -
@Thank-You Is this possible at runtime?
The solution works but is not runtime and cannot remove .exe from the name@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