[Solved]Back icon button when disabled ?



  • I use :
    ToolIcon {
    id: btnBack;
    iconId: "toolbar-back";
    enabled: false;
    }
    to show disabled button, but it's not show back-disabled icon. How to find back-disabled icon ?
    Please help me. Thanks



  • Which version of Qt Components do you use?

    If you use those for MeeGo, search in SDK folder for "icon-m-toolbar-back". You will find a folder full with icons. There should be disabled version of toolbar-back icon.



  • In sdk i'm not found icon-m-toolbar-back :(.

    But i found the way to solve it:
    @
    ToolIcon {
    iconSource: enabled ? (theme.inverted ? "image://theme/icon-m-toolbar-back-white" : "image://theme/icon-m-toolbar-back-white")
    : (theme.inverted ? "image://theme/icon-m-toolbar-back-dimmed-white" : "image://theme/icon-m-toolbar-back-dimmed")
    }

    @

    [edit, please use @ code tags for your code, Eddy]


Log in to reply
 

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