Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Adding Icons in UI
Forum Updated to NodeBB v4.3 + New Features

Adding Icons in UI

Scheduled Pinned Locked Moved Solved Qt Creator and other tools
6 Posts 4 Posters 415 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
    dencla
    wrote on 27 Jan 2025, 21:40 last edited by
    #1

    I am using open source QT Creator 4.8.x. built on 5.9 QT. I am trying to implement a standard icon using the UI designed with QT Creator. I can add the standard Icons using code to generate the Icon, but I can not find a way to do it from the UI editor for a QPushbutton. I find the icon property in the designer, but I do not know how to select a standard Icon. I see that I could browse to something, but it is empty. Am I missing a setting or something.

    R 1 Reply Last reply 27 Jan 2025, 21:55
    0
    • D dencla
      27 Jan 2025, 21:40

      I am using open source QT Creator 4.8.x. built on 5.9 QT. I am trying to implement a standard icon using the UI designed with QT Creator. I can add the standard Icons using code to generate the Icon, but I can not find a way to do it from the UI editor for a QPushbutton. I find the icon property in the designer, but I do not know how to select a standard Icon. I see that I could browse to something, but it is empty. Am I missing a setting or something.

      R Offline
      R Offline
      Ronel_qtmaster
      wrote on 27 Jan 2025, 21:55 last edited by Ronel_qtmaster
      #2

      @dencla You need to create and add a ressource file to your project. In the ressource file you can add all the icons. After that, they will be available in the designer as well. for more information , check this https://doc.qt.io/qt-5/resources.html

      D 1 Reply Last reply 15 Feb 2025, 16:29
      0
      • R Ronel_qtmaster
        27 Jan 2025, 21:55

        @dencla You need to create and add a ressource file to your project. In the ressource file you can add all the icons. After that, they will be available in the designer as well. for more information , check this https://doc.qt.io/qt-5/resources.html

        D Offline
        D Offline
        dencla
        wrote on 15 Feb 2025, 16:29 last edited by
        #3

        @Ronel_qtmaster Thanks I will check it out. Is there a tool to create custom Icons in QT Creator?

        J 1 Reply Last reply 15 Feb 2025, 17:51
        0
        • D dencla
          15 Feb 2025, 16:29

          @Ronel_qtmaster Thanks I will check it out. Is there a tool to create custom Icons in QT Creator?

          J Offline
          J Offline
          JonB
          wrote on 15 Feb 2025, 17:51 last edited by
          #4

          @dencla said in Adding Icons in UI:

          Is there a tool to create custom Icons in QT Creator?

          No.

          D 1 Reply Last reply 15 Feb 2025, 19:01
          0
          • J JonB
            15 Feb 2025, 17:51

            @dencla said in Adding Icons in UI:

            Is there a tool to create custom Icons in QT Creator?

            No.

            D Offline
            D Offline
            dencla
            wrote on 15 Feb 2025, 19:01 last edited by
            #5

            @JonB Ok Thanks, Do you know of any that work on linux?

            C 1 Reply Last reply 15 Feb 2025, 19:11
            0
            • D dencla
              15 Feb 2025, 19:01

              @JonB Ok Thanks, Do you know of any that work on linux?

              C Offline
              C Offline
              Christian Ehrlicher
              Lifetime Qt Champion
              wrote on 15 Feb 2025, 19:11 last edited by
              #6

              @dencla said in Adding Icons in UI:

              Do you know of any that work on linux?

              Any image editor I would guess...

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

              1 Reply Last reply
              0
              • D dencla has marked this topic as solved on 15 Feb 2025, 19:13

              • Login

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