Comment 0 for bug 1158246

Revision history for this message
Zygmunt Krynicki (zyga) wrote : tutorial applications don't render the title bar 13.04 (raring)

I'm following:

http://developer.ubuntu.com/resources/app-developer-cookbook/mobile/currency-converter-phone-app/

Specifically:

0) I've installed the raring dependencies as listed on http://developer.ubuntu.com/get-started/gomobile/
1) I've created new "Qt Quick 2 UI" (the tutorial has another issue where it just refers to "Qt Quick UI" but there are two choices available.
2) I've pasted the snippet from the currency converter app:

import QtQuick 2.0
import Ubuntu.Components 0.1

MainView {
    objectName: "mainView"
    applicationName: "CurrencyConverter"
    id: root

    width: units.gu(60)
    height: units.gu(80)

    property real margins: units.gu(2)
    property real buttonWidth: units.gu(9)

    Label {
       id: title
       ItemStyle.class: "title"
       text: i18n.tr("Currency Converter")
       height: contentHeight + root.margins
       anchors {
           left: parent.left
           right: parent.right
           top: parent.top
       }
    }
}

3) I've started the application

What is wrong: the title bar is missing
What is expected same image as on the tutorial page