Category "pyside2"

Can't show api data in qml table correctly

I'm trying to get data from an api and insert it into table view from python side. Code. main.qml import QtQuick 2.15 import QtQuick.Window 2.15 import QtQuick.

PyQt5: How to Get Dimensions of Displayed Widgets

I have PyQt5 QLabels that expand/contract as the QMainWindow size changes. I want to get the dimensions of the QLabels when the QMainWindow is sized to anythin

Wrong method template for PySide2.QtCore.QAbstractItemModel.parent(): where is the problem?

I am trying to implement a subclass of QAbstractItemModel using PySide2. The signature of the parent method is virtual QModelIndex parent(const QModelIndex &

How to pass __init__ arguments to class registered with qmlRegisterType?

Is it possible to pass init arguments to a python class registered to QML using the qmlRegisterType function? If so, would they be passed when the class is inst

How tracking curve parameter changes via the toolbar?

I have a GUI application written in qt (pyside2) that has realtime plotting using matplotlib. Is there any way to track changes in curve parameters via matplotl

QLabel with image in round shape

I want to display image with round shape in PyQt5/PySide2 application. Below is the code i tried. self.statusWidget = QLabel() img = QImage(":/image.jpg").scale