[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: [PyQt] PyQt5 5.7.1. Possibly BUG - QGraphicsScene/View graphical/visual glitches
From:       oliver <oliver.schoenborn () gmail ! com>
Date:       2017-01-23 0:18:36
Message-ID: CAMb+DaXm12P9PgV_pk_uoG_TMxcvnXmq3s-kiPknWrcZRJ2Uog () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


It could be QTBUG-55918. If so, try setting the opacity as described there.
If not, there are a couple other related bugs. I.e., this is not likely to
be a PyQt 5.7 issue, but a Qt 5.7 issue. HTH,
Oliver

On Sun, 22 Jan 2017 at 08:43 Dariusz Makowski <dariusz1989@gmail.com> wrote:

Hey

Using it 1st time so apologise for any weird errors in my submission.


In any case I have a QGraphicsView/Scene node editor system. I use
widgets/checkboxes/lineedits/other in my view with QRectItem as a parent.

When I upgraded from 5.4.x to 5.7.1 I can notice some visual glitches. When
I zoom in/out pan around the drawing of widgets gets messed up.

I'm using dockwidget to hold my node editor and other things.

Attached a jpg example of issue.

Is that a bug, or I need to change some settings on Scene/View?

Using:

self.setRenderHint(QPainter.Antialiasing)self.setViewportUpdateMode(QGraphicsView.Smar \
tViewportUpdate)self.setTransformationAnchor(QGraphicsView.AnchorUnderMouse)self.setRe \
sizeAnchor(QGraphicsView.AnchorUnderMouse)self.setDragMode(QGraphicsView.ScrollHandDrag)


Regards

Dariusz

-- 
DARIUSZ MAKOWSKi
CGI-Photographer
07 590 530 854Dariusz@Dariuszmakowski.comwww.dariuszmakowski.com

_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
https://www.riverbankcomputing.com/mailman/listinfo/pyqt

-- 
Oliver
My StackOverflow contributions
My CodeProject articles
My Github projects
My SourceForget.net projects


[Attachment #5 (text/html)]

<div dir="ltr"><div dir="ltr" class="gmail_msg">It could be QTBUG-55918. If so, try \
setting the opacity as described there. If not, there are a couple other related \
bugs. I.e., this is not likely to be a PyQt 5.7 issue, but a Qt 5.7 issue. \
HTH,</div><div class="gmail_msg">Oliver</div><br class="gmail_msg"><div \
class="gmail_quote gmail_msg"><div dir="ltr" class="gmail_msg">On Sun, 22 Jan 2017 at \
08:43 Dariusz Makowski &lt;<a href="mailto:dariusz1989@gmail.com" class="gmail_msg" \
target="_blank">dariusz1989@gmail.com</a>&gt; wrote:<br \
class="gmail_msg"></div><blockquote class="gmail_quote gmail_msg" style="margin:0 0 0 \
.8ex;border-left:1px #ccc solid;padding-left:1ex">  

    
  
  <div bgcolor="#FFFFFF" text="#000000" class="gmail_msg">
    <p class="gmail_msg">Hey</p>
    <p class="gmail_msg">Using it 1st time so apologise for any weird errors in my
      submission.</p>
    <p class="gmail_msg"><br class="gmail_msg">
    </p>
    <p class="gmail_msg">In any case I have a QGraphicsView/Scene node editor system. \
I  use widgets/checkboxes/lineedits/other in my view with QRectItem
      as a parent. <br class="gmail_msg">
    </p>
    <p class="gmail_msg">When I upgraded from 5.4.x to 5.7.1 I can notice some visual
      glitches. When I zoom in/out pan around the drawing of widgets
      gets messed up. <br class="gmail_msg">
    </p>
    <p class="gmail_msg">I&#39;m using dockwidget to hold my node editor and other \
things.</p>  <p class="gmail_msg">Attached a jpg example of issue.</p>
    <p class="gmail_msg">Is that a bug, or I need to change some settings on \
Scene/View?</p>  <br class="gmail_msg">
    <p class="gmail_msg">Using:</p>
    <p class="gmail_msg">
      
    </p>
    <pre style="background-color:#2b2b2b;color:#a9b7c6;font-family:&#39;Courier \
New&#39;;font-size:9.0pt" class="gmail_msg"><span style="color:#94558d" \
class="gmail_msg">self</span>.setRenderHint(QPainter.Antialiasing) <span \
style="color:#94558d" \
class="gmail_msg">self</span>.setViewportUpdateMode(QGraphicsView.SmartViewportUpdate)<span \
style="color:#808080" class="gmail_msg"> </span><span style="color:#94558d" \
class="gmail_msg">self</span>.setTransformationAnchor(QGraphicsView.AnchorUnderMouse) \
<span style="color:#94558d" \
class="gmail_msg">self</span>.setResizeAnchor(QGraphicsView.AnchorUnderMouse) <span \
style="color:#94558d" \
class="gmail_msg">self</span>.setDragMode(QGraphicsView.ScrollHandDrag)</pre>  <p \
class="gmail_msg">Regards</p>  <p class="gmail_msg">Dariusz<br class="gmail_msg">
    </p>
    <pre class="m_7504868119233520504m_-1977358569067681047moz-signature gmail_msg" \
cols="72">--  DARIUSZ MAKOWSKi
CGI-Photographer
07 590 530 854
<a class="m_7504868119233520504m_-1977358569067681047moz-txt-link-abbreviated \
gmail_msg" href="mailto:Dariusz@Dariuszmakowski.com" \
target="_blank">Dariusz@Dariuszmakowski.com</a> <a \
class="m_7504868119233520504m_-1977358569067681047moz-txt-link-abbreviated gmail_msg" \
href="http://www.dariuszmakowski.com" \
target="_blank">www.dariuszmakowski.com</a></pre>  </div>

_______________________________________________<br class="gmail_msg">
PyQt mailing list      <a href="mailto:PyQt@riverbankcomputing.com" class="gmail_msg" \
target="_blank">PyQt@riverbankcomputing.com</a><br class="gmail_msg"> <a \
href="https://www.riverbankcomputing.com/mailman/listinfo/pyqt" rel="noreferrer" \
class="gmail_msg" target="_blank">https://www.riverbankcomputing.com/mailman/listinfo/pyqt</a></blockquote></div></div><div \
dir="ltr">-- <br></div><div data-smartmail="gmail_signature"><div \
dir="ltr">Oliver<div>My StackOverflow contributions<br><div>My CodeProject \
articles</div></div><div>My Github projects</div><div>My SourceForget.net \
projects</div></div></div>


[Attachment #6 (text/plain)]

_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
https://www.riverbankcomputing.com/mailman/listinfo/pyqt

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic