×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Apr 2009
    Posts
    23

    Preventing screensaver in application

    I'm creating a stopwatch-like application where it is quite important that the running clock is always visible, unfortunately the Symbian screensaver, or autolock/whatever, prevents the users from seeing the clock when the device has been inactive (when the screen is not touched).

    I'm looking for a way to prevent the screensaver (only when the clock is active). I have no experience in Qt whatsoever (only QML and J2ME), so QML is preffered. I have found a way to do it in Qt, but as stated before I have no clue how to intergrate that in my Qt Quick application.

    Thanks in advance!

  2. #2
    Super Contributor
    Join Date
    Mar 2005
    Location
    Paris
    Posts
    814

    Re: Preventing screensaver in application

    you can call a Qt function from your QML application.
    http://wiki.forum.nokia.com/index.ph...thods_from_QML
    the Q_INVOKABLE keyword indicates that there is a binding for calling this function from QML so echo can be called, public slots are available too.

    view.rootContext()->setContextProperty("StringHelper", &stringHelper);
    this maps a StringHelper object in your QML so you can access it by simply naming it.

    what is your method in Qt for preventing the screen saver, btw?

Similar Threads

  1. Replies: 3
    Last Post: 2009-02-13, 12:37
  2. Preventing multiple instances of an application
    By egawthrop in forum Symbian
    Replies: 7
    Last Post: 2008-08-12, 09:59
  3. backlight control in screensaver application
    By sunny_singh in forum Symbian
    Replies: 7
    Last Post: 2006-07-27, 14:10
  4. small problem in screensaver application
    By sunny_singh in forum Symbian
    Replies: 0
    Last Post: 2005-11-21, 05:35
  5. Replies: 1
    Last Post: 2005-06-22, 15:04

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×