I want to add a submenu in my context menu which is created like this: self.widget_alignment.setContextMenuPolicy(Qt.ActionsContextMenu)
Yes, I know this sounds crazy. But here\'s the situation. I composed a minimal code reproducing the bug. The code creates main window with QTabWidget, which, in turn, has one tab with QListView and a
I have a QTreewidget that works fine if I have just one level on my treelist. If I decide to add child sublevels, it gives me an error. Here is the code, that works nice only without the \"childs\" li
I trying to do a Qtreewidget to attend a customer design suggestion. I am coding it on QtPython. I did a first try using Qt Designer, then generated the code. But when I try to run it, an error comes
I built a rather simple application in Python 3.1 using PyQt4. Being done, I want the application to be distributed to computers without either of those installed.
I currently have a PIL Image that I\'d like to display on a PyQt window. I know this must be easy, but I can\'t find anywhere how to do it. Could anyone give me a hand on this?
I\'m working on a small project in QT (well, pyQT4 actually, but it shouldn\'t matter too much) and I\'ve run into the following problem. I have a QTableView with several rows and columns. I have set
I have a fairly simple app built with pyqt4. I wanted to debug one of the functions connected to one of the buttons in my app. However,开发者_运维问答 when I do the following
i want a table cell to have just an icon without any text. i see the QTableWidgetItem class has a method to align the text (int QTableWidgetItem::textAlignment () const)
I\'m trying to create a QPushButton that\'s just got an icon and a constant background color. So that I can swap out the icon when the user clicks it, without any other apparent effects (this is for a