blackberry-cascades

blackberry cascades mapview

有些话、适合烂在心里 提交于 2019-12-12 03:54:20
问题 Hi I am trying to implement a mapview using blackberry cascades based on this link but whenever I import maps import bb.cascades.maps 1.0 , the QNX IDE throws out an error saying bb.cascades.maps is not installed . I have set up the environment exactly as described in the developer site and dont seem to understand how do i install this module. 回答1: They seem to have left out some steps. Not all cascades objects are loaded by default into the development system, but they can be added at

How to call c++ function from qml and change the lable text

核能气质少年 提交于 2019-12-12 01:51:00
问题 I'm new to Blackberry 10 development. I've created simple BB 10 cascades project. I want to change the text of a label through c++ function. main.qml import bb.cascades 1.0 Page { content: Container { id: containerID Button { id: button1 objectName: "button" text: "text" onClicked: { btnClicked("New Label Text"); } } Label { id: label1 objectName: "label1" text: "Old Label Text" } } } Now in which file i've to declare and in which file i've to define the function btnClicked(QString) function.

How to implement the Button click event on listview in blackberry 10 cascades qml?

可紊 提交于 2019-12-11 02:13:30
问题 I have a list view with buttons but am not able to triggered the click event for buttons in qml blackberry 10 ? Can anyone help me about this regards, ListView { verticalAlignment: VerticalAlignment.Center horizontalAlignment: HorizontalAlignment.Center layout: FlowListLayout { } dataModel: mydatamodel listItemComponents: [ ListItemComponent { type: "item" Container { layout: DockLayout { } Button { id: samplebutton text: "Button" horizontalAlignment: HorizontalAlignment.Right onClicked: { /

BlackBerry 10 Cascades: How do I load data into a DropDown?

杀马特。学长 韩版系。学妹 提交于 2019-12-09 20:11:03
问题 I have managed to load data from a remote Json web service into a QML ListView, but there doesn't seem to be any such thing for the DropDown control. Does someone have an example or an alternative method to accomplish a DropDown bound to attachedObjects data sources in Cascades? 回答1: I have an alternate method for you, Do note that I have used google's web service here for demonstration purpose, you need to replace it with your url & parse response according to that. import bb.cascades 1.0

what is this control and how to use it in BB 10 cascades for navigation

自闭症网瘾萝莉.ら 提交于 2019-12-08 07:38:53
问题 I need to develop a bb 10 cascades app in which i need to add a control like in this image http://subefotos.com/ver/?37868d57047746ce1ea9ca55b7637e9eo.jpg#codigos (rounded in red color) when i touch on second bubble, i need to show second screen ,for third bubble third screen and so on. Default screen should be displayed is first screen(first bubble high lights) but how to do it in BB 10 cascades and what is that control called in bb 10? Please help, Thanks !!! 回答1: -------AM ADDED PAGE

How to Fix Module Not Installed Error in BB10 IDE

≡放荡痞女 提交于 2019-12-06 07:10:37
问题 Is it possible to fix module not installed error in BB10 IDE? Attached is screenshot of error to explain it a bit. Note: There is a similar question on SO which is kind of asking the same question (still not found correct answer yet) - blackberry cascades mapview 回答1: This is a currently a known issue with the QML preview in the Momentics IDE. It only supports the core cascades components. I answered a similar question here: blackberry 10 Unresolved inclusion <QObject> 来源: https:/

Invocation from function in QML?

会有一股神秘感。 提交于 2019-12-06 05:19:11
问题 I can share an item easily using an InvokeActionItem in a Page but I need to be able to call it in a listview item. I've managed to trigger an invoke, but I cannot figure out how to add data when triggering it. I keep getting an error message of InvocationPrivate::setQuery: you are not allowed to change InvokeQuery object Note: I am trying to do this in purely QML, I will do it via c++ if necessary but QML would be preferable. Code that works inside a Page object: actions: [ InvokeActionItem

BlackBerry 10 Cascades: How do I load data into a DropDown?

只谈情不闲聊 提交于 2019-12-04 19:21:10
I have managed to load data from a remote Json web service into a QML ListView, but there doesn't seem to be any such thing for the DropDown control. Does someone have an example or an alternative method to accomplish a DropDown bound to attachedObjects data sources in Cascades? I have an alternate method for you, Do note that I have used google's web service here for demonstration purpose, you need to replace it with your url & parse response according to that. import bb.cascades 1.0 Page { attachedObjects: [ ComponentDefinition { id: optionControlDefinition Option { } } ] function getData()

Invocation from function in QML?

流过昼夜 提交于 2019-12-04 12:50:35
I can share an item easily using an InvokeActionItem in a Page but I need to be able to call it in a listview item. I've managed to trigger an invoke, but I cannot figure out how to add data when triggering it. I keep getting an error message of InvocationPrivate::setQuery: you are not allowed to change InvokeQuery object Note: I am trying to do this in purely QML, I will do it via c++ if necessary but QML would be preferable. Code that works inside a Page object: actions: [ InvokeActionItem { ActionBar.placement: ActionBarPlacement.OnBar title: "Share" query { mimeType: "text/plain"

How to Fix Module Not Installed Error in BB10 IDE

让人想犯罪 __ 提交于 2019-12-04 12:45:51
Is it possible to fix module not installed error in BB10 IDE? Attached is screenshot of error to explain it a bit. Note: There is a similar question on SO which is kind of asking the same question (still not found correct answer yet) - blackberry cascades mapview nonesuchnick This is a currently a known issue with the QML preview in the Momentics IDE. It only supports the core cascades components. I answered a similar question here: blackberry 10 Unresolved inclusion <QObject> 来源: https://stackoverflow.com/questions/14509268/how-to-fix-module-not-installed-error-in-bb10-ide