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
18
votes
1 answer

Integrate Qt with Windows 7 taskbar using python?

I'm looking for a way to using some of the Windows 7 task bar features - specifically progressbar and jump lists - in a python application that uses Qt for the UI. The questions I've seen on SO are all 1-2 years old and either say Qt isn't there yet…
18
votes
3 answers

'PySide.QtCore.Signal' object has no attribute 'connect'

I am using Python 3.4 with Pyside 1.2.4 and PyQt 4.8.7 and when I try to connect a Signal to a Slot it says: 'PySide.QtCore.Signal' object has no attribute 'connect' Im am using MVC: Model: from PySide.QtCore import Signal class Model(object): …
LimitX
  • 595
  • 3
  • 7
  • 23
18
votes
2 answers

Add QWidget to QListWidget

I am trying to make a QListWidget in which each item is a simple widget that contains text and a pushbutton. I use the following: itemN = QtGui.QListWidgetItem() #Create widget widget = QtGui.QWidget() widgetText = QtGui.QLabel("I love…
eric
  • 7,142
  • 12
  • 72
  • 138
18
votes
3 answers

PyQt vs PySide comparison

I currently develop many applications in a Qt heavy C++/Python environment on Linux, porting to PC/Mac as needed. I use Python embedded in C++ as well as in a stand alone GUI. Qt is used fro xml parsing/event handling/GUI/threading and much more.…
cmaynard
  • 2,852
  • 2
  • 24
  • 34
18
votes
2 answers

PySide + QTableView example

Can anyone point me to a simple example of QTableView in PySide? I found the QTableView docs but unfortunately they don't give an example, and I'm very new to PySide, so I don't even know how to start. (I am very familiar with the JTable in Java…
Jason S
  • 184,598
  • 164
  • 608
  • 970
18
votes
5 answers

simple IPython example raises exception on sys.exit()

I'm doing some very simple PySide (and PyQt) tutorials in IPython. One tutorial just creates a window with some sliders to demonstrate slots and signals. When I close the window of the running demo application, I see this error: An exception has…
MountainX
  • 6,217
  • 8
  • 52
  • 83
17
votes
3 answers

Binding a PyQT/PySide widget to a local variable in Python

I'm pretty new to PySide/PyQt, I'm coming from C#/WPF. I've googled alot on this topic but it no good answer seems to show up. Ii want to ask is there a way where I can bind/connect a QWidget to a local variable, whereby each object update…
Temitayo
  • 802
  • 2
  • 12
  • 28
17
votes
2 answers

Is deleteLater() necessary in PyQt/PySide?

Since there is already a Garbage Collector in Python, is deleteLater() necessary in PyQt/PySide?
iMath
  • 2,326
  • 2
  • 43
  • 75
16
votes
2 answers

How to get all child components of QWidget in pyside/pyqt/qt?

I am developing a desktop application using pyside(qt), I want to access(iterate) all line edit components of QWidget. In qt I found two methods findChild and findChildren but there is no proper example found and My code shows error, 'form' object…
anils
  • 1,782
  • 6
  • 19
  • 29
16
votes
1 answer

Installing PySide for Python3

When I try to install PySide for Python-3.6, it says it is only compatible until Python-3.4. Is there any work-around to get it installed for Python-3.6? Only these Python versions seem to be supported: [(2, 6), (2, 7), (3, 2), (3, 3), (3, 4)].
proy
  • 261
  • 1
  • 2
  • 3
16
votes
4 answers

Why is a rectangle partly outside of view drawn as a triangle?

I use the Python-Qt bindings from PySide and I want to draw a scene with amongst others a rectangle and the rectangle is not fully visible because the view should only show a part of the scene where the rectangle is not fully contained. Here is a…
NoDataDumpNoContribution
  • 10,591
  • 9
  • 64
  • 104
16
votes
5 answers

Recommended way for installing PySide on Ubuntu

What is the recommended way of setting up PySide for development in Ubuntu? sudo apt-get install python3-pyside? sudo pip install pyside? sudo easy_install pyside?
pkaramol
  • 16,451
  • 43
  • 149
  • 324
16
votes
3 answers

Placeholder for a custom widget

I am loading a QMainWIndow base from a *.ui file. Also, i have a custom widget i want to place somewhere on the form. Currently i put in the .ui file an empty QVBoxLayout named placeholder, and in the QMainWindow subclass do…
warvariuc
  • 57,116
  • 41
  • 173
  • 227
16
votes
2 answers

PySide/PyQt - Starting a CPU intensive thread hangs the whole application

I'm trying to do a fairly common thing in my PySide GUI application: I want to delegate some CPU-Intensive task to a background thread so that my GUI stays responsive and could even display a progress indicator as the computation goes. Here is what…
user1491306
  • 163
  • 1
  • 6
16
votes
3 answers

MVVM pattern with PySide

I've been trying to find a way to implement MVVM with PySide but haven't been able to. I think that there should be a way to create Views from ViewModels with QItemEditorFactory, and to do data binding I think I can use QDataWidgetMapper. Do you…
Jorge Vargas
  • 1,031
  • 11
  • 25