Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

An always-revealed toolbar would be more suitable for a pointer-driven interface. How, using the Ubuntu SDK, can I set the toolbar to be (and remain) revealed?

share|improve this question
up vote 2 down vote accepted

I think there is a bug in the Ubuntu UI toolkit discussing whether this should be implemented by default. However, it currently must be done manually.

This is what I use:

onActiveChanged: tools.opened = showToolbar

tools: ToolbarItems {
    locked: showToolbar
    opened: showToolbar

Unfortunately, there is a bug in the SDK that causes a 2gu margin above the toolbar. I fix that by adding this to my MainView:

states: [
    State {
        when: showToolbar

        PropertyChanges {
            target: taskViewPage.parent
            anchors.bottomMargin: -root.toolbar.triggerSize
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.