I tried simply
but nothing appear in the tab of the QToolBox.Qt Code:
To copy to clipboard, switch view to plain text mode
I have correctly update the resource file and save the image in images folder
Something missing?
I tried simply
but nothing appear in the tab of the QToolBox.Qt Code:
To copy to clipboard, switch view to plain text mode
I have correctly update the resource file and save the image in images folder
Something missing?
Your code is fine, means it will set the icon for sure. But the problem is its not finding the image file. There is some problem with your resource. You can prove it by giving absolute path of the image in QIcon for try only.
The file is there, and the same syntax I used also for other icons.
I discovered that if I add the item with
all works.Qt Code:
toolBox->addItem(widhte,icon,text);To copy to clipboard, switch view to plain text mode
![]()
Bookmarks