Skip to main content

All Questions

Tagged with
1 vote
1 answer
37 views

Why do the QGraphicsBlurEffect makes my QGraphicsView not work?

I am using the QGraphicsView widget on PyQt5 and I created some custom QGraphicsItems. When I instantiate without any effect my items, I get this : When I add those three lines : blur = ...
Kaki In's user avatar
  • 39
0 votes
1 answer
43 views

Enable Pan/Zoom in QGraphicsView

I'm using Python and QtDesigner to display camera images with an overlay. My MainWindow gives access to camera settings, and trigger the camera accordingly. It sends each image via pyQtSlot to a ...
Medestrac's user avatar
1 vote
2 answers
37 views

QGraphicsView and QSplitter: collapsing and unfolding area does not restore image

I am trying to create a basic program that has two side-by-side panels: one with image, and one with text. I am using splitter to be able to resize both areas up to the point of completely collapsing ...
MrVocabulary's user avatar
0 votes
1 answer
81 views

PyQt5 - Ignoring widgets within QGraphicsView when dragging and dropping

I have a test PyQt application with a QGraphicsView/Scene, and a toolbar with a button in it which allows one to drag a shape into the viewport. There's also another button in the middle of the ...
user2407089's user avatar
0 votes
1 answer
135 views

How to insert a vertex into a QGraphicsPolygonItem?

This polygon is drawn by the QGraphicsPolygonItem and the QGraphicsPathItem. Now I want to add vertices by clicking on the polygon edge with the mouse, but I added the code to add vertices, which ...
Paul_Dx's user avatar
  • 15
1 vote
1 answer
187 views

Spline Editor in PyQt5 QGraphicsView

I'm trying to do a spline editor where the knots are movable points that define a spline (calculated each time the points move). I have a code using Tkinter working perfectly: import tkinter as tk ...
Inês Teiga's user avatar
0 votes
0 answers
55 views

Pyqt5 - Paint event not being called when view moves too quickly

I have a PyQt5 application which shows a window containing some items and a ruler on both sides. For example: The structure of the application is as follows: The widget containing the QGraphicsView ...
Sybren Zwetsloot's user avatar
-1 votes
1 answer
26 views

QGraphicsView focusEvent on proxy widget

In pyqt5 if i have a QGraphicsView widget and in the scene i use addWidget to add a QFrame as a proxy widget. Is there any way to call a method whenever the QFrame is focused (for example mouse click)....
Chris P's user avatar
  • 2,289
0 votes
1 answer
67 views

Two sync QGrapchisView layers miss aligned scene rect after zoom event, but aligned after pan events

I have two classes of edited QGrapchicsView, one (GraphicsView) shows lines and it enables zoom and pan. The second class (PolygonGrapchisView) only updates the scene rect to match that of the first ...
MBV's user avatar
  • 610
0 votes
1 answer
172 views

How to set shape in QGraphicsPolygonItem which have subpath?

I try to draw a polygon and the polygon with some join points.But when i create it's shape, the path that have a CircleItem shadow .That is not I wanted. the code from PyQt5.QtCore import * from PyQt5....
jett chen's user avatar
  • 1,131
1 vote
1 answer
274 views

How to fit a QGraphicsView to the width of the parent view in PyQt5?

The below class is a test to display a pdf file and a text box ontop inside a QGraphicsView. I would like to show only the top part of the pdf. And it is supposed to fill the width of the view. So it ...
schmiddl's user avatar
0 votes
1 answer
139 views

Undo\Redo with multi items movement QGraphicScene - pyqt5

I have implemented QUndoStack with QGraphicScene and everything is working like charm with individual QGraphicItem movement/rotation, but when it comes to the multi-items movement, I couldn't find any ...
Uncle Bob's user avatar
  • 165
0 votes
1 answer
79 views

Scaling-Rotating functionality on QGraphicsPixmapItem

I searched many times over the internet if QGraphicView have functionality for rotating/scaling image and I had no success. What I want like every diagram program each image/shape has boundary points, ...
Uncle Bob's user avatar
  • 165
2 votes
1 answer
729 views

PyQt5 QGraphicsView drawing resolution

I'm new to Qt, I am trying to make a paint application using QGraphicsScene and QGraphicsView. The only way to draw i found out is to add circles and lines to QGraphicsScene on mouseMoveEvent. It ...
Rimuto's user avatar
  • 33
0 votes
0 answers
41 views

Why Draw line in QGraphicScene not show but add button worked in pyqt

when i add pushbutton dynamically to the QGraphicScene with a pic its work but when i use QPainter to draw a line or rectangle not show. code: import sys from PyQt5 import QtWidgets, QtCore, QtGui ...
md.119's user avatar
  • 21

15 30 50 per page
1
2 3 4 5
9