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. How to change main window icon?
Forum Updated to NodeBB v4.3 + New Features

How to change main window icon?

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 3 Posters 593 Views
  • 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.
  • D Offline
    D Offline
    deleted286
    wrote on last edited by
    #1

    I have other files in my project, and there was a folder which name is icons. Icons have 5 svg files.
    How can i declare them as a main window icon?

    setWindowIcon(":/icons/controller.png");
    

    ıt doesnt work

    1 Reply Last reply
    0
    • Christian EhrlicherC Offline
      Christian EhrlicherC Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @suslucoder said in How to change main window icon?:

      5 svg files.

      controller.png

      ??

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      D 1 Reply Last reply
      0
      • Christian EhrlicherC Christian Ehrlicher

        @suslucoder said in How to change main window icon?:

        5 svg files.

        controller.png

        ??

        D Offline
        D Offline
        deleted286
        wrote on last edited by
        #3

        @Christian-Ehrlicher the one that i want to use, its name is controller. But there were other svg's as well

        1 Reply Last reply
        0
        • Christian EhrlicherC Offline
          Christian EhrlicherC Offline
          Christian Ehrlicher
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @suslucoder said in How to change main window icon?:

          But there were other svg's as well

          Can you please read before you write something??

          You write about svgs but using a png... I'm out (once again. where's the downvote buttuon when you need it...)

          Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
          Visit the Qt Academy at https://academy.qt.io/catalog

          JonBJ 1 Reply Last reply
          2
          • Christian EhrlicherC Christian Ehrlicher

            @suslucoder said in How to change main window icon?:

            But there were other svg's as well

            Can you please read before you write something??

            You write about svgs but using a png... I'm out (once again. where's the downvote buttuon when you need it...)

            JonBJ Online
            JonBJ Online
            JonB
            wrote on last edited by
            #5

            @Christian-Ehrlicher said in How to change main window icon?:

            where's the downvote buttuon when you need it

            Sadly, gone.... Politically correct ;-)

            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