Results 1 to 3 of 3

Thread: Qwt panning broken with QT_SCREEN_SCALE_FACTORS=2

  1. #1
    Join Date
    Sep 2010
    Posts
    46
    Thanks
    14
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Exclamation Qwt panning broken with QT_SCREEN_SCALE_FACTORS=2

    Hi,

    I'm using Qwt 6.1.3 with Qt 5.10.1 (the problem has been reproduced with Qwt trunk as well).

    I have a HiDPI display (dpi=192, scale factor 2). Qwt works nicely, but panner behavior is weird - it "zooms in" while dragging, so you can't see what you're actually dragging. It zooms out on mouse release.

    To reproduce:
    1. export QT_SCALE_FACTOR=2 (enables GUI scaling + font scaling).
    (Or, set system DPI to 192 and export QT_SCREEN_SCALE_FACTORS=2, this will scale the fonts according to DPI and scale the rest of the GUI by a factor of 2).
    2. Run "friedberg" or "stockchart" example.
    3. Pan around with mouse middle button.

    I guess it's related to displayAspectRatio property somewhere.
    I can attach screenshots if needed (not sure if they would be informative though).

    Thanks,
    Alexander

    P.S. Huge thanks for such a useful and versatile library!

  2. #2
    Join Date
    Feb 2006
    Location
    Munich, Germany
    Posts
    3,309
    Thanked 879 Times in 827 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Qwt panning broken with QT_SCREEN_SCALE_FACTORS=2

    I created a bug report: https://sourceforge.net/p/qwt/bugs/293/
    There is already another one related to the High DPI issues: https://sourceforge.net/p/qwt/bugs/285/

    Please watch the status of the bug reports - I will have time to fix those issues in the next week.

    Uwe

  3. #3
    Join Date
    Sep 2010
    Posts
    46
    Thanks
    14
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Qwt panning broken with QT_SCREEN_SCALE_FACTORS=2

    Thanks a lot, Uwe!

Similar Threads

  1. Panning to right
    By atrofimov in forum Qwt
    Replies: 3
    Last Post: 13th April 2013, 10:34
  2. Panning with Qwt
    By Momergil in forum Qwt
    Replies: 2
    Last Post: 2nd March 2012, 10:16
  3. Need Help Regarding Image panning in QT
    By sekhar18k in forum Qt Programming
    Replies: 4
    Last Post: 28th September 2010, 08:18
  4. Panning QGraphicsScene
    By prashant in forum Qt Programming
    Replies: 1
    Last Post: 28th September 2009, 21:41
  5. Panning
    By linuxdev in forum The GraphicsView Framework
    Replies: 3
    Last Post: 30th December 2008, 07:40

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