Toolbar buttons are not visible in simulator

  • I'm creating a new Qt Quick application. Added two more toolbar buttons to the default toolbar, in addition to the back button. To my surprise, those buttons are not displayed in simulator at all.

    The buttons:

    @ ToolBar {
    id: toolBar
    anchors.bottom: window.bottom
    tools: ToolBarLayout {
    id: toolBarLayout
    ToolButton {
    flat: true
    iconSource: "toolbar-back"
    onClicked: pageStack.depth <= 1 ? Qt.quit() : pageStack.pop()

            ToolButton {
                id: settingsButton
                x: 289
                y: 0
                anchors.right: parent.right
                anchors.rightMargin: 0
                iconSource: "toolbar-settings"
                flat: true
            ToolButton {
                id: infoButton
                x: 151
                y: 0
                width: 58
                height: 60
                iconSource: "bitmaps/info_button_toolbar.png"
                anchors.horizontalCenter: parent.horizontalCenter
                flat: true

    Those buttons are nicely visible in designer + on Nokia N8 hardware. Why simulator won't display them?

    Project is rebuilt few times + restarted Qt Creator to no result.

  • Do you bitmaps in DEPLOYMENTFOLDERS in .pro?
    If you are using shadow build, that needs to be setup, or you need to manually copy the bitmap dir to build directory.

    When running in simulator it will try to look in the executable directory (application dir) subdir
    "bitmaps" for the png.

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.