Questions tagged [pyside6]

Questions about using PySide6, a Python Qt bindings project for Qt6.

Links

757 questions
1
vote
0 answers

Why calling `print(self)` in constructor of a parent class is causing RuntimeError?

Here's the traceback: Traceback (most recent call last): File "/home/neon/pyqt6/myqt/src/app.py", line 13, in window = AppWindow() ^^^^^^^^^^^ File "/home/neon/pyqt6/myqt/src/app.py", line 7, in __init__ …
user47
  • 1,080
  • 11
  • 28
1
vote
0 answers

How does vtk implement actor refresh in the scene

In one of my recent projects that required the use of VTK, I wanted to implement a feature where I could move two balls around in a vtk scene while using the mouse to move the view. I generated a code using chatgpt, but this code has a problem. When…
tlncgbnn
  • 11
  • 1
1
vote
1 answer

In PySide6, if a `QMainWindow` has a pushbutton connected to it's own partial function, it could be opened many times, why?

Here is my code: import sys from functools import partial from PySide6.QtWidgets import (QApplication, QGridLayout, QHBoxLayout, QMainWindow, QPushButton, QStatusBar, QWidget) class UiTest(QMainWindow): def…
Chuang Men
  • 371
  • 3
  • 10
1
vote
1 answer

Pyside6 : zoom on graphics with QGraphicsSceneEventWheelevent

I want to add a zoom fonctionalities on the graphics I post. I thought that using QGraphicsSceneWheelEvent was a good way to do it but I couldn't make it work, even with some examples. Do you have some simple examples for this purpose that I can…
1
vote
1 answer

Disabling custom button inside QDialogButtonBox

I have a QDialogButtonBox that contains the two custom buttons Start and Cancel. According to this answer, the best way to add these buttons is as follows: button_box = QDialogButtonBox() button_box.addButton("Launch",…
sebwr
  • 113
  • 1
  • 10
1
vote
0 answers

Multiple QWebEngineProcesses created by QWebEngineView eats up memory

In my application I have a list of buttons and clicking on each creates a new QWebEngineView in a QMainWindow. On closing the QMainWindow I want the QWebEngineView (and the QWebEngineProcess that it spawns) to be destroyed. But this does not happen…
Lizzzz90
  • 125
  • 1
  • 1
  • 8
1
vote
1 answer

PySide6 QScintilla binding

I know there is no official link between qscintilla and pyside6, but I would like to know if there is any alternative or unofficial port. In search of information, I found only an empty repository http://gitorious.org/pyside-qscintilla and (as I…
Menlis Smith
  • 56
  • 1
  • 5
1
vote
0 answers

Why is Component.onCompleted called twice?

Consider the QML code below: // Test1.qml import QtQuick import QtQuick.Controls Label { text: "Hello" Component.onCompleted: console.log("Label") } I preview the effect by using pyside6-qml in a PySide6 virtual environment, and get: qml:…
Isaac
  • 11
  • 1
1
vote
1 answer

Removing/hiding the extra block/line from the beginning of a QTextEdit frame

When inserting a text frame, there is a text block above the frame that I cannot figure out how to get rid of, even when inserting the frame from position zero of the document. It looks like the text frame puts in an extra block at the beginning and…
1
vote
0 answers

PySide6 Error: Plugin uses incompatible Qt library (5.15.0) [release]

I am having an issue with PySide6 library on my computer. Every time I run an application using this library, I receive a warning message. Although the application functions properly, the icons don't work. I am using Anaconda environments on my…
1
vote
0 answers

pyqtgraph's GraphicsWidgetAnchor class incomplatible with PySide6

I've written an application that uses PySide6 and pyqtgraph. Now, I upgraded all my Python packages (PySide 6.5.0 and pyqtgraph 0.13.2, Python 3.10) and that code crashes. I was wondering what changed since that and apparently, the following line…
agentsmith
  • 1,226
  • 1
  • 14
  • 27
1
vote
1 answer

In QML, how can I prevent a ComboBox from opening it's popup after gaining active focus via Keys.onEnterPressed?

In QML (6.4), I have a TextField left of a ComboBox. My users want to fill the TextField with the numpad and for ease of use, when they press the Enter key (the one on the numpad), they want to automatically focus the next input element, which is…
Niels
  • 38
  • 4
1
vote
1 answer

How can I change the Main Window with a button and run the events from another window Pyside6

I want to change the Main Window through a button click, but when the main window change´s the event´s dont run. The both window´s are already been created in qt Designer here is the code: from PySide6.QtWidgets import * from PySide6.QtWidgets…
Shadow
  • 65
  • 8
1
vote
1 answer

Pyside6, Qt Designer and class inheritance (Python)

I'm developing a small app using Python 3.9.7, PySide 6.5.0, Qt Designer 6.4.2, VSCode 1.74.3. I managed to create a widget using Qt Designer and converting it to a py file using pyuic6 command. This widget is used to insert or update a record…
bigfefi
  • 23
  • 3
1
vote
1 answer

PySide6 & WSL2: ImportError: libEGL.so.1

I'm using isolated with poetry/venv Python: 3.11.2 with Ubuntu WSL2 22.04 python app.py Gives me the following error: Traceback (most recent call last): File "/home/lara/projects/qtapp/app.py", line 4, in from PySide6.QtGui import…
lmalmeida
  • 135
  • 2
  • 14