blackberry-cascades

Dynamically set imageSource in ImageView Blackberry 10

南笙酒味 提交于 2019-12-30 11:06:39
问题 Please help me.,i m stuck with this for more than a week.I am emitting a signal with image from my cpp file.I need to replace the default image that i placed in the imageView at QMl using this emitted image. Here is my full code. PostHttp.hpp /* Copyright (c) 2012 Research In Motion Limited. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org

Dynamically set imageSource in ImageView Blackberry 10

喜欢而已 提交于 2019-12-30 11:05:57
问题 Please help me.,i m stuck with this for more than a week.I am emitting a signal with image from my cpp file.I need to replace the default image that i placed in the imageView at QMl using this emitted image. Here is my full code. PostHttp.hpp /* Copyright (c) 2012 Research In Motion Limited. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org

Share Invoke is sometimes blank

浪尽此生 提交于 2019-12-25 04:22:34
问题 I have a strange bug using a share invoke. About 1 in 3 attempts to share will result in no text being shared. Usually the first share will work but further attempts will not work. Randomly it will start working again. This happens with bbm, facebook and twitter apps. The following code is part of a listview listitem. InvokeActionItem { id: invokeActionItem title: "Share" ActionBar.placement: ActionBarPlacement.OnBar imageSource: "asset:///Images/Icons/share_icon.png" query { mimeType: "text

Accessing ListItemComponents on the run

时光总嘲笑我的痴心妄想 提交于 2019-12-24 09:38:51
问题 right now I'm trying to create a ListView which loads the dataModel using a custom QML. Here's the snippet of my code: ListView { id: firstPageListView visible: false dataModel: firstPageDataModel layout: GridListLayout { columnCount: 1 cellAspectRatio: 2.0 headerMode: ListHeaderMode.Standard verticalCellSpacing: 10 } listItemComponents: [ ListItemComponent { //custom qml that will be used ThumbNote { title: ListItemData.title text: ListItemData.text imageSource: ListItemData.image listmode:

How to show a phonepad with a certain number in Blackberry Cascades

点点圈 提交于 2019-12-22 14:00:32
问题 I am using Blackberry Cascades 10 Beta 3 SDK with C++ QT & QML with the Blackberry 10 Dev Alpha Simulator and the QNX Momentics IDE, and I'm trying to implement the ability to click on a button with a phone number from QML and have it bring up a dialpad with that number in from at which point the user should be able to press call and it would call that number. The following is the sort of thing I have done: Button { text: "555-555-5555" //just a sample number - I don't actually use this

make: *** No rule to make target `Device-Debug'. Stop.

谁说胖子不能爱 提交于 2019-12-22 05:53:10
问题 i am using QNX momentics for blackberry development. The problem is whenever i download any sample code and run it on Simulator. then error comes to me. When i clean the project it give me Error **** Clean-only build of configuration Simulator-Debug for project list **** make -j4 clean make: *** No rule to make target `clean'. Stop. **** Build Finished **** And when Build the project it gives me **** Build of configuration Simulator-Debug for project list **** make -j4 Device-Debug make: ***

Exposing complex C++ Qt object to QML

放肆的年华 提交于 2019-12-14 04:26:17
问题 In a C++ file, I have an object of the type QList<QStringList>* , which is supposed to be a two dimensional String array. Currently, in C++ I am able to do this: // this will display the QString value in the Console, // where entries is of type QList<QStringList>* qDebug() << "test: " << entries->at(0).at(0); I know how to expose this object to QML, but how am I going to be able to navigate / access its functions in QML ? In main.qml , I can call the function that returns this object: _app

Blackberry 10 cascades qml methods

て烟熏妆下的殇ゞ 提交于 2019-12-13 04:21:56
问题 How to load a method when i click a button from one qml layout to other qml? as am having a editprofile button if i click the button means i want to show the values ,which i got from the webservice how to do this? can anyone send some idea.? Thanks 回答1: you need to implement this onCreationCompleted method onCreationCompleted: { // call the function, that you need to show first // first_display() } Hope this helps.!!! 回答2: It sounds like you are trying to pass data retrieved from a webservice

How to programatically take a screenshot on BlackBerry 10 using cascades?

安稳与你 提交于 2019-12-13 01:25:59
问题 Is it possible to take the screenshot using Blackberry 10 cascades API? 回答1: The Screenshot API is now on SDK 10.2 Beta: http://developer.blackberry.com/cascades/reference/bb_system_screenshot.html 回答2: This is not possible right now, but is something being considered for post launch. 来源: https://stackoverflow.com/questions/13123438/how-to-programatically-take-a-screenshot-on-blackberry-10-using-cascades

Blackberry 10 Cascades - Images inside Text Area

筅森魡賤 提交于 2019-12-12 10:57:47
问题 I am designing an application that needs to replace some text inside of a TextArea with an Image. For example, if I enter a phone Number that exists on the Native contacts list, I need to replace the text on the text Area with an Image and be able to add more phone Numbers (the attached image illustrates the procedure). This is the native messaging application, but I can't find an API to do this in Cascades. Thanks for the help. 回答1: I believe what you are looking for is the FlowListLayout