Embedding Ipython into a PyQt4 App
I got Python embedded into a PyQt4 app back when it was in the beta stages and only worked on a git branch of Ipython. I haven't looked at the code for a year or so, and a LOT has changed since then …
Need held with instancing a QWidget with PyQt4
This code works: from PyQt4 import QtGui import sys app=QtGui.QApplication(sys.argv) window1=QtGui.QWidget() window1.show() window2=QtGui.QWidget() window2.show() But this doesnt: from ...
Python3 with PySide randomly crashes due to memory problems
I have a tough problem with PySide and Python3. The program crushes randomly because of memory problems. It doesn't throw an unhandled exception or anything, it's the interpreter that dies due to ...
Creating multiple instances of a class in PyQt seems not to work
Here i have some code where i don't know why i can't create multiple instances of a class. I am new to PyQt or Systray-handling, so I guess my problem is a very easy one. My problem is, that if i ...
Using PySide / PyQt for mobile development
I am currently looking at using PySide for mobile app development. I've done a few tutorials for creating desktop applications using Pyside and loving it. I understand PySide/PyQt is a port or mapping …
Get the value from a variable
I'm using PyQt4 to make an interface for a project that I'm working on, and I want to remove tab widget which I have and replace it with another. Here's what my remove function looks like: def ...
pausing a media stream starts playing from beginning - in Phonon, PySide
I'm facing a strange problem with a simple media player using PySide through Phonon library. The problem is associated with the behaviour of this function: Phonon.MediaObject.pause(). Now I've ...
Qt Removing a QGraphicsItem from QGraphicsScene with singleShot Timer?
While it is possible to automatically remove a QGraphicsTextItem from a scene using a timer and Qt's signal-slot mechanism like QTimer::singleShot(1000, QGraphicsTextItem*, SLOT(deleteLater())); …
Qt - How to insert item to tree view with Qt designer?
Is it possible to insert some default items, like the TCP Server TCP Client UDP Server/Client/Group in the above picture, to tree view with Qt designer ?
PyQT Wizard buttons
I have created a Qwizard in PyQT with 5 pages. I can not figure out how to connect signals to them. How it's works to connect to a next button of a certain page? Any help is appreciated!
PyQt: Can a QPushButton be assigned a QAction?
Using Python 3.2x and PyQT 4.8x: I initialized an action and assigned to a menu item: self.__actionOpen = QtGui.QAction(self.__mw) self.__actionOpen.setObjectName("actionOpen") ...
Qt get children from layout
I try to hide all widgets in layout. But looks like findChildren doesn't work for layout. Here's my sample code: QLayout * layout = widget -> findChild<QLayout *> (layoutName); …
how to connect a signal to a slot in a different thread?
Qt uses signals and slots normally in a single thread, so calling a signal will call a slot in the same thread signal called. Is it any way to use a signal-slot mechanism to pass a message to qt ...
PyQt - How to connect signat in to custom slot / function
I am new to PyQt programming. I am trying to create simple application but struck while connecting signal to custom function. Every time i run i get the same error "AttributeError: 'AppGui' object …
PySide / Qt : Too many arguments to connect a signal to a slot?
I'm trying to connect a custom signal (in a TCP client class) to a method that updates a log with the data sent by the server and whatnot. Here's the declaration of the TCP client class: class ...
PyQt TypeError connect()
I'm very new to Python, so I'm sorry ahead of time if this is a simple mistake. class TaskTabs(QtGui.QTabWidget): ...(some init stuff here).... def remove(self): self.removeTab(0) …
Python / Pyside Code not executing sequentially?
I am building a Qt-based GUI using Pyside. Inside a specific class who has access to a QMainWindow (_theMainWindow) class which in turn has access to 2 other Qt Widgets (theScan & theScanProgress) …
setParent works, but without minExpanding
I'm a 3D technical artist, using pyqt in Maya, a bit of a novice with pyqt. I have 2 pyqt UI files created in Designer, and I load them into Maya with uic.loadUiType() I want to assign the 2nd UI …
Download page with javascript executed
I want to download a page with javascript executed using python. QT is one of solutions and here is the code: class Downloader(QApplication): __event = threading.Event() def __init__(self): …
Passing key press event from HTML element to python?
I have a HTML page which is displayed by QWebView control in PyQT. This HTML page consists of an 'input' element as given below <html> <body> <input ...
How I can add a checkBox to a QAbstractTableModel?
I search how to add a checkbox on the end on each rows of a QtableView in PyQt. Thanks in advance for your help.
Qt with python (pyside) rotation check fails
I have problem with rotation check with QGraphicsItemGroup. Several items are grouped into group which is rotating in scene. After rotation, the QGraphicsItem.rotation() always returns 0. The group is …
PyQt and MVC-pattern
Please, help me with designing MVC-pattern with PyQt. I want to split all program at 3 parts: some class that is abstracted from all Qt classes(model) some class that provides data from model to ...
How to play a simple song using PyQt's Phonon?
I'm trying to play a single mp3 file on my software when a button is pressed. Here's how i did it: QtCore.QObject.connect(self.pushButton, QtCore.SIGNAL(_fromUtf8("clicked()")), playsong) and the …
Error trying to run configure file for PyQt4 on Mac
I'm currently trying to install PyQt4 on Mac OSX 10.8.3 and can't seem to execute the configure-ng.py file. I've installed Qt 5.0.2 and SIP 4.14.6 successfully. However, I ran into an error with the …
Unable to use QtSqlDriver to retrieve data from a table with “.” in column names
I have a SQlite database I'm trying to read with the QtSql.QSqlTableModel. The issue is it won't read any table where the field name contains a "." via the setTable method. As an example if I have …
How to use QThreads with libtorrent in PyQt?
I want to write some simple PyQt torrent client, but I've got some snag with that. I would like to run some loop which takes care of downloading files (simple code using libtorrent) in a PyQt code. …
Qt signals/slots: Is it an error to emit a signal from a temporary object?
In Qt, if a signal is called from a temporary object, such that the object may be deleted by the time the slot is called, is it an error? In case it's relevant, the code is emitting the signal from …
Updating cell widgets changes in a Qtable without selecting the cell
well I'm using Pyqt4 in Maya2012 to make a reference editor alike ui. I working with a QtableWidget to make the reference list and i have subwidgets in each cell. One of the widgets is a checkbox ...
How do i get the row of a widget in a tablewidget in PyQt?
I have a TableWidget with ComboBoxes created by pressing a button. I need to get the row of a ComboBox if I interact with is so another CombobBox changes its contents. I found the this but I can't ...