No, you cannot compare QIcon's this way. There is no overloaded '==' operator for this class. You can get QPixmap from QIcon using QIcon:ixmap() function. Then in turn you can obtain QImage object from QPixmap with QPixmap::toImage() call. And finally you can compare QImage objects with '==' operator.
Bookmarks