blackberry-10

Is it possible to change language on Qt at runtime

泄露秘密 提交于 2019-12-23 13:09:38
问题 in my app I need internationalization. Say I have created several .ts file for different languages e.g., German, French, etc. - together with translated phrases. Now, say the user wants to change the language at run time. Will it not be possible using Qt approach? 回答1: You should have a LocaleHandler object in your application and listen to the systemLanguageChanged() signal. This signal will be called anytime the user changes the language through the settings menu. When this happens you

Parsing JSON in Qt C++ blackberry 10

别来无恙 提交于 2019-12-23 04:59:10
问题 This is My JSON text from any URL http://www.example.com/json.php Please can any one tell me how do I parse this json and put it in an Array so that it can be modal on customized ListView? Let me tell you that I am new to Blackberry development previously iOS developer. I have checked this link, but not able to run it . If any one have any complete solution(example or usage) please help me. I downloaded the sample of JSON from developer.blackberry.com, but not able to run . I also posted that

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: ***

Q_DECL_EXPORT keyword meaning

99封情书 提交于 2019-12-21 07:01:31
问题 Q_DECL_EXPORT int main(int argc, char **argv) What does this Q_DECL_EXPORT before int main(...) means? 回答1: Excerpt from QT docs: Depending on your target platform, Qt provides special macros that contain the necessary definitions: Q_DECL_EXPORT must be added to the declarations of symbols used when compiling a shared library. Q_DECL_IMPORT must be added to the declarations of symbols used when compiling a client that uses the shared library. I haven't check the QT code, but most likely this

VBO doesn't draw anything

旧城冷巷雨未停 提交于 2019-12-20 05:19:44
问题 I am trying to draw a square with VBO in my native blackberry 10 application. My implementation is, glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); glEnable(GL_TEXTURE_2D); glEnableClientState(GL_VERTEX_ARRAY); glEnableClientState(GL_TEXTURE_COORD_ARRAY); glEnable(GL_BLEND); glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); glGenBuffers(1,&decompressTileImage->VBOId); glBindBuffer(GL_ARRAY_BUFFER,decompressTileImage->VBOId); glBufferData(GL_ARRAY_BUFFER,sizeof(tileCoordList)+sizeof

blackberry 10 Unresolved inclusion <QObject>

安稳与你 提交于 2019-12-18 16:25:13
问题 I'm using the new version of Blackberry (Blackberry 10) . I'm trying to integrate c++ code with QML , but I faced some problems that I thinks connected to other . in the .h file Q_OBJECT , Q_PROPERTY signals and slots shows that there is syntax error . and in the QML file in which I try to use this type (i.e import CustomTimer 1.0 for example) I got this problem module "CustomTimer" is not installed . how to solve this issue??? 回答1: I'm using QNX Momentics Version 10.1.0 I resolved my errors

How can I cast a QVariant to custom class?

牧云@^-^@ 提交于 2019-12-18 03:22:31
问题 I'm developing a BlackBerry 10 mobile application using the Momentics IDE (native SDK). I have a listview which I want to handle its items click with C++ (I need to use C++ not QML). I can get the index path using the "connect" instruction, but I have problem with parsing a QVariant to a custom class ; Q_ASSERT(QObject::connect(list1, SIGNAL(triggered(QVariantList)), this, SLOT(openSheet(QVariantList)))); QVariant selectItem = m_categoriesListDataModel->data(indexPath); I tried to use the

How to display a local:// image in ionic framework + cordova?

情到浓时终转凉″ 提交于 2019-12-14 00:53:24
问题 Does anyone know how to display local images, packaged inside a Cordova container, using Ionic (http://ionicframework.com/docs/)? I am currently getting this error when the app runs on a device: GET unsafe:local:///img/thumbs/myImage.jpg Unhandled Protocol My Cordova app is built for BlackBerry 10 & Android using ionic framework. The app displays an image that is packaged inside the Cordova app itselfusing the following template: <img ng-src="img/thumbs/{{img.path}}" ng-click="fooBar(img)"/>

QML Preview compatibility check failed. QML preview is disabled

前提是你 提交于 2019-12-13 18:21:41
问题 I am on Mac 10.8.2, i have both java 1.6 (32/64bit enabled) and java 1.7 on my machine and the JAVA_HOME is pointed to java 1.6, but whenever I try to enable QML previewing in my momentics ide (QNX® Momentics® IDE for BlackBerry® 10 Native SDK, Version: 10.0.9), I get the error in the Title. looked a bit into the log under workspace/.metadata/.log, and it logged the following: !MESSAGE QML Preview compatibility check log. Error: This Java instance does not support a 32-bit JVM. How can I get