Results 1 to 6 of 6

Thread: Zoom and scroll (pyqt5 -python)

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #6
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,321
    Thanks
    316
    Thanked 871 Times in 858 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: Zoom and scroll (pyqt5 -python)

    Thanks, I'll try!
    Another thing you can try: If the line plot is fast, then think about drawing only a line plot during zooming or scrolling. That is, when scrolling starts, replace the candle plot series with a line series and update that. When scrolling stops, replace the line series with the candle series again. You can use the QTimer trick to know when scrolling has stopped. You will give the impression of real time scrolling, but you will have only a small fraction of the things to draw.

    I don't think users will care if the candles disappear during scrolling. Many graphics software apps reduce the level of detail during interactive procedures to get better performance. As soon as scrolling stops, the full plot will reappear.
    <=== The Great Pumpkin says ===>
    Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.

  2. The following user says thank you to d_stranz for this useful post:

    quant (29th August 2019)

Similar Threads

  1. PyQt5 with python: LineEdit set text
    By rwahdan in forum Qt Programming
    Replies: 0
    Last Post: 15th June 2019, 11:42
  2. Replies: 1
    Last Post: 3rd July 2018, 23:44
  3. Python / PyQt5 MDI Window focus problem
    By apereira in forum Newbie
    Replies: 5
    Last Post: 21st September 2015, 23:29
  4. Replies: 0
    Last Post: 26th July 2015, 04:45
  5. Replies: 2
    Last Post: 13th January 2009, 04:32

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.