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. Force no icon change

Force no icon change

Scheduled Pinned Locked Moved General and Desktop
4 Posts 2 Posters 1.1k Views 1 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.
  • t4ggnoT Offline
    t4ggnoT Offline
    t4ggno
    wrote on last edited by
    #1

    Hello,

    i want that my programm dont change the icon. I want the same icon that the other application bevore used. is there a option or trigger i have to set? Or some workaround?

    Environment is Windows 8 and Qt Version 5.2.1

    Thanks and greetz
    t4ggno

    1 Reply Last reply
    0
    • Chris KawaC Offline
      Chris KawaC Offline
      Chris Kawa
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi, welcome to devnet.

      Which icon are you talking about? The executable file icon, taskbar shortcut icon, app window icon? What do you mean by "the same icon that the other application before used"? What is the other application and how do you determine when it was running?

      "Here":http://qt-project.org/doc/qt-5/appicon.html is a general description of how to set an icon for the application executable.

      1 Reply Last reply
      0
      • t4ggnoT Offline
        t4ggnoT Offline
        t4ggno
        wrote on last edited by
        #3

        I mean the Mouse Icon :) I forgot to say that.

        The Mouse Icon changes when i move from a other Application (in my case it is a game) to my Application. When i go back to the game i have the same icon from my application, but not the mouse-icon from the game. Thats annyoing. So i want to disable the mouse-icon change from my application and will use the same mouse icon from the game.

        1 Reply Last reply
        0
        • Chris KawaC Offline
          Chris KawaC Offline
          Chris Kawa
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Oh, you mean the cursor :) It's not a "mouse icon" because not everyone that has a cursor has a mouse (think touch, trackballs, tablets etc.).

          You can set a cursor on a specific widget. You can set it on a specific control or globally. You don't have to set it back manually. Just set it on the widget you want and Qt will put it back when the cursor leaves the widget. See "here":http://qt-project.org/doc/qt-5/qwidget.html#cursor-prop for the details.

          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