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

Adding Icons in UI

Scheduled Pinned Locked Moved Solved Qt Creator and other tools
6 Posts 4 Posters 372 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 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.

    Ronel_qtmasterR 1 Reply Last reply
    0
    • D dencla

      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.

      Ronel_qtmasterR Offline
      Ronel_qtmasterR Offline
      Ronel_qtmaster
      wrote on 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
      0
      • Ronel_qtmasterR Ronel_qtmaster

        @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 last edited by
        #3

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

        JonBJ 1 Reply Last reply
        0
        • D dencla

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

          JonBJ Offline
          JonBJ Offline
          JonB
          wrote on 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
          0
          • JonBJ JonB

            @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 last edited by
            #5

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

            Christian EhrlicherC 1 Reply Last reply
            0
            • D dencla

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

              Christian EhrlicherC Online
              Christian EhrlicherC Online
              Christian Ehrlicher
              Lifetime Qt Champion
              wrote on 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

              • Login

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