Skip to content

Qt for Python

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

3.3k Topics 14.5k Posts
  • Question about future of Qt3d with Python

    Unsolved about 15 hours ago
    0 Votes
    1 Posts
    23 Views
    No one has replied
  • Using websockets with QtAsyncio

    Unsolved a day ago
    0 Votes
    1 Posts
    45 Views
    No one has replied
  • This topic is deleted!

    Unsolved 6 days ago
    0 Votes
    8 Posts
    265 Views
  • 0 Votes
    3 Posts
    2k Views
    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
  • 0 Votes
    2 Posts
    91 Views
    Hi and welcome to devnet, One thing you could use is QTransposeProxyModel to turn the model 90 degrees. However it will likely not show things as you want. The second option is for you to implement your own view that draws cells the way you want.
  • Issue with virtualkeyboard and Pyside6

    Solved 15 days ago
    0 Votes
    7 Posts
    368 Views
    https://bugreports.qt.io/browse/QTBUG-137250
  • Pyside6 on embedded linux

    Unsolved 14 Oct 2024, 15:11
    0 Votes
    3 Posts
    453 Views
    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.
  • 0 Votes
    6 Posts
    826 Views
    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 17 days ago
    0 Votes
    3 Posts
    163 Views
    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 21 days ago
    0 Votes
    5 Posts
    228 Views
    Solved: Missing parenthesis in self.mod_Indication = QtSql.QSqlQueryModel correct: self.mod_Indication = QtSql.QSqlQueryModel()
  • Centered text in QGraphicsView

    Unsolved 23 days ago
    0 Votes
    3 Posts
    179 Views
    @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.
  • 0 Votes
    11 Posts
    571 Views
    @memyselfandi Important is to not to mix different Qt versions
  • How to acquire the frame colour?

    Unsolved 25 days ago
    0 Votes
    1 Posts
    107 Views
    No one has replied
  • Pyqt5 : finding the selection in a qTextEdit

    Unsolved 25 days ago
    0 Votes
    2 Posts
    151 Views
    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 24 Jun 2020, 08:27
    0 Votes
    5 Posts
    939 Views
    14/5000 So in the end, in what way was it solved?
  • Unable to run a Pyside6 application in QtCreator

    Solved 4 Jan 2023, 21:13
    0 Votes
    7 Posts
    2k Views
    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 Mar 2025, 10:45
    0 Votes
    4 Posts
    370 Views
    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.
  • Main window always opens on 'incorrect' monitor

    Solved 5 May 2025, 16:18
    0 Votes
    4 Posts
    247 Views
    Hi All, first things first, I am stuck on python 3.7.3. I tried upgrading to the latest supported version of pyside6 which seems to be 6.5.3. This seems to have fixed my issue. I did make a python version of @CassD script and using pyside 6.2.4, I get the following output manufacturer : model : Screen Name : LF24T450F Screen Size : PySide6.QtCore.QSize(1920, 1080) While using pyside 6.5.3, I get the following manufacturer : Samsung Electric Company model : LF24T450F Screen Name : LF24T450F (1) Screen Size : PySide6.QtCore.QSize(1920, 1080) manufacturer : Samsung Electric Company model : LF24T450F Screen Name : LF24T450F (2) Screen Size : PySide6.QtCore.QSize(1920, 1080) So it seems version 6.2.4 does have some issues detecting screens. In any case, my issue is now resolved, thanks.
  • Get XY Coordinates of QTextCursor

    Solved 6 May 2025, 17:36
    0 Votes
    3 Posts
    217 Views
    @IgKh Thanks so much for your direction. That was exactly what I needed! Here is the code I used: #####determine the cursor position to scroll the scrollArea as needed #get the blockBoundingRect of the block that holds the QTextCursor blockRect = self.doc.documentLayout().blockBoundingRect(self.cur.block()) #get the QTextLine that holds the QTextCursor cursorLine = self.cur.block().layout().lineForTextPosition(self.cur.positionInBlock()) #get the QTextLine's naturalTextRect so we can get the Y center of the QTextCursor self.cursorLineRect = cursorLine.naturalTextRect() #translate the cursorLineRect to the blockRect self.cursorLineRect.translate(blockRect.x(),blockRect.y()) #get the approximate X position of the cursor cursorToX = cursorLine.cursorToX(self.cur.positionInBlock(), QTextLine.Edge.Leading) #create a QPointF from the cursorToX posistion and the center of the CursorLineRect self.cursorPoint=QPointF(float(cursorToX[0])+blockRect.x(),self.cursorLineRect.center().y()) #instruct the QScrollArea to keep the QPointF visible with 100px padding self.main_window.scrollArea.ensureVisible(self.cursorPoint.x(), self.cursorPoint.y(),100,100) Then to confirm my computation was correct I painted self.cursorPoint using painter.drawPoint(self.cursorPoint) . You can see the little red dot following the text cursor in the screenshot below. Your guidance solved my problem 100% [image: 76f8252d-e31d-406b-8d53-f90af5c226ad.JPG]
  • Is building for iOS supported?

    Unsolved 7 Apr 2025, 05:18
    0 Votes
    7 Posts
    418 Views
    Ah ok, thanks for the ticket. Watched and voted. So it looks like it is a question of priority and bandwidth. I have not played with pyside6-deploy for the other platforms yet. I suppose that would be the place to start before looking for the problems arising from applying the same technique to iOS. Is there a published development plan where this falls for the Qt Company's internal developer resources?