Questions tagged [qgraphicsproxywidget]
8 questions
1
vote
1 answer
How to fix "cannot initialize a variable of type 'QGraphicsProxyWidget *' with an rvalue of type 'QGraphicsLayoutItem *'"?
I want to parse the QGraphicsGridLayout, but getting this error. The thing is I was able to add QGraphicsProxyWidget as an item but not able to retrieve it. I want to know how to convert a QGraphicsLayoutItem* to QGraphicsProxyWidget* in this line…

surya sai
- 11
- 3
1
vote
0 answers
How to add QOpenGLWidget to QGraphicsScene?
My main.cpp
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
QSurfaceFormat format;
format.setDepthBufferSize(24);
format.setStencilBufferSize(8);
format.setVersion(3, 2);
…

Syaiful Nizam Yahya
- 4,196
- 11
- 51
- 71
0
votes
0 answers
How do I remove a proxyWidget from QGraphicsView?
What is the correct way to remove a proxy widget from QGraphicsView?
If i delete the list item and then re draw the graphicsView, then sometimes the program stops working...

Chris P
- 2,059
- 4
- 34
- 68
0
votes
0 answers
How to change the background color of the already existing QGraphicsProxyWidget?
I have formed a grid layout with QGraphicsProxyWidgets which are Qlabel widgets added to a scene. I want to update the background color of the widgets with a button click.
How can I access the QLabel so I can change the background color? I tried…

surya sai
- 11
- 3
0
votes
1 answer
How to update OpenGL drawings(QOpenGLWidget) when added to QGraphicsScene?
I based my implementation on this sample. https://doc.qt.io/qt-5/qtopengl-2dpainting-example.html
What the sample does is render/animate 2 images. One is rendered using native qt functionality and the other is rendered using OpenGL. Thats all there…

Syaiful Nizam Yahya
- 4,196
- 11
- 51
- 71
0
votes
0 answers
QGraphicsView behaving differently when mouse is held over a QGraphicsProxyWidget
I have a pyside2 GUI that uses QGraphicsView.
I use setDragMode(QGraphicsView.ScrollHandDrag) to make the view dragable, but i override the cursor with viewport().setCursor(Qt.ArrowCursor) on mouseReleaseEvent to avoid constantly having the…

EVRR
- 1
- 1
-1
votes
1 answer
How to connect a QRadioButton of a QTableWidget cell with another QTableWidget cell using an arrow?
I have a QListWidget and a QGraphicsView both subclassed to overwrite some of their members. I prepared a minimal verifiable example showing the problem I have here
From the QListWidget I can drag and drop specific field (represented by a…

Emanuele
- 2,194
- 6
- 32
- 71
-1
votes
1 answer
Why QGraphicsProxyWidget does not resize properly after dropping into QGraphicsView?
I have a QListWidget and a QGraphicsView both subclassed to overwrite some of their members.
I prepared a minimal verifiable example showing the problem I have.
From the QListWidget I can drag and drop specific field represented by a QTableWidget…

Emanuele
- 2,194
- 6
- 32
- 71