PyQt
Qt: open resizable window with recommended width
How can I open a dialog window in Qt/PyQt with a recommended size which can be shrinked 开发者_运维技巧and expanded ? I find only methods for setting a miniumSize, but not to set a actual size.QWidget[详细]
2023-04-04 08:08 分类:问答Destructor isn't called after adding a qmenubar
I have the following files (Main window/UI): files UI: # -*- coding: utf-8 -*- # Form implementation generated from reading ui file \'mainwindow.ui\'[详细]
2023-04-04 03:17 分类:问答Unable to fully remove border of PyQt QGraphicsView
I have tried calling self.setStyleSheet(\"background: transparent; border: transparent;\") on a QGraphicsView, but it still leaves a 1 pixel border on the top edge. I have also tried replacing border:[详细]
2023-04-03 15:26 分类:问答Set QGraphicsTextItem origin in PyQt
If I want to place one letter (a QGraphicsTextItem) in a QGraphicsView, is there any way I can set the text to display in the middle of the coordinates I specify? If I use QGraphicsTextItem.setPos(x,y[详细]
2023-04-03 15:09 分类:问答With Python/PySide/PyQt/Phonon how to control a USB Soundcards output sample clock rate?
I am trying to O/P audio to a USB soundcard (Lindy PnP SoundCard device) via Python/PySide/PyQT by the use of Phonon and/or QTMultimedia.[详细]
2023-04-03 14:15 分类:问答2 bit per pixel tga's color to qRgb
I need to read tga\'s with pyqt and so far this seems to be working fine except where a tga has 2 bytes per pixel as opposed to 3 or 4. My code is taken from here http://pastebin.com/b5Vz61dZ.[详细]
2023-04-03 03:26 分类:问答reorder widgets in layout
I have a senario where I have QComboBoxes (the black rectangles) and QPushButtons (the red cubes). I need the two buttons to always stay on either side of the most right combo.[详细]
2023-04-03 01:45 分类:问答Python namespaces: How to make unique objects accessible in other modules?
I am writing a moderate-sized (a few KLOC) PyQt app. I started out writing it in nice modules for ease of comprehension but I am foundering on the rules of Python namespaces. At several points it is i[详细]
2023-04-02 22:55 分类:问答visible property in PyQt Animation Framework and State Machine
Sorry about my broken English. I am using a state machine with animations.I want to implement the fade out/in effect.[详细]
2023-04-02 19:00 分类:问答Suppress PyQt event temporarily?
I\'m populating a branch of a QTreeWidget and then setting the expanded attribute on the parent of the branch to true. The itemExp开发者_StackOverflow社区anded signal fires in response, which is not w[详细]
2023-04-02 16:11 分类:问答