Results 1 to 10 of 10

Thread: How to keep the app awake ?

  1. #1
    Join Date
    Jun 2011
    Posts
    8
    Thanks
    4
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Windows Symbian S60 Maemo/MeeGo

    Default How to keep the app awake ?

    Hi guys,

    Sorry for the nobie question, how to keep an app awake in QML?

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,018 Times in 4,794 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: How to keep the app awake ?

    Quote Originally Posted by et3rnal View Post
    Sorry for the nobie question, how to keep an app awake in QML?
    Don't tell it boring stories And seriously, what do you consider "awake"?
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    Jun 2011
    Posts
    8
    Thanks
    4
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Windows Symbian S60 Maemo/MeeGo

    Default Re: How to keep the app awake ?

    hahaha i want the screen to stay on after lunching the app even if there is no interaction thats all

    help plz

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,018 Times in 4,794 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: How to keep the app awake ?

    You mean you want to disable the screensaver? You have to use the native API for that.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  5. The following user says thank you to wysota for this useful post:

    et3rnal (1st September 2011)

  6. #5
    Join Date
    Oct 2010
    Location
    Berlin, Germany
    Posts
    358
    Thanks
    18
    Thanked 68 Times in 66 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: How to keep the app awake ?

    maybe he doesn't want the app to be hidden by other apps?

    maybe he wants to prevent minimizing?

    maybe he wants to give us more information?

  7. The following user says thank you to FelixB for this useful post:

    et3rnal (1st September 2011)

  8. #6
    Join Date
    Jun 2011
    Posts
    8
    Thanks
    4
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Windows Symbian S60 Maemo/MeeGo

    Default Re: How to keep the app awake ?

    okay guys will give more info

    for example: I want an app that after lunch will show picture, and this picture/color will stay on "with the screens light" so no screen saver, no brightness down, it just stay on till the user quit the app

    hope this made it clearer


    huh, this should be clearer:
    like the lighting apps, white screen only to light wt u want without doing off by it self if there is no interaction

  9. #7
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: How to keep the app awake ?

    To suppress the system screensaver and power saver mechanisms you will need to use a system specific API (as Wysota said earlier). Qt offers nothing to help here.

    For Windows you could look at : SystemParametersInfo

    For your S60 and Maemo platforms you would have to ask someone else (I don't even own a mobile phone, let alone program for them).

  10. #8
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,018 Times in 4,794 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: How to keep the app awake ?

    Maemo uses X11 so appropriate X calls need to be used. However the system needs to support them for this to work. I don't know if that's the case for Maemo.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  11. #9
    Join Date
    Jun 2011
    Posts
    8
    Thanks
    4
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Windows Symbian S60 Maemo/MeeGo

    Default Re: How to keep the app awake ?

    yes i want it for meamo :|

    i just dont feel these answers are really the right for newbie person like me lol, anyway thanks

  12. #10
    Join Date
    May 2011
    Posts
    239
    Thanks
    4
    Thanked 35 Times in 35 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Symbian S60

    Default Re: How to keep the app awake ?

    Quote Originally Posted by ChrisW67 View Post
    Qt offers nothing to help here.
    Haven't you heard of QSystemScreenSaver?
    http://doc.qt.nokia.com/qt-mobility-...reensaver.html

  13. The following user says thank you to mvuori for this useful post:

    et3rnal (6th September 2011)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.