Results 1 to 4 of 4

Thread: open dialog from center to full screen size

  1. #1
    Join Date
    Jul 2012
    Posts
    14
    Thanked 1 Time in 1 Post
    Platforms
    Unix/X11 Windows

    Post open dialog from center to full screen size

    hi,

    i want to open a dialog from center point to screen size ... first when i open dialog it will in center of screen with small size and gradually it increase its size and fit to window size ... i want zoom in effect initially and when i press escape it will zoom out...... is it possible in limited resources embedded device?

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

    Default Re: open dialog from center to full screen size

    "Limited resources" can mean just about anything nowadays. Best way to find out is to try it... There may be a compromise needed to how good the effect looks. I would do it by defining how long the effect should take and how many steps (in-between sizes of the dialog) would be needed for the effect (just a first guess) -- perhaps only 4 or 5. Then I'd add a QTimer()-triggered routine to the dialog's opening process. After that it is a process of iterating the parameters until it looks good -- or deciding that it sucks and forgetting about it.

  3. #3
    Join Date
    Jul 2012
    Posts
    14
    Thanked 1 Time in 1 Post
    Platforms
    Unix/X11 Windows

    Default Re: open dialog from center to full screen size

    hi mvuori,

    i have tried that approach but it will take much more time of cpu and it loads very slowly on that ....

  4. #4
    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: open dialog from center to full screen size

    Assuming you have not tried to grow the dialog in 500 steps over 200 milliseconds then the answer to your original question is no.

    You would typically use QPropertyAnimation to do this for a widget UI.

Similar Threads

  1. Set full screen a dialog box
    By fantom in forum Qt Programming
    Replies: 3
    Last Post: 8th March 2011, 11:54
  2. Center dialog on screen problems
    By lalesculiviu in forum Qt Programming
    Replies: 1
    Last Post: 1st November 2009, 13:15
  3. how to put a dialog in the center of the screen
    By biswajithit in forum Qt Programming
    Replies: 4
    Last Post: 4th September 2008, 12:24
  4. Show dialog in screen center
    By mourad in forum Qt Programming
    Replies: 1
    Last Post: 16th June 2008, 13:41
  5. Open image in full screen
    By jeetu_happy in forum Qt Programming
    Replies: 3
    Last Post: 23rd January 2007, 09:03

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.