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
I have the following files (Main window/UI): files UI: # -*- coding: utf-8 -*- # Form implementation generated from reading ui file \'mainwindow.ui\'
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:
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
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.
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.
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.
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
Sorry about my broken English. I am using a state machine with animations.I want to implement the fade out/in effect.
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