Skip to content

Repaint region is wrong on Retina display with Qt5 #11709

Closed

Description

@efiring

With master, I am getting only the upper left-hand quadrant of a plot window painted. Bisecting points to

commit 252f4135799027f9ae887e8fd87e3af906187a22
Author: Antony Lee <anntzer.lee@gmail.com>
Date:   Thu Jul 27 22:32:35 2017 -0700

    Let QPaintEvent tell us what region to repaint.

This came in with #8951.

Activity

  1. added
    Release criticalFor bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions.
    on Jul 20, 2018
  2. added this to the v3.0 milestone on Jul 20, 2018
  3. jklymak commented on Jul 20, 2018

    @jklymak
    Member

    I use Qt5 on a couple of macs, and don't have an issue; are you doing something in particular, or is all painting broken? Maybe a Qt5 version issue?

  4. efiring commented on Jul 20, 2018

    @efiring
    MemberAuthor

    It appears to be consistent breakage with any mpl pyqt plot window; e.g., plt.plot([3,2,1]). Somewhere, the pixel doubling is not being taken into account in this changeset, with my versions of pyqt and qt:

    # packages in environment at /Users/efiring/miniconda3/envs/mpl2:
    #
    # Name                    Version                   Build  Channel
    pyqt                      5.6.0            py36h8210e8a_6    conda-forge
    qt                        5.6.2                h9e3eb04_4    conda-forge
    
  5. efiring commented on Jul 20, 2018

    @efiring
    MemberAuthor

    @jklymak, note also that although the PR and commit causing the problem are old, they were merged only today, so unless you updated master and tested during the last 6 hours from now, you would not have seen the problem.

  6. jklymak commented on Jul 20, 2018

    @jklymak
    Member

    Whoops, OK, confirmed....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Release criticalFor bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions.

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions