[Qt-interest] Comparing icons

Yuvaraj R yuvaraj at ongobiz.com
Thu Jul 9 13:51:40 CEST 2009


Hi all


How do we compare the two icons.

I have tried with

 QIcon icon = QIcon(ui->treeWidget->topLevelItem(0)->child(i)->icon(0));

QIcon icon1 = QIcon("/Icons/offline.png");

if(icon == icon1)

{

QMessageBox::information(0,"",QString("same"));

}



But it is giving errors..



Any suggestions ..





Advance thanks





Yuvaraj R
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090709/1cbd6476/attachment.html 


More information about the Qt-interest-old mailing list