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.
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) :setThemeName( "ubuntu- mobile" ); fromTheme( "camera- app");
{
QGuiApplication a(argc, argv);
QIcon:
QIcon i = QIcon::
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.