ChatCrawlersearch across public Telegram Open the app
Q

Qt for Python (PySide/Shiboken)

snapshot for November 2024
‹ November 2024 ›×
C
Well if the functionality is a couple of Widgets, you can create a python minimal application with those and open a bug report, so we can check that out. Additionally, you can use on that small application our /not 100% compatible/ pyside6-qtpy2cpp that's is installed to create a c++ version of that in case you want to report it to Qt/C++
Scrolling through 6.8 changelog I saw a lot of bug fixes regarding W11 UI problems, I will try to update to the last version and see if the fix might reside in there somewhere 🤞
Ссылка
click to show
Unfortunatly no luck, as you can see there are discrepancies between the windows and macos versions MacOS: https://pasteboard.co/Zp3EHqbEOwBH.png Windows 11: https://pasteboard.co/2k5h3S2HDJ7A.png The last thing I am thinking is this: to release as a multiplatform application I use Github actions and their runners with a workflow running PyInstaller. If I am correct in what a read here (https://github.com/actions/runner-images/blob/main/images/windows/Windows2022-Readme.md) the image I am using is still based on Windows 10. Could that affect the result if I run the final program in Windows 11?
I still have my doubts since the old release built in the same way with Qt 6.4 seems to behave correctly
Rolled back to 6.4.3 and everything is rendered "as it should" Loosing dark mode is a bummer but I really can't understand what has changed.
Ссылка
click to show
I had another go and tried running the Python code using PySide 6.8.0.2 directly on Windows 11 without packaging it through PyInstaller. The same exact problem is present. No issues if the style is set to "Fusion": https://pasteboard.co/pt2v4i1unjku.png Even though I must admit it looks quite bad in Windows 11...
I think I found the culprit! I have some custom delegates on most of my models to accept both comma and dot decimal separated numbers and cohere both to dot notation. If I remove these delegates from the QTableView the problem disappears. It does not solve the layout problem on the left though... As a reference this is the code for one of the delegates: class NumberFormatDelegate(QItemDelegate): def __init__( self, parent=None, bottom: float = -float("inf"), top: float = float("inf"), decimals: int = -1, ) -> None: super().__init__(parent) self.bottom = bottom self.top = top self.decimals = decimals def createEditor(self, parent, option, index): editor = LineSpinBox( parent, bottom=self.bottom, top=self.top, decimals=self.decimals, ) return editor def setEditorData(self, editor, index): data = index.data(Qt.DisplayRole) editor.setText(data) def setModelData(self, editor, model, index): model.setData(index, editor.text(), Qt.EditRole) LineSpinBox is just a subclass of a LineEdit with some validation on top.
L
Does something changed for delegates between 6.4 and 6.8?
K
i'm using pyqt and pyside for about 2 years, and i have learned a lot by myself and one many things since then. but is there any structured course available to learn things with their best practices especially advanced materials?
Kian T.i'm using pyqt and pyside for about 2 years, and i have learned a lot by myself and one many things since then. but is there any structured course available to learn things with their best practices especially advanced materials?
I have been working with PySide since 2018 when I started my master thesis and in all these years I have not found one definitive course that really covers "everything" As I said multiple times here the only resource I feel like suggesting (apart from the official docs obviously) is this "old" book on PyQt4: "Rapid GUI Programming with Python and Qt" by Mark Summerfield It is out of print but can be found... well you know... on the internet 🏴‍☠️ It is super well written, it has a lot of well thought examples and in my experience most of it is perfectly transferable to PySide6.
L
Lorenzo CastellinoI think I found the culprit! I have some custom delegates on most of my models to accept both comma and dot decimal separated numbers and cohere both to dot notation. If I remove these delegates from the QTableView the problem disappears. It does not solve the layout problem on the left though...
Finally fixed! For further reference if anyone will ever end up in the same silly situation: QStyledItemDelegate is to be preferred over QItemDelagate in Views It was also written in the docs, burried in the QStyledItemDelegate description. My bad for not finding it out before! 😵‍💫 In 6.4 probably the windows style was not differing this much and as such in never came up as a problem
A
Qt for Python Development Notes mention new icons for the docs. Are there plans for high-res (preferably, vector) icons as the standard ones?
C
we were talking about updating the icons on doc.qt.io/qtforpython because the company is rolling a couple new ones
A
The notes just reminded me of an old question. I haven't meant to confuse you.
I still don't understand the question :( Was it maybe, that you would like a new high res version of the included QStyles ?
(I might need some coffee 💤)
C
if there is no QTBUG about it (because it's unrelated to PySide) you should create one
C
I see, then it's better to follow up that discussion with a QTBUG on JIRA, so the people behind that can take a look in case nothing exists.
A
QTBUG-52622 (fixed in 6.7.0) and QTBUG-71217 look somewhat similar, although not identical. I've filed QTBUG-131723, discovering PySide6.QtGui.QIcon.ThemeIcon along the way.
Calendar: November 2024
MoTuWeThFrSaSu1234586177891011212131415161718192201321322232425262728102930
Archive by month
Open in Telegram Каталог площадок Искать в ChatCrawler

A snapshot of an open public feed from the search index ChatCrawler — “Google for public Telegram”; refreshed as the venue is crawled. Times are UTC.

Public content only, official Telegram API. About · FAQ · What we do not do · Remove a page · Catalog