Skip to content

Qt for Python

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

3.3k Topics 14.6k Posts
  • Stacked Widget Remove Buttons(Previous & Next)

    Solved
    8
    0 Votes
    8 Posts
    2k Views
    JonBJ
    @AlperenCvs Those links show that you can Preview a Form from Designer to see what it will look at runtime. So you would know the < > buttons would not be there when you later run your program. There is a menu item as shown in those link, or it looks like it is either Ctrl+R or Alt+Shift+R key presses.
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    5 Views
    No one has replied
  • Y axis fluctuating when setLogMode(y=True) in PyQtGraph

    Unsolved
    2
    0 Votes
    2 Posts
    215 Views
    SGaistS
    Hi and welcome to devnet, This is a question you should bring to the PyQtGraph folks.
  • Bug: QFileSystemModel doesn't display file icons.

    Solved
    5
    0 Votes
    5 Posts
    489 Views
    Q
    @friedemannkleint Thank you.
  • how to set hover effect on hovered row?

    Unsolved
    1
    0 Votes
    1 Posts
    183 Views
    No one has replied
  • Text/Content Select Option is possible in the QGraphicsView

    Unsolved
    9
    0 Votes
    9 Posts
    686 Views
    N
    @jsulm... Thanks for your valuable time.
  • QMenu can not show with PySide6

    Solved
    5
    0 Votes
    5 Posts
    610 Views
    feiyuhuahuoF
    OK, as @jsulm says, it works, connect customContextMenuRequested to the expected widget, not the class itself.
  • PyQt Application crashing

    Unsolved
    8
    0 Votes
    8 Posts
    835 Views
    jsulmJ
    @Adarsh_pandey If you're running your app in debugger and it crashes you should have a stack trace which can help to identify the issue. Simply saying it is crashing is not very helpful.
  • Why does calling dynamicCall and querySubObject always get an error in QAxWidget?

    Unsolved
    10
    0 Votes
    10 Posts
    927 Views
    JonBJ
    @howerl There are no docs with extra details.... Things are supposed to work in principle as from C++, and the PySide docs are mostly translations from that.
  • QCombobox unkown top and botton scrollers

    Unsolved
    4
    0 Votes
    4 Posts
    412 Views
    guimunkeyG
    @SGaist Cheers, So I made a simple test and it looks to be a Centos issue. In this example im using PySide2, 5.15.2.1 with windows 10 and Centos 7. [image: 56ea7426-42ba-4ea0-b6ff-100f0590a676.jpg] Is this something native to the Centos desktop? In any case the addition of self.setStyleSheet('QComboBox {combobox-popup: 0;}') in the example removes the two top and bottom arrows. Id just like to understand what exactly is going on here... Here is the simple example if you have access to linux: import sys from PySide2.QtWidgets import QApplication, QMainWindow, QVBoxLayout, QWidget, QComboBox from PySide2 import QtCore class ComboBoxPop(QComboBox): def showPopup(self): item_count = self.count() super().showPopup() container = self.view().parentWidget() if item_count > 20: self.view().setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOn) container.setFixedHeight(150) gp = self.mapToGlobal(self.rect().bottomLeft()) container.move(gp) class MainWindow(QMainWindow): def __init__(self): super().__init__() self.setGeometry(100, 100, 400, 200) self.central_widget = QWidget() self.setCentralWidget(self.central_widget) self.layout = QVBoxLayout() self.central_widget.setLayout(self.layout) self.comboBox = ComboBoxPop() self.comboBox.addItems([f'item_{i}' for i in range(40)]) self.layout.addWidget(self.comboBox) # linux style to remove scrolling self.setStyleSheet('QComboBox {combobox-popup: 0;}') def main(): app = QApplication(sys.argv) window = MainWindow() window.show() sys.exit(app.exec_()) if __name__ == "__main__": main()
  • Why is this happening in VSCode?

    Unsolved
    1
    0 Votes
    1 Posts
    324 Views
    No one has replied
  • Converting c++ into Python

    Unsolved
    3
    0 Votes
    3 Posts
    733 Views
    CristianMaureiraC
    Hello @Pythonic-person In the Qt for Python repository, we have an internal tool that's for sure not ready for production, but it help us to transform some C++ code to Python: https://code.qt.io/cgit/pyside/pyside-setup.git/tree/tools/qtcpp2py.py I hope it helps with future projects :)
  • Rendering SVG images in QIcons natively not supported

    Moved Unsolved
    7
    0 Votes
    7 Posts
    3k Views
    G
    Simply import the library : from PySide6 import QtSvg
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    19 Views
    No one has replied
  • Learning Path

    Unsolved
    5
    0 Votes
    5 Posts
    417 Views
    A
    @SGaist I am truly grateful for your assistance, thank you very much
  • Python templates in Qt Creator

    Unsolved qt for python python
    1
    1 Votes
    1 Posts
    427 Views
    No one has replied
  • embedding unity player with pyqt5

    Unsolved
    1
    0 Votes
    1 Posts
    262 Views
    No one has replied
  • QGraphicsView free camera

    Solved pyside
    3
    0 Votes
    3 Posts
    357 Views
    F
    @Munter Thank you for your reply. Can I ask specifically in what direction I should go, what can I use to create a custom viewport?
  • How to duplicate video output with PySide6?

    Solved
    3
    0 Votes
    3 Posts
    572 Views
    J
    @JonB Storing video sinks inside variables and using a lambda did the job! Thanks :D
  • Qt Creator, pyside6, QML debuggger

    Unsolved
    10
    0 Votes
    10 Posts
    2k Views
    F
    Whether Qt Creator shows sth in the console might be influenced by the buffered output option of python3 (pass -u to python3 [-u : force the stdout and stderr streams to be unbuffered, or set PYTHONUNBUFFERED=1]). This should also be available in the run settings. Are these breakpoints from C++ maybe - Qt Creator sometimes remembers breakpoints.