Skip to content

Qt for Python

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

3.3k Topics 14.5k Posts
  • Pyside6 failed in python 3.11 embedded version

    Unsolved
    7
    0 Votes
    7 Posts
    84 Views
    SGaistS
    Does your Windows 10 version match the minimal requirements described here ?
  • Using Regular Asyncio APIs with QtAsyncio Event Loop

    Unsolved
    2
    0 Votes
    2 Posts
    9 Views
    SGaistS
    Hi and welcome to devnet, Can you provide a minimal script showing what you want to achieve ? AFAIK (and I have only tested things lightly with this module), you have the set of minimal functions that are related to the handling of asyncio with the Qt event loop. For the rest, there's no reimplementation of the await metho.
  • Communication between ui.qml, .qml and .py

    Unsolved
    2
    0 Votes
    2 Posts
    28 Views
    F
    Ir seems the @QmlElement decorator is missing (see Tutorial , QmlElement and one example of the tutorial examples.
  • shiboken6.exe crashing

    Unsolved
    13
    0 Votes
    13 Posts
    634 Views
    SGaistS
    Sorry I don't have a Windows machine at hand, I also tried on Linux with Python 3.13.5 and a fresh install of shiboken-generator (6.9.1 at the time of writing) and it all worked well. How did you setup Python on Windows ?
  • Design mode does not work for Qt for Python Qt Quick App

    Unsolved
    4
    0 Votes
    4 Posts
    88 Views
    P
    @jsulm Probably Project screenshot will also be helpful [image: a61b54a7-05a5-43fb-90bc-4f777306a77f.png]
  • Pyside6 build fails on Windows ARM64

    Unsolved
    2
    0 Votes
    2 Posts
    81 Views
    F
    Please try 6.9.1; 6.8 might be too old for that.
  • How to add ellipses to the end of a QTreeWidgetItem in PyQt6?

    Unsolved
    2
    0 Votes
    2 Posts
    80 Views
    jsulmJ
    @wayfarer You're setting font size in setText - are you sure it is same as what was set before when elidedText was calculated? Regarding resizing the window: you will need to do these calculations again when the window is resized, currently you don't do that.
  • How can I display an interactive family tree-style graph in PyQt6?

    Unsolved python qt for python
    4
    0 Votes
    4 Posts
    372 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
    2k 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
    238 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.
  • Updating to 6.9.1 breaks code which work under 6.9.0

    Unsolved
    5
    1 Votes
    5 Posts
    409 Views
    F
    There was a regression related to QGraphicsView in 6.9.1, https://bugreports.qt.io/browse/PYSIDE-3115 , this could be the reason. It will hopefully again work in 6.9.2.
  • Very slow QTableView multi-select on PySide6 for large dataset

    Unsolved pyside python
    10
    0 Votes
    10 Posts
    597 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.
  • Is building for iOS supported?

    Unsolved
    10
    0 Votes
    10 Posts
    1k Views
    CristianMaureiraC
    Externally, no, but you can always follow the meeting notes: https://wiki.qt.io/Qt_for_Python_Development_Notes you can see iOS support is being actively investigated.
  • Failed to install QT designer using Python 3.12.3 (URGENT HELP)

    Unsolved
    4
    0 Votes
    4 Posts
    2k 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
    281 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
    170 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
    869 Views
    F
    https://bugreports.qt.io/browse/QTBUG-137250
  • Pyside6 on embedded linux

    Unsolved
    3
    0 Votes
    3 Posts
    751 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