Skip to content

Qt for Python

For discussion and questions about Qt for Python (PySide & Shiboken)

3.3k Topics 14.8k Posts
  • How can I display an interactive family tree-style graph in PyQt6?

    Solved python qt for python
    4
    0 Votes
    4 Posts
    866 Views
    SGaistS
    The chart example is an interesting starting point.
  • What's a good efficient way to reverse a QMovie to play it backwards?

    Unsolved
    22
    0 Votes
    22 Posts
    5k Views
    SGaistS
    From the looks of it, it seems like having the animation available for both direction is the easy path.
  • PyQt6 sometimes uses Enum for integers - why?

    Unsolved
    4
    0 Votes
    4 Posts
    526 Views
    jeremy_kJ
    Changes in enums types has come up several times on the PyQt mailing list. You might find a better answer there, or a fix if the behavior is unintentional.
  • Very slow QTableView multi-select on PySide6 for large dataset

    Unsolved pyside python
    10
    0 Votes
    10 Posts
    2k Views
    JonBJ
    @jeremy_k Oh I agree, and I am guessing that is what is happening. I am not a regular Python/PySide user, only occasional. At design time in the IDE I thought if you click on Qt.ItemFlag.ItemIsSelectable is takes you straight to an imported file where that is defined as a number in an enum. Which makes you (me) kind of think that can be done as a constant. But I suppose that is wishful thinking. Assuming the slow lookup is indeed required, it makes one reflect at just how many seemingly innocuous expressions, especially Qt ones, may be dotted around the code which could be in this situation and could be optimized if the coder happens to notice ad think about them. Which the OP may wish to look into if speed is such an issue.
  • Failed to install QT designer using Python 3.12.3 (URGENT HELP)

    Unsolved
    4
    0 Votes
    4 Posts
    4k Views
    CristianMaureiraC
    @ajitjohn said in Failed to install QT designer using Python 3.12.3 (URGENT HELP): install pyside6 which is supported in python latest versions . Once you installed it search for pyside6-designer.exe in your pc My path is C:\Users\user\AppData\Local\Programs\Python\Python312\Scripts\pyside6-designer.exe Side comment. Please try to use virtual environments, and avoid installing Python Packages system-wide. It's the number 1 problem when people report that 'a module' doesn't work on Python projects. In each project, you could have one by: $ cd my_project my_project $ python -m venv venv my_project $ venv\Scripts\activate.bat # for cmd my_project (venv) $ python my_project (venv) $ pip install pyside6 Now the Python and Pip you have there is tied to that local venv.
  • Question about future of Qt3d with Python

    Unsolved
    2
    0 Votes
    2 Posts
    453 Views
    CristianMaureiraC
    Similarly to what was discussed in https://forum.qt.io/topic/159077/moving-away-from-qt3d-is-qtquick3d-ready/2 I'd say you might need to evaluate if you can: Rely on QtRHI for a new rendering ad-hoc system Check if Qt Quick 3D is enough for your project. Because it's not tied anymore to the qt meta repo, we might face issues from the Qt for Python side of things, and we might stop providing it in newer versions. So far, it's present in 6.9, and hopefully we can provide it for 6.10. Like any piece of software, being deprecated since 6.8, Qt3D will not get new features, or might not have active development. I wouldn't expect for it to go completely away in 1-2 years, but it's highly probable that it might be fully replaced in a few years. This is only my 'feeling' and not what it will happen.
  • Using websockets with QtAsyncio

    Unsolved
    1
    0 Votes
    1 Posts
    314 Views
    No one has replied
  • This topic is deleted!

    Unsolved
    8
    0 Votes
    8 Posts
    266 Views
  • Issue with virtualkeyboard and Pyside6

    Solved
    7
    0 Votes
    7 Posts
    2k Views
    F
    https://bugreports.qt.io/browse/QTBUG-137250
  • Pyside6 on embedded linux

    Unsolved
    3
    0 Votes
    3 Posts
    1k Views
    E
    Hi, Any news about that? I’m trying to use a Pyside6 app without desktop with KMS. It works with linuxfb but I need to rotate the screen and it’s not possible on that platform.
  • QMediaPlayer.setLoops(1) finishes current loop and does two more: is it normal?

    Unsolved
    6
    0 Votes
    6 Posts
    2k Views
    T
    Hi, I still have this issue with QMediaPlayer for the same purpose, using @jeertmans great manim-slides library. I would like to create a smooth transition "at the end of the next loop", but again the loop runs 2 more times before stopping. Any idea where this could come from? Thanks in advance
  • Python code for .ui file

    Unsolved
    3
    0 Votes
    3 Posts
    603 Views
    F
    See also https://doc.qt.io/qtforpython-6/tutorials/basictutorial/uifiles.html#tutorial-uifiles . If you create a Python project in Qt Creator, it will do this automatically when running the project.
  • QSqlQueryModel.setQuery() won´t accept strg

    Solved qt for python pyside
    5
    0 Votes
    5 Posts
    958 Views
    S
    Solved: Missing parenthesis in self.mod_Indication = QtSql.QSqlQueryModel correct: self.mod_Indication = QtSql.QSqlQueryModel()
  • Centered text in QGraphicsView

    Unsolved
    3
    0 Votes
    3 Posts
    633 Views
    S
    @SGaist said in Centered text in QGraphicsView: self.setSceneRect(0, 0, self.viewport().width(), self.viewport().height()) Thank you. Yes, that is indeed what was missing. I had this line before, but probably at the wrong place, so I discarded it.
  • Could not load the Qt platform plugin "windows" even though it was found

    Unsolved
    11
    0 Votes
    11 Posts
    2k Views
    jsulmJ
    @memyselfandi Important is to not to mix different Qt versions
  • How to acquire the frame colour?

    Unsolved
    1
    0 Votes
    1 Posts
    503 Views
    No one has replied
  • Pyqt5 : finding the selection in a qTextEdit

    Unsolved
    2
    0 Votes
    2 Posts
    406 Views
    SGaistS
    Hi and welcome to devnet, Which position do you mean ? In widget coordinates ? The number of chars from the start of the text ?
  • QGraphicsLayout not properly resizing to change of content

    Unsolved
    5
    0 Votes
    5 Posts
    2k Views
    1
    14/5000 So in the end, in what way was it solved?
  • Unable to run a Pyside6 application in QtCreator

    Solved
    7
    0 Votes
    7 Posts
    3k Views
    A
    I know this post is old, but in my case when I got this error, I was missing the tomlkit module in my python installation.
  • Why does PySide6 need glibc 2.39 since 6.8.1 on aarch64?

    Solved
    4
    0 Votes
    4 Posts
    910 Views
    A
    After doing some digging I found this thread. My Python project on Raspberry Pi OS requires PySide6==6.8.3 or later which depends on glibc 2.39 but RPiOS only provides 2.36. I tried building from source and containerising it with chroot but neither produced the proper result. I'm going try switching to Ubuntu Server 24.04 for Raspberry Pi and hope for the best seeing as it will have the proper glibc version. If I don't report back within the week assume that it worked.