Skip to content

Tag: pyside6

Pushing QWidget Window to topmost in Python

I’m new to Python and have mostly learnt C# in the past. I am creating a QWidget class: And then define a function that creates a QApplication and then the Window: My issue is getting the gif to show topmost when it is launched. There is a Topmost property you can set on a Winform in C# which means no

how to do a pagination bar in PyQT?

I need to paginate data from SQL tables. I cant find any information about pagination in PyQT or Pyside. Can you help me pls? Answer One way to handle pagination is to use the QStackedWidget for emulating the pages themselves, and regular QLabels as the page links. Then you can override each labels mousePress…

Using ListModel (Python/Pyside6) in QML

I have a ListView in QML and want to populate it with data from a AbstractListModel that I created in Python. AbtractListModel.py (I removed methods like rowCount() to keep the example lucid) Student.py ListView.qml How can I access name and age of a student in the delegate to show them where I used “#n…

How to create .ts files for Qt Linguist with PySide6?

I have a python project written with PySide2 and now I want to migrate to PySide6. I used Qt Linguist to translate UI and created .ts files with help of this command: pylupdate5 utility from PyQt5 package (but it worked fine for my project with PySide2). Now I plan to get rid of PySide2 and PyQt5 packages. So…

Hover Tool for plots in Pyqtgraph

I want to have data information shown when hovering over a line in pyqtgraph plots, but can’t get my sigpointsHovered to emit any signal. Here is a simple example of what i tried to do: I have already tried setting “hoverable” = True and read the docs several times, but I honestly have no cl…