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 551 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 5 Mar 2021, 06:00 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
    • C Offline
      C Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on 5 Mar 2021, 06:02 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 5 Mar 2021, 06:08
      0
      • C Christian Ehrlicher
        5 Mar 2021, 06:02

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

        5 svg files.

        controller.png

        ??

        D Offline
        D Offline
        deleted286
        wrote on 5 Mar 2021, 06:08 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
        • C Offline
          C Offline
          Christian Ehrlicher
          Lifetime Qt Champion
          wrote on 5 Mar 2021, 06:13 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

          J 1 Reply Last reply 5 Mar 2021, 09:35
          2
          • C Christian Ehrlicher
            5 Mar 2021, 06:13

            @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...)

            J Offline
            J Offline
            JonB
            wrote on 5 Mar 2021, 09:35 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

            2/5

            5 Mar 2021, 06:02

            • Login

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