ChatCrawlersearch across public Telegram Open the app
Q

Qt for Python (PySide/Shiboken)

386 members
4 August 2026
T
Just use a QWidget with a QGridLayout, place all your labels or buttons, and then assign the image as the widget background.
(irc) uuuuu: luziferius: when I specify the background in stylesheet it's blank, when I specify a pixmap label without adding the widget to layout the background displays. No other widget is displaying. How can I force debugging messages with stylesheet because I think it may not liking the full path
P
(irc) uuuuu: even with grid, I'm going to need more granularity. There may not be enough rows in grid
I'm a bit out of my knowledge zone with those follow-ups. When the grid layout doesn't work for you, then manual positioning may be the only solution. How difficult that is depends on whether the widget should be resizable or not. You'd have to customize the event handlnig and re-calculate sizes and positions whenever a resize event arrives. And maybe even handle style change events, since different styles may have different widget margins that could affect the inner widget's drawing area
T
If the same path resolves correctly for the label, but not for the stylesheet, I'd assume an encoding or escaping issue within the stylesheet.
P
(irc) uuuuu: luziferius: I had to convert to forward slash. I got picture to show up with stylesheet using border-image: url(<url>) 0 0 0 0 stretch stretch but it's very small in the corner of the window. Attempting background image yielded no image but just white but the same small size in the corner
T
I haven't worked with CSS styling in Qt, so I'm not sure how to proceed from here. I linked the CSS docs before, maybe there's a stretch flag in there you have to set?
P
(irc) uuuuu: luziferius I think the problem is style sheet is cascading so it is applying the setting to all the qwidgets. You can specify the specific object you want it to apply to with # but I'm not sure what to specify there since I'm just doing this in a new window which is just inherit QWidget. Any chance you would know how to specify the current object because #self isn't working
5 August 2026
Ссылка
click to show
You can set the style on each widget: https://doc.qt.io/qt-6/qwidget.html#styleSheet-prop Not sure if that still cascades. At worst, you can set the default style sheet to each child widget after setting the style on the container. QWidget has a method for finding all children, so at least that part is easy
T
Also, I think there's a stylesheet example in the Qt docs that does use background images on widgets.
C
Stylesheets for Widgets are not a complete solution, and there are many broken bits here and there. When wanting to customize applications better, the solution is QtQuick. If you cannot move away from Qt Widgets, you might need to do like many projects (including telegram desktop) where you style the widgets directly and create your own stuff like QFancyPushButton and use that instead, for example: https://github.com/laserpants/qt-material-widgets
24 August 2026
P
(irc) nande: Is there a version of pyside that supports python free-threading version?
C
fixed, and in any case, remember you can edit the wiki as well, then we can moderate the changes and accept it!
26 August 2026
P
(irc) nande: anyone knows about the plans of supporting python free-threading with pyside?
28 August 2026
P
(irc) nande: hello, anyone knows the plans or status of pyside with python freethread?
29 August 2026
I
Hello, am a beginner learning QT framework, does the framework work with other programming languages like python or it's solely for c++? Pls I need some clarity
1 September 2026
└─[ Error, check your command]> uv add -r .\requirements.txt -p 3.12 error: Failed to parse: `pyproject.toml` Caused by: TOML parse error at line 2, column 8 | 2 | name = "PySide QtQuick Project" | ^^^^^^^^^^^^^^^^^^^^^^^^ Not a valid package or extra name: "PySide QtQuick Project". Names must start and end with a letter or digit and may only contain -, _, ., and alphanumeric characters.
P
pyproject.toml: [project] name = "PySide QtQuick Project" [tool.pyside6-project] files = ["main.py", "main.qml"]
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