Questions tagged [pyside6]

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

Links

757 questions
2
votes
1 answer

How to convert QDate to Python date object in PySide6

I have tried to get the date from QDateEdit so that I can save it to a database, but when I execute the code in PySide6 it gives me an error: value = self.ui.dateEdit.date() var_name = str(value.toPyDate()) Error: PySide6.QtCore.QDate object…
Eric paul
  • 101
  • 10
2
votes
1 answer

How to use QRC files in QML files?

I have an app that I have been working on and recently I heard about qml and qrc file systems and before this, I had been only using PySide6 and qss. So I have been using qml to make a GUI for this app but I have run into a wall. I want to give a…
PyDev19
  • 33
  • 6
2
votes
2 answers

converting ui file into py using pyside6

I just try pyside6 to convert ui files into py files. When I was using pyside2, I was writing this commande line to convert file: pyside2-uic MainWindow.ui -o ui_mainwindow.py -x But with pyside6, it is not working anymore: the "-x" doesn't look…
lelorrain7
  • 315
  • 5
  • 13
2
votes
1 answer

how to set background-image in pyqt6 without qrc system

I have a question about the resource system in PyQt6 and PySide6. firstly why PySide6 still supports the qrc system and PyQt6 does not. secondly how to use an image as a background for a widget in PyQt6, I saw the notion of addSearchPath(), and…
Ay Men
  • 90
  • 7
2
votes
1 answer

Update GUI while running asynchronous process

I have adapted the "async def _read_stream (stream, cb):" code described in How can I run an external command asynchronously from Python? by adding the update of a QTextEdit widget but the process is blocking when appending a text to the…
pinchoonet
  • 21
  • 3
2
votes
0 answers

PySide6(QTChart) How To Zoom In On X Axis And Have Y Axis Range Change Dynamically

I am attempting to have my candlestick chart be able to scroll in and out which will affect the dates on the x axis and the ranges on the y axis. For example if I zoom out the dates should widen and the ranges riden with it while keeping all of the…
Lane Floyd
  • 73
  • 1
  • 7
2
votes
1 answer

Custom QQuickItem is not painted

I am trying to write my own QQuickItems that use the SceneGraph to draw shapes as if it the parent Item was a Canvas. I am using PySide6 and Python. During my attempts I found a bug in PySide6, which was earlier reported. I downloaded the patch that…
WhiteStork
  • 385
  • 1
  • 15
2
votes
1 answer

Module "material" is not installed

I am running code on a Windows 7 VM with Qt Creator and I am getting a module "material" is not installed error when running my code. It is initialized with Python 3.8 using Pyside6. My Qt Creator is version 4.15.0 This is the QML code: import…
SCP3008
  • 115
  • 9
2
votes
1 answer

Proper way to detect when Ctrl (or other modifier key) is pressed

I want to condition an action on whether or not a modifier key (Ctrl) is pressed. One workaround I have found is to install an event filter and use QApplication.queryKeyboardModifiers() to detect when Ctrl is pressed, and…
amateur3057
  • 345
  • 1
  • 2
  • 11
2
votes
1 answer

How to add a action to the context menu from a function QSystemTrayIcon

I have tried searching the PySide6 docs for information about the QMenu and QSystemTray classes but I was unable to find any information about adding actions to the context menu from a function. Here is the code that I have tried: from…
Evolve255
  • 23
  • 3
2
votes
1 answer

PySide6 comes with segmentation fault on Mac

I am using Python 3.8.6 and PySide 6.0.1 and get a segmentation fault running the below sample. When I comment the Text {} element the sample runs. import sys from PySide6.QtGui import QGuiApplication from PySide6.QtQml import…
Olaf Japp
  • 480
  • 5
  • 19
2
votes
2 answers

Failed to extract plugin meta data from qtquick2plugin.dll in pyside application

I have my first qt quick 2 pyside application,my app don't run and show below error main.py file import sys,os from PySide6.QtGui import QGuiApplication from PySide6.QtQml import QQmlApplicationEngine import PySide6 if __name__ == "__main__": …
mohsen
  • 1,763
  • 3
  • 17
  • 55
2
votes
1 answer

WSL2 and PySide6

I am trying to run a simple PySide6 app on WSL2 $ python3 -m venv venv $ . ./venv/bin/activate $ pip install PySide6 $ sudo apt install libopengl0 libegl1 My code: import sys from PySide6.QtCore import Qt from PySide6.QtWidgets import QApplication,…
Rodrigo
  • 135
  • 4
  • 45
  • 107
2
votes
1 answer

PySide6 failing to run

I've recently installed PySide 6. I'm running Ubuntu 20.04 Attempting to run my code on VSCode And have just ran: export QT_DEBUG_PLUGINS=1 I'm getting the following message: QFactoryLoader::QFactoryLoader() checking directory path…
Digimartyr
  • 43
  • 6
1
vote
0 answers

QRC File not Styling QtQuickControls

I am writing some QML dialogs for an application front-end written in PySide6, and am unable to apply styling using the qtquickcontrols2.conf file specified in https://doc.qt.io/qt-6/qtquickcontrols-configuration.html. However, the customised…
grahamhs
  • 11
  • 4