Hi
How do i pass a QIcon to a function in other class, so that it uses the icon, lets say, in a QPushButton.
I trie something like this:
Is this the way or just a wrong approach?
Thanks
Printable View
Hi
How do i pass a QIcon to a function in other class, so that it uses the icon, lets say, in a QPushButton.
I trie something like this:
Is this the way or just a wrong approach?
Thanks
Looks good. Ideally use the same argument signature as QAbstractButton::setIcon, i.e.
But your version works as well.
Cheers,
_