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
1
vote
0 answers

pyqt or pyside Qlistview drag and drop delete item

I'm learning Python and Pyside. Especially Qt is Very hard to handle it. My tool accept draged and droped Files. and Sort by Natural order. Qlistview is filled by File name. It work OK till this point. But I want to move the position of Qlistview…
abrakad
  • 23
  • 5
1
vote
1 answer

Show and hide tab widgets dynamically with pySide

If I create my UI in QT Designer (and import UI to the script), how can I hide and show tabs in my script? class Tool(QMainWindow, uiTool.Ui_Tool): def __init__(self): super(Tool, self).__init__() # SETUP UI …
kiryha
  • 183
  • 1
  • 2
  • 14
1
vote
2 answers

Turn database column into Python list using PySide?

Using PySide/Qt's QSqlTableModel is there a quick, elegant way to turn a database column into a Python list? In R, for example, this would be one, short line of code. Right now, I'm manually looping over rows in Python, which seems cumbersome for a…
davideps
  • 541
  • 3
  • 13
1
vote
0 answers

PySide application with embedded, non-blocking python shell?

How do I embed a non-blocking Python shell within a PySide application? It must inherit all active objects and variables. There is a simple widget available for this in wxPython but I cannot find the equivalent widget or approach using Qt/PySide. An…
davideps
  • 541
  • 3
  • 13
1
vote
1 answer

More dock locations using PySide?

I like the dock analogy and believe users may want two large "central" widgets as well as the top, bottom, and side widgets. I also like that the dock widgets are labeled, e.g. QDockWidget("File System Viewer"). Is there an easy, current way to add…
davideps
  • 541
  • 3
  • 13
1
vote
1 answer

Write single record to SQL database in PySide

I want to build a record from multiple QT widgets and store it in a database. The following script runs without an error but does not store the record. Part of the problem is that I cannot determine the last ID already in the database, but even if I…
davideps
  • 541
  • 3
  • 13
1
vote
1 answer

Pyside / Passing a value from one GUI to another GUI

I have a main GUI with pushbuttons over it. There is also a sub GUI in a different .py files with a table and pushbuttons over it. I have imported the sub GUI to the main GUI, so now I can show up the sub GUI with a pushbutton press. But, I don't…
M.Emin
  • 63
  • 7
1
vote
1 answer

PySide Node Graph connect items

The purpose of this code is node graph kind of UI. Double click creates rectangles and right click connects them with line. If you move on of the rectangle the corresponding end of line moves with it. The problem is that the line moves only with…
Cyberikia
  • 91
  • 6
1
vote
0 answers

QListWidget mouse release event instead of itemClicked in PySide

I have a list where a user can select an item. The selection runs necessary procedure. self.listWidget_ITEMS.itemClicked.connect(self.refresh) def refresh(self, item): print 'refresh.item = {}'.format(item) The problem is: if a user clicks an…
kiryha
  • 183
  • 1
  • 2
  • 14
1
vote
1 answer

Using the QWizard next slot in pyside

I've created a wizard with Pyside. On one page, I create a new thread, which starts an installer. When the installer is ready, the Wizard should go forward automatically, without clicking the next button. I've read the pyside documentation, and now…
Mace
  • 32
  • 6
1
vote
2 answers

Replace all tab operations with inserting four spaces in QPlainTextEdit widget

I've got a QPlainTextEdit object which I'm using as a mini-python editor in one of my tools. The problem is that when you insert a tab in QPlainTextEdit, it inserts a great big tab rather than four spaces like I'd prefer. Is there a way to override…
Nodgers
  • 177
  • 1
  • 13
1
vote
1 answer

PySide/PyQt4 draw nodes and connections

Trying to create nodes and connect them to each other. I'm stacked on setElementPositionAt. The error is: AttributeError: 'PySide.QtGui.QPainterPath' object has no attribute 'updateElement' I have found the working code here: How can I draw nodes…
Cyberikia
  • 91
  • 6
1
vote
1 answer

Python/QT - What can I do to get 4 pixel borders between series of widgets?

I've looked at the PySide and QT docs, and googled but not finding a solution yet. In this Python 2.7/Qt4.8 (PySide) example, I have a series of widgets that have 4 px rounded borders via CSS. What I'm attempting to do is place these widgets next to…
Paul W
  • 143
  • 8
1
vote
1 answer

Delegate with multiple widgets

Base mock: Hello, What I have: QAbstractListModel that contains my items. QListView that will contain individual widgets or delegates. Each individual item in the QListView needs to have 3 editable areas in the widget. Preface: I am having…
1
vote
1 answer

Pyside Qt align QLabel proxy widget within QGraphicsItem

I would like to program a simple blocks scheme with rectangle objects, filled with some text. For the blocks I use a QGraphicsItem (parent) and the text in the rectangle is a proxy of a QLabel which is set up as a child of the QGraphicsItem. class…
hasdrubal
  • 1,024
  • 14
  • 30