Results 1 to 3 of 3

Thread: Technique for creating a main window that can be programatically resized and animated

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Nov 2010
    Posts
    315
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60 Maemo/MeeGo
    Thanked 53 Times in 51 Posts

    Default Re: Technique for creating a main window that can be programatically resized and anim

    From your description it looks like that you messed up something in your code, most of this things should work out of the box.
    For animation you have QPropertyAnimation.

  2. #2
    Join Date
    Mar 2011
    Location
    Denmark
    Posts
    74
    Qt products
    Qt4
    Platforms
    MacOS X Windows
    Thanks
    7
    Thanked 10 Times in 9 Posts

    Default Re: Technique for creating a main window that can be programatically resized and anim

    I am using QPropertyAnimation.

    It is not out of the box, top level widgets in Qt do not automatically re-size to fit their contents

    I am programmatically resizing the top level widget when the child widget that contains the toolbar and results pane shows and hides the results pane. There is also a notification area which when it shows notifications expands the top level widget and when the notifications are hidden and the top level widget is resized back to its original size the, When this happens the searchwidget updates itself to take over the space of the notification widget but does not take into account the now smaller size of the top level widget.

    My structure is like this

    topFramelessWidget
    - NotificationWidget
    - SearchWidget
    ------- ToolbarWidget
    ------- ResultsPaneWidget

    I am not sure maybe the things i do in my refresh function are necessary on windows everything appears smoothly but on mac its like you can see when it repaints it shows blank and then draws the content it looks really awful when it blinks like that

Similar Threads

  1. Error creating a animated menu
    By CassioTC in forum Newbie
    Replies: 3
    Last Post: 26th March 2011, 01:42
  2. Replies: 1
    Last Post: 19th July 2010, 12:43
  3. Creating a Main Window Application
    By gt.beta2 in forum Qt Tools
    Replies: 13
    Last Post: 24th February 2009, 20:45
  4. Replies: 11
    Last Post: 11th August 2008, 10:14
  5. QMdiSubWindow problem with resized window
    By estanisgeyer in forum Qt Programming
    Replies: 2
    Last Post: 7th January 2008, 15:39

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.