Comment 8 for bug 1271158

Revision history for this message
Albert Astals Cid (aacid) wrote :

I actually think it's a bug in Qt now, this small code

#include <QGuiApplication>
#include <QDebug>
#include <QIcon>

int main(int argc, char **argv)
{
    QGuiApplication a(argc, argv);
    QIcon::setThemeName("ubuntu-mobile");
    QIcon i = QIcon::fromTheme("camera-app");
    qDebug() << i.pixmap(QSize(144, 135));
    qDebug() << i.pixmap(QSize(108, 99));
    qDebug() << i.pixmap(QSize(144, 135));
}

is returning

QPixmap(QSize(144, 135) )
QPixmap(QSize(105, 99) )
QPixmap(QSize(105, 99) )

that doesn't make much sense to me.