Questions tagged [pyside]

Questions about using PySide, a Python Qt bindings project.

The PySide project provides LGPL-licensed Python bindings for the Qt cross-platform application and UI framework. PySide Qt bindings allow both free open source and proprietary software development and ultimately aim to support all of the platforms as Qt itself.

3517 questions
15
votes
1 answer

Executable made with pyInstaller/UPX experiences QtCore4.dll error

A python program, which I compiled with pyInstaller, turned out to be over 400 MB. The program's GUI is based on htmlPY, which is "a wrapper around PySide's QtWebKit library." The large size of the program partly owes to the fact that it utilizes…
Boa
  • 2,609
  • 1
  • 23
  • 38
15
votes
1 answer

How to set value of a widget without triggering valueChanged callback in PySide?

I want to update a widget's value but in order to prevent infinite loops, I need to prevent calling the callback function of this widget's .valueChanged signal. Following example works entirely as expected: Qt = PySide class MainWindow(Actor,…
ceremcem
  • 3,900
  • 4
  • 28
  • 66
15
votes
1 answer

What does it mean for statically linking and dynamically linking in Python?

I know the difference between static and dynamic linking in C or C++. But what does it mean in Python? Since it's just an interpreter, and only having one style of import mechanism of modules, how does this make sense? If I freeze my Python…
Kaje
  • 851
  • 7
  • 18
15
votes
1 answer

Communication between threads in PySide

I have a thread which produces some data (a python list) and which shall be available for a widget that will read and display the data in the main thread. Actually, I'm using QMutex to provide access to the data, in this way: class Thread(QThread): …
AkiRoss
  • 11,745
  • 6
  • 59
  • 86
15
votes
2 answers

PySide: Easier way of updating GUI from another thread

I have a PySide (Qt) GUI which spawns multiple threads. The threads sometimes need to update the GUI. I have solved this in the following way: class Signaller(QtCore.QObject) : my_signal = QtCore.Signal(QListWidgetItem, QIcon) signaller =…
Petter
  • 37,121
  • 7
  • 47
  • 62
14
votes
1 answer

How to get dropped file names in PyQt/PySide

I am trying to set up an application that will accept havin files dropped into it. So, I am looking for a way to extract the path when they are dropped in. Right now, I have drag and drop enabled for the right part of the application, and it will…
TimothyAWiseman
  • 14,385
  • 12
  • 40
  • 47
14
votes
5 answers

pip install -U PySide error

Does anyone know how to avoid the following error when running pip install -U PySide as per the official website instructions here: https://pypi.python.org/pypi/PySide/#installing-pyside-on-a-mac-os-x-system Note that I have already done brew…
warship
  • 2,924
  • 6
  • 39
  • 65
14
votes
6 answers

Drag and drop rows within QTableWidget

Goal My goal is to have a QTableWidget in which the user can drag/drop rows internally. That is, the user can drag and drop one entire row, moving it up or down in the table to a different location in between two other rows. The goal is illustrated…
eric
  • 7,142
  • 12
  • 72
  • 138
14
votes
1 answer

i can not find QString in PySide 1.1.0

I want to use QString and QStringList but can not find them in PySide 1.1.0 modules or documents. Not just QString and QStringList, I can not find QTableModel, QListModel etc. either.
coolboymark
  • 203
  • 1
  • 3
  • 9
13
votes
1 answer

PySide segmentation fault on QObject instantiation

I have a class that is a base for my other non-qt classes. This class instantiates QObject class with Signal instance. Unfortunately, sometimes it raises Segmentation Fault error. Here is my code: class PublisherSignal(QObject): notify =…
Djent
  • 2,877
  • 10
  • 41
  • 66
13
votes
4 answers

PySide : How to get the clicked QPushButton object in the QPushButton clicked slot?

I am new to PySide. I want to get the QPushButton obj (such as use it to get its text) in its clicked slot. button = QtGui.QPushButton("start go") button.clicked.connect(self.buttonClick) def buttonClick(self): ... # How can I get the button …
tao4yu
  • 316
  • 1
  • 5
  • 16
12
votes
1 answer

How to dynamically change child widgets with Python and Qt?

I would like to create a widget that has a child widget that I can dynamically change. Here is what I tried: import sys from PySide.QtCore import * from PySide.QtGui import * class Widget(QWidget): def __init__(self, parent=None): …
Jules
  • 6,318
  • 2
  • 29
  • 40
12
votes
1 answer

PySide web browser appears, but inspector doesn't display anything

I am currently running this code, and although the web browser appears, the web inspector doesn't seem to display anything, am i doing something incorrectly? import sys from PySide.QtCore import * from PySide.QtGui import * from PySide.QtWebKit…
user442020
12
votes
5 answers

How to plot on my GUI

I'm designing a GUI with PyQt where I need to display a matplotlib/pylab window when I click on a button that makes the plot of the data from a function I've created. It's like a runtime used in Matlab. I want to keep the matplotlib/pylab window as…
Ricardo Alberto
  • 121
  • 1
  • 1
  • 4
12
votes
1 answer

Displaying LaTeX in pyQt/pySide QTableWidget

I would like to add mathematical expressions to the table labels (e.g.: 2^3 should be properly formatted) Here is a simple example of a table: http://thomas-cokelaer.info/blog/2012/10/pyqt4-example-of-tablewidget-usage/ setHorizontalHeaderLabels…
jankos
  • 896
  • 1
  • 11
  • 16