aguleo
29th January 2014, 15:46
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:
void Form::setMyIcon(QIcon x)
{
ui->pushButton->setIcon(x);
}
Is this the way or just a wrong approach?
Thanks
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:
void Form::setMyIcon(QIcon x)
{
ui->pushButton->setIcon(x);
}
Is this the way or just a wrong approach?
Thanks