![mac toolbar icons not working mac toolbar icons not working](https://www.alphr.com/wp-content/uploads/2018/03/App.jpg)
That really strikes me, because while I could easily do something wrong in the code, the GUI should get it right. But when program is executed the icon is not shown. I dragged the Action into an empty default toolbar of the QApplication and it looked OK. Then I picked an icon and I could see it in the action. It didn't offer me any resource, so I clicked an icon in ithe dialog toolbar and in the filesystem tree I choosed the resource file I created before.
Mac toolbar icons not working code#
I then tried to use it in my code dynamically as follows:
![mac toolbar icons not working mac toolbar icons not working](https://beebom.com/wp-content/uploads/2017/07/How-to-Hide-Menu-Bar-Icons-on-Mac.jpg)
I tried number of ways to use the icons then, but two in general:
![mac toolbar icons not working mac toolbar icons not working](https://cdn.windowsreport.com/wp-content/uploads/2020/02/underscan.jpg)
Note: The forum engine brakes formatting of the tree, entries under Resources are children of the Resources directory When prompted for prefix, I choosed '/icons' and I named the file Icons. Main Toolbar's icon size is set to 24x24px. I've created a icons.qrc resource file in a subfolder Resouces of the test project and added number of icons (24x24px, PNG). I reviewed dozen of articles and number of posts and I still can't figure that out. I have no icons in QToolButton or QPushButton.