Results 1 to 7 of 7

Thread: launching animated window from already open window

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    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: launching animated window from already open window

    I am not a Python programmer but I expect that the local variable "main" in goes out of scope at the end of the function taking the table widget with it. Same for the "animation" object. Try "self.main" and "self.animation"

  2. #2
    Join Date
    Nov 2012
    Posts
    35
    Thanks
    1
    Thanked 7 Times in 5 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: launching animated window from already open window

    yes, thats it. thanks. however why does the window that has button stays on top , when i have self.main.raise_() for new animating window ?

  3. The following user says thank you to krystosan for this useful post:


  4. #3
    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: launching animated window from already open window

    Take a look at QWidget::activateWindow() and the notes about Windows

  5. #4
    Join Date
    Nov 2012
    Posts
    35
    Thanks
    1
    Thanked 7 Times in 5 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: launching animated window from already open window

    I have got things working but animation doesn't seems to be smooth, is it because the new window is accessing the same QAbstractListModel or something else I need to add to QPropertyAnimation ?

Similar Threads

  1. Replies: 2
    Last Post: 14th January 2013, 07:07
  2. Replies: 3
    Last Post: 23rd December 2010, 06:55
  3. Replies: 2
    Last Post: 17th September 2010, 11:44
  4. Replies: 0
    Last Post: 10th September 2010, 13:23
  5. Open a window inside another window
    By passerb in forum Qt Programming
    Replies: 6
    Last Post: 18th October 2009, 13:24

Tags for this Thread

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.