Skip to content

Qt for Python

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

3.3k Topics 14.6k Posts
  • Populate a list of selectable images in a window

    Unsolved qt for python python
    1
    0 Votes
    1 Posts
    359 Views
    No one has replied
  • simple PySide2 QWidgets app loads Qt5Qml.dll, it should not load

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

    Unsolved
    1
    0 Votes
    1 Posts
    33 Views
    No one has replied
  • Embed python editor debugger in QT/C++ application

    Unsolved
    4
    0 Votes
    4 Posts
    2k Views
    L
    Thanks for the replies.Yes we are looking for something to embed directly. Using a separate IDE is possible ( we have done it) , but it is a bit awkward for users who are often not Python jedi-masters...
  • Possible bug where keyword arguments don't work in PySide2 when they do in PyQt5

    Unsolved
    5
    0 Votes
    5 Posts
    1k Views
    P
    That still has the same problem, just did a quick test and it seems PySide 1 has the same behaviour. Doesn't work: aspectMode=QtCore.Qt.IgnoreAspectRatio, transformMode=QtCore.Qt.SmoothTransformation Works: aspectMode=QtCore.Qt.IgnoreAspectRatio, mode=QtCore.Qt.SmoothTransformation It's not a huge issue, just seems a bit inconsistent, especially when it says it's a QtCore.Qt.TransformationMode parameter in tracebacks. (I'm lucky I noticed this reply just now haha, turns out I'd accidentally deleted the UI code yesterday, fortunately was still in my undo history)
  • pyside2 qPushButton shape

    Solved pyside2 python qt for python
    10
    0 Votes
    10 Posts
    5k Views
    mrjjM
    @blossomsg Hi That is fine, please marked as solved then :)
  • Embed PyQt in C++/C

    Unsolved
    2
    1 Votes
    2 Posts
    945 Views
    L
    Have a look at PythonQT
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    15 Views
    No one has replied
  • Qt 5.12: QAbstractItemModel::createIndex method input parameter

    Moved Unsolved
    4
    0 Votes
    4 Posts
    1k Views
    SGaistS
    Please, don't forget to update this thread with the result or post a link to the email conversation.
  • Password input on a treewidgetitem

    Unsolved
    3
    0 Votes
    3 Posts
    926 Views
    VRoninV
    This question is identical to https://forum.qt.io/topic/97835/custom-qtablewidgetitem You just need to translate the C++ code of the solution to python, should be easy
  • 0 Votes
    1 Posts
    1k Views
    No one has replied
  • Issues with setting checkboxes in QSqlTableModel

    Moved Solved
    4
    0 Votes
    4 Posts
    1k Views
    -
    So I took a look at the QSqlTableModel C++ source code, and I noticed that there's an if statement in there that checks if the index has the flag ItemIsEditable set. If it isn't, then it returns false. Now in the example I was adapting from (Which was this one that is subclassing a QSortFilterProxyModel rather than QSqlTableModel, and was using boolean values and doing other things as well) did NOT set that flag in the overridden flags() method! I assume that's done somewhere else, but I only adapted what I needed. I didn't even know it was a flag you could set since I've never really done this before. Should've looked more carefully at the example I guess... Anyway, after setting that flag in the flags method it now works as expected. Here's what the method is looking like now if anyone is interested: def flags(self, index): if self.headerData(index.column(), Qt.Horizontal) in ("Game", "Console", "Accessory", "Box", "Manual"): return Qt.ItemIsUserCheckable | Qt.ItemIsSelectable | Qt.ItemIsEnabled | Qt.ItemIsEditable else: return super().flags(index) You can also set the return statement to simply: return super().flags(index) | Qt.ItemIsUserCheckable And it'll work just the same. That's actually probably a better/cleaner way of doing it now that I think about it.
  • Internalization QML

    Solved
    5
    0 Votes
    5 Posts
    1k Views
    I
    Thank. Yes thanks, it became clear to me how to work with application internalization. Hopefully, Pyside2 will be able to fully implement QML internalization.
  • Raspberry Pi with touchscreen and Qt PySide2, Raspbian Lite compatible?

    Unsolved
    2
    0 Votes
    2 Posts
    2k Views
    KazuoAsanoK
    In the case of Qt5,Qt Platform Abstraction supports other than X11. For example,EGLFS appears in the sample as well. Qt Documentation : Qt for Embedded Linux Perhaps it may be necessary to rebuild Qtlibrary. When using Yocto, the layer of meta-qt5-rpi-eglfs is useful. (However, this is unofficial, and I doesn't tried it with Qt 5.12. Therefore, it may be a build error.) The below wiki post might be helpful to you. Qt wiki : RaspberryPi2EGLFS
  • QtWebEngine programms arguments

    Unsolved
    1
    0 Votes
    1 Posts
    445 Views
    No one has replied
  • How to install PySide2 with Qt 5.12

    Solved
    3
    0 Votes
    3 Posts
    1k Views
    C
    well, it looks like they have just released : http://blog.qt.io/blog/2018/12/18/qt-python-5-12-released/
  • Pyqt5 code not working

    Unsolved
    4
    0 Votes
    4 Posts
    3k Views
    tchachkiiT
    @ewerybody thank you so much! apologies for the late reply, I didn't get the notifications. I'll make those changes and see how it works, thank you so much, I would never have been able to make those changes myself
  • PyQt

    Moved Unsolved
    2
    0 Votes
    2 Posts
    687 Views
    dheerendraD
    Welcome to the group. You can do it. If you give more details it helps to give better answer.
  • QShortcut on QDesktopWidget disfunctional in PySide2

    Unsolved qt for python python pyside2 pyside
    1
    0 Votes
    1 Posts
    864 Views
    No one has replied
  • 0 Votes
    1 Posts
    647 Views
    No one has replied