Is using from __feature__ import true_property incompatible with loading Ui types via PySide6.QtUiTools.loadUiType?
When combining both, I always get a traceback ending with
self.ui.setupUi(self)
File "<stdin>", line 24, in setupUi
TypeError: 'str' object is not callable
It seems that the type object is interpreted as having true_property enabled, while the generator does not create appropriate code for that.
21 August 2023
ThomasIs using from __feature__ import true_property incompatible with loading Ui types via PySide6.QtUiTools.loadUiType?
When combining both, I always get a traceback ending with
self.ui.setupUi(self)
File "<stdin>", line 24, in setupUi
TypeError: 'str' object is not callable
It seems that the type ob
This seems to be a bug. There is already a bug report on it - https://bugreports.qt.io/browse/PYSIDE-2416
You can follow it for further updates on the issue.
23 August 2023
Replymessage unavailable
Ссылка
click to show
click to show
Check if the Joystick.event catches a QTouchEvent (Qt docs, PySide6 docs). I haven't used it, so I can't help more.
Anton YablokovCheck if the Joystick.event catches a QTouchEvent (Qt docs, PySide6 docs). I haven't used it, so I can't help more.
Thank you, I was just going through the document.
"MultiPointTouchArea QML Type"
Isn't there a similar structure in Qt Widgets?
WA_ or AA_ flags for multi-touch?
@EnesKucukk please use external services to share code 👍 otherwise then we have walls of code here and on IRC each line will be a message, so it's quite spammy. Maybe dpaste for example :)
Cristián 🥑@EnesKucukk please use external services to share code 👍 otherwise then we have walls of code here and on IRC each line will be a message, so it's quite spammy. Maybe dpaste for example :)
Sorry.
https://dpaste.org/Sxfg5
With this code, I create 2 joysticks in a mainwindow and they move smoothly with mouse events, but I want to be able to control both of them on the touch screen at the same time, how can I do this? (Touch screen has multi-touch feature)
Enes KucukSorry.
https://dpaste.org/Sxfg5
With this code, I create 2 joysticks in a mainwindow and they move smoothly with mouse events, but I want to be able to control both of them on the touch screen at the same time, how can I do this? (Touch screen has multi-touch feature)
You want to look at the QTouchEvent docs. Specifically you want to enable touch events for the widgets you want to interpret the touch events with WA_AcceptTouchEvents.
The blurb after talking about the acceptTouchEvents attribute only applies to QGraphicsView derived items, which you're likely not using. On the C++ side of the docs, that is a link pointing to the QGraphicsItem::setAcceptTouchEvents method. No such link exists in the python docs due to doc autogeneration limits. Might be worthy of reporting a documentation bug for. It's mostly clear, but some of those links are important for understanding the full picture.
Huh. I don't find a touch example, at least combing through the names of the examples. Sounds like should add one.
https://doc.qt.io/qtforpython-6/PySide6/QtGui/QTouchEvent.html
Enes Kucuk@Keithel and @StSav012 thank you so much
I was looking for an example too but couldn't find it. I will continue to review the documentation.
You could also report a bug on a missing touch example (and if you want, you could contribute such example to the codebase once you figure it all out!).
I updated the code and it worked smoothly for me.
https://dpaste.org/MsHsE#L10,11,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75
25 August 2023
29 August 2023
30 August 2023
Ссылка
click to show
click to show
Are the kanban entries stored within a Qt Model, like QTableModel? Then take a look at https://doc.qt.io/qt-6/qcolumnview.html, maybe that is applicable for you and can simplify the view a lot. You just have to provide a Delegate to render individual entries. (There are some examples for this in the Qt docs.)
Павелvertically within a column
Hmm. I’m not that proficient in those manual layouts.
Have you set the internal widget via setWidget()? Also "doesn't work" with no source code is quite vague. Do the internal widgets show up?
Try setting the verticalScrollBarPolicy of the QScrollAreas to Qt.ScrollBarPolicy.ScrollBarAlwaysVisible. That may reveal the source of the "doesn't work" by reasoning on the shown behavior.
Павелthat is, I need to add a QColumnview and already place a QSrollArea on it?
For the UI layout, you would do
QMainWindow
QColumnView
And that's it.
Then simply call setModel() on the QColumnView, and it will render the model column wise
Ссылка
click to show
click to show
This should work, if your data is already in a Qt model, so you can apply https://doc.qt.io/qt-6/model-view-programming.html. If not, this approach may require larger refactorings and re-writing of stuff.
In that case, it may be easier to debug your initial code instead.