Results 1 to 19 of 19

Thread: timeline

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,376
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    4
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: timeline

    Quote Originally Posted by franco.amato View Post
    2) I resize the window WITHOUT PLAY THE FILE
    in this case I have to update the wave so I can not move the updatewave inside the setCurrentTimePosition
    Call updateWave() from the resizeEvent() as well. It's still worth it to write another method to have the paint event not have to execute the if statement every time your widget is redrawn.
    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.


  2. #2
    Join Date
    Nov 2007
    Location
    Italy
    Posts
    694
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    59
    Thanked 1 Time in 1 Post

    Default Re: timeline

    Quote Originally Posted by wysota View Post
    Call updateWave() from the resizeEvent() as well. It's still worth it to write another method to have the paint event not have to execute the if statement every time your widget is redrawn.
    I moved the updateWave inside the resize event but the resizing process now seems slower.

    What do you think about?
    Franco Amato

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

    Default Re: timeline

    During every resize your wave is being updated. It would be wise to update it only when the user stops resizing but then it might not be worth the effort. Maybe you should stick with generating the pixmap during paint event for now until you reach a point where it becomes a bottleneck.
    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.


Similar Threads

  1. Creating a graphic timeline
    By kaushal_gaurav in forum Qt Programming
    Replies: 2
    Last Post: 26th November 2012, 13: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
  •  
Qt is a trademark of The Qt Company.