Quantcast
Channel: Qt DevNet forums: Qt Quick 1283365070**
Viewing all articles
Browse latest Browse all 4972

How can I set iconSize in ToolButton?

$
0
0
Hi, all! I would create a ToolButtons with icons like that ToolBar{       anchors.fill: parent        RowLayout{                 id: toolbarRow                 anchors.fill: parent                  spacing: 1*pixelDensity                       ToolButton{                               id:openFile                               width: parent.height                                iconSource: "qrc:/images/zoom.png"                        }        } } I would like use my application both for desktop and mobile. It will be great to set toolbuttons icons as parent. But it appears in original size. How can I change icon size using QML?

Viewing all articles
Browse latest Browse all 4972

Trending Articles