QtComponents with MeeGo Harmattan problem - InfoBanner
Hello,
I was trying to create an InfoBanner element as I have seen it in the reference:
[CODE]import QtQuick 1.1
import com.nokia.meego 1.0
PageStackWindow {
id: appWindow
initialPage: main
InfoBanner {
id: banner
text: ""
timerShowTime: 3000
}
MainPage{
// added a few properties and signals
id: main
to: "EN"
onSelect: langSelector.open()
onToChanged: {
banner.text = "Selected language is now "+to
banner.show()
}
}
ToolBarLayout {
id: commonTools
visible: true
Label {
verticalAlignment: Text.AlignVCenter
horizontalAlignment: Text.AlignHCenter
anchors.centerIn: parent
id: toolBarText
text: "Target: "+main.to
}
}
Menu {
id: langSelector
visualParent: pageStack
MenuLayout {
*menuitems*
}
}
}
[/CODE]
It works perfectly when I remove the InfoBanner element, but when it's in it says
[QUOTE]InfoBanner is not a type[/QUOTE]
when running, (to be honest, it's just a blank screen, but not running)
and
[QUOTE]unknown type[/QUOTE]
in the editor. The design view fails, but it has never worked for me with Components.
Do you know what could I do?
Thanks
Bálitn
Re: QtComponents with MeeGo Harmattan problem - InfoBanner
Hmmmm... where is this "reference"?
I did not find the InfoBanner in the Qt Components documentation at all.
It is available as an extra for Qt Components, though
[url]http://qt.gitorious.org/qt-components/qt-components/trees/master/src/meego/extras[/url]
[url]http://qt.gitorious.org/qt-components/qt-components/blobs/master/doc/src/meego/extras/qt-components-infobanner.qdoc[/url]
Read also the readme for those extras
[url]http://qt.gitorious.org/qt-components/qt-components/blobs/master/src/meego/extras/README[/url]
Hartti
Re: QtComponents with MeeGo Harmattan problem - InfoBanner
[QUOTE=hartti;853608]Hmmmm... where is this "reference"?
I did not find the InfoBanner in the Qt Components documentation at all.
It is available as an extra for Qt Components, though
[url]http://qt.gitorious.org/qt-components/qt-components/trees/master/src/meego/extras[/url]
[url]http://qt.gitorious.org/qt-components/qt-components/blobs/master/doc/src/meego/extras/qt-components-infobanner.qdoc[/url]
Read also the readme for those extras
[url]http://qt.gitorious.org/qt-components/qt-components/blobs/master/src/meego/extras/README[/url]
Hartti[/QUOTE]
The reference is on my N950, I found it in the SDK directory with the Linux, Windows and Mac wevinstallers. The referece was zipped, I extracted it. The element was not marked wirh deprecated label, I douvle checked it. Iwill see the references You linked, but I think it is something similar.
Re: QtComponents with MeeGo Harmattan problem - InfoBanner
I finally solved it! I forgot to inport the extras. *facepalm*