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 set Qt widget icon next to text
Forum Updated to NodeBB v4.3 + New Features

How to set Qt widget icon next to text

Scheduled Pinned Locked Moved Solved General and Desktop
4 Posts 3 Posters 745 Views 2 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.
  • E Offline
    E Offline
    erytcg
    wrote on last edited by
    #1

    Hello I set icon on tab or other widgets(buttons etc.) when I run program I don't see icons :(
    0_1512165192642_c4fda86a-18e1-4aa1-bb0e-c258d6d10eaf-obraz.png
    I have resuroce file with icon files.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Please show the code you are using to set the icon.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • E Offline
        E Offline
        erytcg
        wrote on last edited by
        #3

        I only set in properties I thought that it is sufficient

        1 Reply Last reply
        0
        • mrjjM Offline
          mrjjM Offline
          mrjj
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Hi
          if using resource file and you select it via the dialog / property in Designer then
          something must be up with the qres file.
          You are selecting it from : ?
          alt text

          Try to delete the build folder and run qmake and rebuild all.

          1 Reply Last reply
          2

          • Login

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