×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    Nov 2008
    Posts
    44

    Any SIGNALs on screen rotation?

    I am using qt4.6.2 for symbian with my nokia 5230 s60v5. However, when the screen rotates, the window which I create with 640*360 resolution will be very ugly.
    Is there a SIGNAL on screen rotation or something like the screen resolution changed SIGNALS when the screen rotates? Or any functions can handle this situation?

    thx.

  2. #2
    Super Contributor
    Join Date
    Oct 2009
    Posts
    4,326

    Re: Any SIGNALs on screen rotation?

    Are you using showMaximized() instead of hardcoding the window size?
    http://doc.trolltech.com/4.6/qdeskto...t.html#resized

  3. #3
    Registered User
    Join Date
    Nov 2008
    Posts
    44

    Re: Any SIGNALs on screen rotation?

    Thank you! showMaxmized() works.

  4. #4
    Super Contributor
    Join Date
    Nov 2009
    Location
    Minnesota, USA
    Posts
    3,209

    Re: Any SIGNALs on screen rotation?

    To answer your original question, I vaguesly recall that there is a Symbian event that occurs on rotation and which you can somehow intercept in Qt, but no native Qt event.

  5. #5
    Super Contributor
    Join Date
    Oct 2009
    Posts
    4,326

    Re: Any SIGNALs on screen rotation?

    Quote Originally Posted by danhicksbyron View Post
    To answer your original question, I vaguesly recall that there is a Symbian event that occurs on rotation and which you can somehow intercept in Qt, but no native Qt event.
    The name of the signal is QDesktopWidget::resized(int).

  6. #6
    Regular Contributor
    Join Date
    Mar 2009
    Posts
    430

    Re: Any SIGNALs on screen rotation?

    Quote Originally Posted by divanov View Post
    The name of the signal is QDesktopWidget::resized(int).
    When you rotate your device precise 180 degrees, this one will not fire.

    To answer that question: There was a Qt Mobile Extension with a sensor module and such a signal.
    There is a sensor API in the successor of that Mobile Extension: The Qt Mobility APIs.

    There is only one drawback: If you are developing for symbian, at least the mobile extension's sensor API needed capabilities that could not be self signed. I did not check the situation for the new sensor API but I doubt that this is no longer needed.

    So if you are developing for symbian and not have a developer certificate and want to use the sensor API, the development experience is worse than before because of Symbian signed online process.

Similar Threads

  1. Force portrait screen in CWsScreenDevice from executable (service)
    By lukedau in forum Symbian User Interface
    Replies: 4
    Last Post: 2010-09-17, 22:47
  2. Performance drop during screen rotation
    By axeljaeger in forum Symbian User Interface
    Replies: 1
    Last Post: 2009-08-14, 12:47
  3. Direct Screen Access (Please Comment!)
    By earamsey in forum Symbian
    Replies: 1
    Last Post: 2006-07-28, 18:34
  4. create image rotation on top of screen
    By mohd_izzuan in forum Mobile Java General
    Replies: 3
    Last Post: 2006-05-05, 19:48
  5. Replies: 0
    Last Post: 2006-03-01, 11:25

Posting Permissions

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