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. Changing the taskbar icon
Forum Updated to NodeBB v4.3 + New Features

Changing the taskbar icon

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 3 Posters 151 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.
  • T Offline
    T Offline
    TolleTafel
    wrote last edited by
    #1

    I want to change the default python icon in the Windows taskbar to a custom icon. I've seen multiple ways people did it in the past, but none seem to work on Windows 11 anymore

    Pl45m4P 1 Reply Last reply
    0
    • T TolleTafel

      I want to change the default python icon in the Windows taskbar to a custom icon. I've seen multiple ways people did it in the past, but none seem to work on Windows 11 anymore

      Pl45m4P Offline
      Pl45m4P Offline
      Pl45m4
      wrote last edited by
      #2

      @TolleTafel

      Why the default python icon?! If you are running a Python script, it shows the icon of your python interpreter executable, if I'm not mistaken.


      If debugging is the process of removing software bugs, then programming must be the process of putting them in.

      ~E. W. Dijkstra

      1 Reply Last reply
      0
      • T Offline
        T Offline
        TolleTafel
        wrote last edited by
        #3

        You're right it is the icon of my python interpreter. But I still want to change it through code

        JonBJ 1 Reply Last reply
        0
        • T TolleTafel

          You're right it is the icon of my python interpreter. But I still want to change it through code

          JonBJ Offline
          JonBJ Offline
          JonB
          wrote last edited by JonB
          #4

          @TolleTafel
          You need to set one or both of QApplication::setWindowIcon() and QWindow::setIcon(). See also https://doc.qt.io/qt-6/appicon.html.

          If by any chance you mean change the icon for every Python script, nothing to do with Qt or your applications, that would be by changing the icon for python.exe.

          1 Reply Last reply
          0

          • Login

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