QML Cascades and to 'SCREEN_IDLE_MODE_KEEP_AWAKE' to work

I have a QML driven application works very well, but after the usual delay, the display shuts off.  I need a way to keep it.

I tried adding a "ForeignWindow" to my QML and then use FindChild to find the window, tie it to a ForeignWindow pointer and use it.  I have no errors, but the screen stays off.

So, if someone got everything a QML Cascades driven UI app actually keep the screen on, please share your secret.

Thank you

Bryan

Well, I'm this marking as closed in what I found a method to keep the screen awake (until it is actually completely supported in Cascades.

The method was built with the participation of two people and a lot of research.  Here is the result

(1) create a new thread

(2) in the thread create a screen context

(3) events ask for screen and navigator

(4) when you get a message from idle screen, inject a key event in the queue of the screen

Works very well.  Thank you all for your help

Tags: BlackBerry Developers

Similar Questions

  • How can I use qt without cascades and qml

    I want to use the Qt API without cascades and qml in my native application. I tried to use the Qt header files, but he tries to link with the static Qt libraries which are missing in the bb10 NDK (10.04). so can any body me suggestions on how to use the Qt API in the native application development

    Deploy the libraries you want to use with your application.  See here http://supportforums.blackberry.com/t5/Native-Development/How-to-port-your-Qt-Projects-to-Playbook/m... and here http://qt-project.org/wiki/QNX

    See you soon,.

    Jon

  • HOWTO simply refer to a QML item and then work with it?

    Salvation a simple question:

    I have a QML layout and now want to access via c ++ to the Button, TextField oder Label e.g.

    I have the following code:

    HelloCascadesApp::HelloCascadesApp()
    {
        QmlDocument *qml = QmlDocument::create("hellocascades.qml");
        qml->setContextProperty("cs", this);
    
        AbstractPane *root = qml->createRootNode();
        Application::setScene(root);
    }
    

    is there something like in Android devleopment findViewById?

    If it was all the app was going to do, then you wouldn't be even not bother with C++ without doubt, given that it could be done entirely in the QML with Javascript. I'll assume that you already knew and that is just one example of what could be a greater application.

    Although it is technically possible to do what you describe, I don't think that's how we're supposed to use QML.  You would rather the button to emit a Signal when it has been activated and, after you link to a location in C++ code, you would do the calculations, then probably update a property in the C++ class.  Label text would have been bound to the property at startup, then it would update automatically after you change the value of the property.

    See the examples and background here http://qt-project.org/doc/qt-4.8/qtbinding.html and here http://qt-project.org/doc/qt-4.8/properties.html .

  • Hi, I bought a the United States iphone6, im now in South Africa and it will not work. It says sim not supported.how do I fix this?

    Hi, I bought a the United States iphone6, im now in South Africa and it will not work. It says sim not supported.how do I fix this?

    The SIM card is not support indicates that the iPhone is locked to the American carrier that it has been activated with. In order to obtain the released lock it is necessary that you talk to the carrier to find out what their requirements are to release the lock. They are the only ones who unlock it so that it can be used with another carrier.

  • How to get help with Add ons and extensions that stop working

    I have saved passwords and it has stopped working. It's so hard to get help with Moxilla

    rosemarybales said

    I still don't know why the extension button passwords saved with the key icon has stopped working.

    This button displays the saved passwords in Firefox's built-in password manager, is no separate passwords that record you in Dashlane. Can you save passwords in both places? (Well, I guess you do.)

    I have a guess on why it has stopped working. Firefox 40 has some changes to how extensions can work with the user interface, so quite a few extensions that have been more than one year must be updated for Firefox 40. It has been updated on January 10, 2012.

    Anyway, the way of 'long' to display the passwords saved in Firefox is through the Options page, the Security Panel, the saved passwords button.

  • Hi there, my WI - FI and Bluetooth do not work. What to do to make it work?

    Hello

    My WI FI connection and Bluetooth don't work. What should I do to make this work?

    Hello

    Follow the steps here:

  • If I pay for an application and it does not work I would get my money back guarantee, please, thank you

    If I pay for an application and it does not work I would get my money back guarantee, please, thank you

    This is a user to user forum. You don't talk to Apple.

    You can report a problem with applications to http://reportaproblem.apple.com and request a refund as well.

  • Bought two of the iTouch, one for my wife and one for me. In the Notes his has the "" symbol for the formatting and mine does not work. Any suggestions?

    I bought the iTouch two at a time, one for my wife and one for me. In the application 'Notes' my wife shows the symbol "+" to the formatting and mine does not work. Any suggestion.

    Could you please include screenshots of the so-called issue?

  • Flash and Silverlight don't work at all in beta 34.0, when Internet Explorer is working correctly with these; immediately arrived with Update Beta 34.0.

    Hello!

    Immediately after the Update Beta 34.0, Silverlight and Flash, completely stopped working in Firefox. I am running Vista Home Premium, Service Pack 2.

    They work fine in Internet Explorer.

    This happens in any website I want.

    For example, I can go on Youtube and the page will display a black box where the video should be, but there is no control of playback, or any way to activate the video. Clicking in the black box has no effect.

    On the site of game music, Grooveshark, the site does not recognize Flash installed at all. (If you have not installed Flash, this site displays a message each time. Grooveshark correctly recognizes that Flash has been installed by Internet Explorer.)

    I've updated the Flash plugin for the current version, which also has nothing.

    I have not reinstalled Firefox, or do a system restore, still.

    I just bought a new computer I was going to migrate to and withdraw from this computer, so I wasn't going to make heroic efforts to solve this problem. I reported this more on the order of a bug report.

    Thank you.

    Karl

    Karl,

    Do you by chance have Flashblock installed? I had checked before and did turn off but it seems was not enough. Update b 34, 1 break Flashblock who, in turn, breaks Flash and, for me, VLC. I had to disable (in Add-ons) and restart Firefox, and now everything is fine.

    I found this while digging for answers on the Mozilla forums and eventually find http://forums.mozillazine.org/viewtopic.php?f=23 & t = 2881007
    on Mozillazine.

  • ESPN radio stream loads fine for 1 to 2 minutes, then closes and will not continue. works fine on other browsers/computers

    ESPN streaming broadcast radio charge very well and plays well for 1-2 minutes, then stop reading audio with no error message or warning, tried on another computer with chrome and he plays without quitting. YouTube and other streaming sites work properly with my computer and FF in the current configuration, but espn is the only one that gets me boring mornings! All plugins, modules and FF are up-to-date, I tried to disable them and test but problem persists - thank you

    Start Firefox in Safe Mode {web link}
    While you are in safe mode;

    Type of topic: preferences< enter > in the address bar

    Select Advanced > General.
    Find and stop using hardware acceleration.

    Search web sites secure. Are there problems?

    Then restart.

  • Drupal 7 and blogger do not work correctly on Firefox but on IE; the problems are quite specific; new problem.

    New problems on Drupal 7 and blogger who agree on IE. In Blogger, if I try to reply to a comment, I get a new window into the comments box that contains a new iteration of my Blogger template that I can't use. In Drupal 7, there are at least two modules that do not work correctly: the CKEditor GUI does not work and the filter of the Module does not work correctly. There is no error message, and the two modules work fine on IE and Chrome.
    There is nothing on the web that suggests or either of these Web sites is to have this kind of problems.
    Thanks for any help.
    David Hilfiker

    Hi david.hilfiker,
    Thank you for your question, I understand that this is happening on two sites. If this is not the case on other people's computers please try a restart of Firefox.
    The reset Firefox feature can solve a lot of problems in restaurant Firefox to its factory default condition while saving your vital information.

    Note: This will make you lose all the Extensions and preferences.

    • Sites Web open is not recorded in less than 25 versions of Firefox.

    To reset Firefox, perform the following steps:

    For Firefox versions prior to 29,0:

    1. Go to Firefox > help > troubleshooting information.
    2. Click on the "Reset Firefox" line

      button.

    3. Firefox will close and reset. After Firefox is finished, it will display a window with the imported information. Click Finish.
    4. Firefox opens with all the default settings applied.

    For Firefox 29,0 and above:

    1. Click the menu button

      click Help

      and select troubleshooting information. Now, should open a new tab containing your troubleshooting information.

    2. At the top right of the page, you should see a button that says "Reset Firefox"

      . Click on it.

    3. Firefox will close and reset. After Firefox is finished, it will display a window with the imported information. Click Finish.
    4. Firefox opens with all the default settings applied.

    Information can be found in the article Firefox Refresh - reset the settings and Add-ons .

    This solve your problems? Please report to us!

    Thank you.

  • I have followed closely at least six different sets of instructions to make this transfer, and none of them worked.

    At the same time, I made five new ringtones of the song of the birds and their synchronized successfully to my iPhone. Now, I did one more and I cannot get transfers, although it see the upward in my iTunes library on my iMac. It's less than 30 seconds and he appears as the correct type (ringtone). I have followed closely at least six different sets of instructions to make this transfer, and none of them worked. I am running the latest operating system, the most recent iOs and the most updated iTunes on both systems. Help, please.

    < re-titled by host >

    Hello saelon,.

    Looks like you have problems of synchronization a ringtone from iTunes on your iPhone. I know how fun it can be to create and use custom ringtones, so I can understand why you would reach for help when he's not working for you.

    To find out how to properly synchronize your ringtones to your iPhone, see the article: syncing your iPhone, iPad or iPod touch with iTunes on your computer via a USB - Apple Support

    If you still have problems of synchronization of this tone, it could be that the tone is not appear in the iTunes ringtones section and/or is not selected to synchronize. This applies specifically in numbers 4 and 5 of the article above the synchronization.

    If your custom ringtones do not appear in the "Tones" section in iTunes, it is possible that they are not in the correct format. If you do not already have, the program that we recommend for creating ringtones for your iPhone is GarageBand, it's available for iOS and Mac OS X. check the resources below for more information on this:

    GarageBand 11: Create an iPhone ringtone

    GarageBand for iOS

    GarageBand for Mac OS X

    Thank you for using communities of Apple Support.

    Have a great day!

  • My version of Firefox is updated, I restored to default settings Firefox, restarted, I downloaded the latest version of Flash and it won't work, it crashes...

    Mac, OS x 10.6.8 (updated), Firefox 28.0 (updated). Adobe Flash has been downloaded and no videos will work on all web pages using Firefox. I have reset the settings by default and restarted Firefox. I get the message that Adobe Flash broke down. Shut down the computer, restarted. Same thing. Uninstalled Flash and videos run but very agitated, jumps of 5 second increments after freezing. Firefox hangs and must be stopped by force. Installed an older version of Flash and it will work, but I get a warning that it is vulnerable. I crossed it several times and checked all my updates and they are the most recent available. Videos are running on either the latest version of Safari.

    I'm happy to have helped. Thanks for laying back.

    Remember to follow any progress, because I hope a fix will be available and you do not want to stay on Flash 12 unnecessarily.

  • Drag and drop no longer works in FF

    All drag-and-drop features stopped working on my 21 FF.

    In other words, I can not:
    -Drag items from bookmarks or rearrange bookmarks
    -Words slip from the search box or links to the URL box
    -Change the order of tabs
    -Rearrange items on toolbars
    -Move the text in text boxes
    -etc.

    Safe mode has the same problems.

    Please notify.

    ARGH. He was not at all a problem of Firefox: http://it.thelibrarie.com/weblog/2010.../drag-and-drop-stops-working/. Windows lol!

  • I just recently upgraded to OS El Capitan.  Now, none of my movies to quicktime does not work.  I have the old version of Quick time 7 and it does not work either.  They do not convert.  Help?

    I just recently upgraded to OS El Capitan.  Now, none of my movies to quicktime does not work.  I have the old version of Quick time 7 and it does not work either.  They do not convert.  Help?

    VLC will play them?

    http://www.videolan.org/

Maybe you are looking for