Skip to content

Qt for Python

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

3.3k Topics 14.7k Posts
  • Qt Designer - unable to replicate qtdesigner-manual form

    Unsolved
    9
    0 Votes
    9 Posts
    252 Views
    JonBJ
    @ReyCBXZRX said in Qt Designer - unable to replicate qtdesigner-manual form: The Qt Designer ver I'm using has no QTextEdit All versions of Designer offer a QTextEdit widget along with all the other widgets. but has a plainLineEdit obj that when height resized shows scrollbar I do not know what "plainLineEdit obj" is. Qt has QTextEdit and QPlainTextEdit, both of which are multiline, can be resized vertically, and can show scrollbars (both vertically or horizontally). OTOH there is also a QLineEdit widget which is single-line, does not show scrollbars and cannot be resized vertically. line edit where label size was touching or extending into the lineEdit field I do not know what you are saying or doing here. It sounds a bit like you are using "absolute positioning" of widgets by dragging them around, not sure. If so you should not be using that: you want to use layouts, that will position your widgets so that e.g. they do not "touch or overlap" and will move them around for resizing.
  • How can I call the const method variant on a Qt object from Python?

    Unsolved qt for python pyside
    3
    0 Votes
    3 Posts
    82 Views
    K
    Thanks for clarifying. I suspected this would be the case but I thought it was worth asking the question.
  • Python 3.14 timeline

    Unsolved
    4
    0 Votes
    4 Posts
    144 Views
    F
    Qt for Python 6.10.1 /6.11 will support Python 3.14
  • QGraphicsAnchorLayout quirks and UI bugs.

    Unsolved pyside2 qt for python
    1
    0 Votes
    1 Posts
    46 Views
    No one has replied
  • QtQuick.VectorImage in PySide6

    Unsolved
    8
    0 Votes
    8 Posts
    454 Views
    SGaistS
    @usymbiote you can check the bug report system. If there's nothing related yet, please open a new ticket.
  • looking for a code editor widget for Qt for Python

    Unsolved
    9
    1 Votes
    9 Posts
    2k Views
    RokeJulianLockhartR
    @nutrx, work is being made toward this at invent.kde.org/frameworks/ktexteditor/-/issues/24 and its superordinate issue.
  • No suitable kits found

    Unsolved
    2
    0 Votes
    2 Posts
    115 Views
    jsulmJ
    @Milosz said in No suitable kits found: How to fix the problem? By manually adding your Python installation in Python/Interpreter in QtCreator settings.
  • PySide vs PyQt ui file load.

    Unsolved pyside
    8
    0 Votes
    8 Posts
    495 Views
    JonBJ
    @swoiwode Yes, you have made the right changes! Note how you changed from PyQt6.uic.loadUi(ui_file, self), which loaded into self and gave you self.label etc. over to self.ui = PySide6.QtUiTools.QUiLoader().load(ui_file), which returned into a newly created self.ui (or whatever you choose to call it) and hence gave you self.ui.label etc. It's just a different way of doing things, and PySide just does not offer that parameter or loading into self. Looking around at what examples there are on the web I found that actually even in PyQt more people had worked from self.ui = PyQt6.uic.loadUi(ui_file) which is also available and similar to the PySide way than that "non-standard" PyQt6.uic.loadUi(ui_file, self) which the code you inherited had chosen to use. Honestly you came across one of the few difference between PyQt and PySide right from the outset in the small script you were working on. 99% of the time you should find that same code simply works from PyQt to PySide.
  • Pyside on Boot2Qt in RaspberryPi5

    Unsolved
    2
    0 Votes
    2 Posts
    98 Views
    jsulmJ
    @Pritha-Suresh Since you're accessing the device via ssh you need to forward X11 if you want to run a GUI application this way, see -X ssh parameter, Also the error you get hints that you did not install X11 on the device.
  • Font clipping of custom Italic fonts

    Unsolved
    3
    0 Votes
    3 Posts
    172 Views
    M
    This was with PySide6 6.9.2, I also tried with 6.10.0 The OS is Windows 10 22H2
  • PySide on Phytec i.MX Pollux Board — Licensing and Platform Support

    Unsolved
    3
    0 Votes
    3 Posts
    238 Views
    P
    Hi! Thank you for the quick response. We are not going for deployments as of now. We will be showcasing the PySide capabalities as a product demo on Phytec Board. So two points from your response, Do we need commercial license for Pyside demo on Phytec board? Can I get more info on LGPLv3 and GPLv3? Thanks in advance!
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    1 Views
    No one has replied
  • PyQt6: QSvgWidget does not render when loading a QByteArray instead of a file

    Unsolved
    14
    0 Votes
    14 Posts
    795 Views
    JonBJ
    @ErwanM Yes, the ones there using the R"(-type construct are shown having leading & trailing newlines which will be in the resulting string. One guy does even say All the spaces and indentation and the newlines in the string are preserved. That's up to them for their examples where it doesn't matter. In your case of <?xml we simply cannot afford that. The one which starts std::string index_html=R"html( <!DOCTYPE html> would have a newline before the <!DOCTYPE html>, but maybe that is allowed, unlike for <?xml. Or maybe it isn't allowed either and they didn't check! Anyway, there we are, that's just how it is.
  • This topic is deleted!

    Solved
    4
    0 Votes
    4 Posts
    79 Views
  • 0 Votes
    5 Posts
    752 Views
    V
    @Blady said in PySide6 with Python C API: EXC_BAD_ACCESS error when calling a method with inherited class from QRasterWindow: Hi and thanks for your welcome. Good question, I'm trying to create Qt bindings for Ada language. Some attempts with C++ were failing due to some C++ subtleties. I'm interested in helping figure out and fix the C++ subtleties. It would seem rather reasonable to do such bridging between C++ and Ada without having to resort to a completely-interpreted language.
  • QIcon crop in function of scale of the screen set in Windows settings

    Unsolved
    8
    0 Votes
    8 Posts
    300 Views
    Christian EhrlicherC
    I would check the pixmap/image returned in _extract_icon_from_exe() if it is correct - simply save it to a png and take a look.
  • QStyledItemDelegate doesn't move with its QTreeView column

    Unsolved pyside python qt for python
    3
    0 Votes
    3 Posts
    158 Views
    jeremy_kJ
    Another option: Use a single custom delegate for the entire view, and look up the screen position of the index to determine the desired drawing style.
  • 0 Votes
    13 Posts
    708 Views
    D
    @JonB Haha yeah I might as well end up learning C++ for using Qt
  • QIcon crop when drag and display it in a QScrollArea

    Solved
    2
    0 Votes
    2 Posts
    314 Views
    SGaistS
    Hi and welcome to devnet, Why are you doing all these scaling operation to, in the end, not used that scaled pixmap ? In any case, you should start by making it work without particular scaling or fixed size. Once you have ensured that you have the icon properly working, you can start scaling the icon, and only once you are sure you have what you want, fix the size of the QLabel. That said, why not use a QListView/QListWidget to show these icon.
  • qtCreator - debug python scripts?

    Unsolved qt for python
    2
    0 Votes
    2 Posts
    405 Views
    F
    See https://doc.qt.io/qtcreator/creator-python-development.html ; you need to create a Python project first.