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
10
votes
6 answers

Where is pyside-uic?

I'm trying to use Qt Designer and pyside-uic mydesign.ui > design.py however, this program doesn't exist. I looked in site packages under python 2.7, and I see: pyside-lupdate.exe pyside-rcc.exe and a bunch of other programs, but there is no such…
Dexter
  • 6,170
  • 18
  • 74
  • 101
10
votes
2 answers

Can EXE generated by cx_freeze be completely decompiled back to readable Python code?

I'm new to python, and I'm evaluating developing desktop programs with Python + PySide, and found that cx_freeze works very good in converting my python code into executables, and it's cross-platform. My question is, can someone else decompile an…
Edwin Yip
  • 4,089
  • 4
  • 40
  • 86
10
votes
2 answers

Do you know of any effort to integrate PySide/PyQt development in Qt Creator?

I would love to program in python using only QtCreator. I have already used QtCreator to teach GUI programming to undergraduate students and they loved it. We have discussed several times the possibility of switching to python, but the lack of a…
Sergio
  • 4,537
  • 4
  • 33
  • 41
10
votes
5 answers

Getting started with PySide

I decided to learn Python Gui development and, as PyQt is non-free, the choice was PySide for it. But, unlike PyQt, PySide doesn't have any tutorials or screencasts, just documentation useless for very beginners. I have no Qt experience, so even…
creitve
  • 763
  • 4
  • 12
  • 29
10
votes
1 answer

How to create a filter for QTableWidget?

I'm trying to create a filter for QTableWidget with QLineEdit in PySide. I've seen some tutorials using QSortFilterProxyModel for C++ but couldn't understood how to do it in Python. I need to search in 'VALUE' column.
snir.tur
  • 461
  • 3
  • 7
  • 14
10
votes
1 answer

Why python executable opens new window instance when function by multiprocessing module is called on windows

Short Question: Why python executable generated by pyinstaller opens new window instance when function by multiprocessing module is called on windows operating system I have a GUI code written using pyside. Where when we click on simple button it…
neotam
  • 2,611
  • 1
  • 31
  • 53
10
votes
1 answer

How can I set just `Widget` size?

How can I set just Widget size? My code: from PySide.QtGui import QApplication, QWidget, QLabel import sys app = QApplication(sys.argv) mainWindow = QWidget() gameWidget = QWidget(mainWindow) #gameWidget.setGeometry(gameWidth, gameHeight) <-- I…
Kei Minagawa
  • 4,395
  • 3
  • 25
  • 43
10
votes
2 answers

How to add multiple QPushButtons to a QTableView?

I have a QTableView to which I want to set a QPushButton for every row. I am doing this as follows within my class derived from QWidget following an example found here: for index in range(number_rows): btn_sell = QPushButton("Edit", self) …
Alex
  • 41,580
  • 88
  • 260
  • 469
10
votes
1 answer

How to create a proxy model that would flatten nodes of a QAbstractItemModel into a list in PySide?

I have a hierarchy of nodes represented by a custom QAbstractItemModel. Is it possible to create a proxy model that would flatten the hierarchy into a list to allow me to present all the nodes/items in a QListView (without a proxy only the first…
FipS
  • 427
  • 4
  • 15
10
votes
3 answers

Qt : Fit width of TableView to width of content

I have a window that contains a QTableView which columns are adjusted to content and are fixed in width. The QTableView is nested within a QWidget that in turn is nested within a QScrollArea that in turn is nested within a tabbed QMdiArea which is…
Ilyes Ferchiou
  • 583
  • 3
  • 10
  • 22
10
votes
4 answers

System path error with PyQt and Py2exe

My Problem: I have this problem where if I try to run py2exe on my python file that uses Pyqt/Pyside I get the following error when trying to run the EXE generated in I:\Documents\Python\Buttonio_Testio\dist : Error recieved when running…
user2529777
  • 103
  • 1
  • 5
10
votes
2 answers

Connecting a slot to a button in QDialogButtonBox

I created a standard buttonBox from QtDesigner with Ok, Cancel, Reset. I successfully connected the Ok and Cancel buttons using, self.buttonBox.accepted.connect(self.accept) self.buttonBox.rejected.connect(self.reject) even defining my own accept…
Ryan
  • 269
  • 1
  • 3
  • 15
10
votes
4 answers

Qt how to check which mouse button is pressed

I have problems in PySide while trying to determine which mouse button is pressed in event function. I need it in particular for ignoring mouse move event, because it's doing job on both mouse buttons, left and right. I want to ignore mouse move…
Alex
  • 3,167
  • 6
  • 35
  • 50
10
votes
2 answers

Loading a simple Qt Designer form in to Pyside

I create a simple form in Qt designer and am trying to load it in to a Qt application I'm creating with PySide but without much luck. Here's the generated code from `pyside-uic': # -*- coding: utf-8 -*- # Form implementation generated from reading…
Kamil Kisiel
  • 19,723
  • 11
  • 46
  • 56
10
votes
2 answers

convert a list of delimited strings to a tree/nested dict, using python

I am trying to convert a list of dot-separated strings, e.g. ['one.two.three.four', 'one.six.seven.eight', 'five.nine.ten', 'twelve.zero'] into a tree (nested lists or dicts - anything that is easy to walk through). The real data happens to have 1…
python_head
  • 105
  • 1
  • 4