This forum has been archived. All content is frozen. Please use KDE Discuss instead.

iconName: "blah-foo" icon doesn't show

Tags: None
(comma "," separated)
alsonick
Registered Member
Posts
12
Karma
0
hi. i referenced icons via 'iconName' property for eg Button, ToolButton in qml. When i run qml via 'qmlscene' tool my icons shown.

But i compile my app then call qml from c++ icons didn't shown. a test snippet:
Code: Select all
import QtQuick 2.4
import QtQuick.Controls 1.3

ApplicationWindow
{
    visible:true
    Button {
        width:100
        height:50
        iconName: "edit-find"
        onClicked:{}
    }
}
Code: Select all
#include <QGuiApplication>
#include <QQmlApplicationEngine>

int main( int argc, char ** argv )
{
    QGuiApplication app(argc,argv);
   
    QQmlApplicationEngine engine ("main.qml");
   
    return QGuiApplication::exec();
}


my theme is breeze. i do NOT set system settings as "Dont show icons on buttons"

any thought? thanks.

Last edited by alsonick on Sun May 31, 2015 2:34 pm, edited 2 times in total.
alsonick
Registered Member
Posts
12
Karma
0
well. Already filled; still is not fixed.

https://bugreports.qt.io/browse/QTBUG-37083


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Google [Bot], Sogou [Bot]