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

QTreeView checkbox has empty focus

Why does my QTreeView, using PySide, have this little small empty boxed area that the user can click and get a dotted focus box around? How can I remove it? I only want a simple checkbox in the first column. Code: import sys from PySide import…
JokerMartini
  • 5,674
  • 9
  • 83
  • 193
1
vote
1 answer

When QComboBox is set editable

The code below creates QComboBox and QPushButton both assigned to the same layout. Combobox is set to be editable so the user is able to type a new combobox item's value. If the user hits Tab keyboard key (instead of Enter) the New Value will not…
alphanumeric
  • 17,967
  • 64
  • 244
  • 392
1
vote
1 answer

Internal C++ object already deleted (pyside)

The aim of this program is to show the tradeWindow as a QWidget and then show a QDialog each time doStuff is called (via button) if there are results. The code works first time, but second time i get error messages: Traceback (most recent call…
raecer
  • 195
  • 4
  • 14
1
vote
1 answer

QComboBox item text truncated on Windows

I have a standard QComboBox using PySide with fairly long item names, which gets truncated for some reason on Windows, but not in Ubuntu (Gnome). I have only set it with: self.ConfChoose =…
Termo
  • 71
  • 5
1
vote
1 answer

PyQt QTableWidget keyboard events while editing

I want to navigate QTableWidget in a similar way to MS Excel. For example, when the user presses the right arrow key while editing a cell, the editing will finish and the next cell to the right will be selected. I have searched the Qt docs, but…
imhotep
  • 11
  • 1
  • 3
1
vote
2 answers

How to make a PySide.QtCore.QTimer.singleShot call its timeout method

I am working on a complex and poorly commented Qt-based Python application. It employs a PySide.QtCore.QTimer.singleShot(int,slot) timer to delay the execution of a slot within a thread, and I am confused about how this timer works. Here is a MWE.…
lensonp
  • 343
  • 3
  • 9
1
vote
0 answers

Keep QDialog on top of everything, even fullscreen applications?

On a project I work on, using Python3 + PySide, I try to print a popup-message as some sort of notification. This popup needs to be on top of everything, this includes fullscreen applications like games or browsers. And that's the point that does…
GosuSan
  • 109
  • 1
  • 3
  • 11
1
vote
0 answers

How can I set a QWidget to use an entire row in a QTreeview?

I need a QWidget to use (occupy, fill) an entire row in a QTreeview with several columns, but I can't find any clues on how to do such thing neither in the docs or the web. I guess this is not a super strange scenario, so it should be rather…
Guillermo Ares
  • 197
  • 1
  • 12
1
vote
1 answer

PySide application crashes when setting a new widget to QScrollArea

This is a simplification of an application I wrote. The application's main window has a button and a checkbox. The checkbox resides inside a QScrollArea (via a widget). The checkbox has a number stating how many times that checkbox was…
Nir
  • 894
  • 3
  • 13
  • 24
1
vote
1 answer

Deleting a QWidget when closed

I have my main application QWindow where, when I press a QPushButton a new child window (a QWidget) pops up. There are two ways of exiting the QWidget window: Click the X in the top right hand corner, or Click on the 'Finished' QPushButton I have…
derNincompoop
  • 672
  • 11
  • 22
1
vote
1 answer

Use QProcessAnimation on main window

I'm having an issue trying to animate a QMainWindow. I'm trying to make a "slide" animation for a side panel. It works fine if I call it before the "app.exec" however calling the "animate_out" function it seems not to do anything. Any ideas? PS: You…
DevilWarrior
  • 459
  • 1
  • 6
  • 14
1
vote
1 answer

OOP techniques with Python GUI (PySide) elements

Objective: create a line item object that contains a textbox for a label, value, and value units in PySide. Background: I am creating a control panel for a device that is run off of a Raspberry Pi using Python PySide (QtPython) to handle the GUI. I…
Michael Molter
  • 1,296
  • 2
  • 14
  • 37
1
vote
1 answer

How can I mirror a movie and play it in reverse?

I have been playing with QMovie a bit trying to mirror a movie as well as play it in reverse. For the mirroring bit I tried assigning a negative width to no avail. Since QImage does offer facilities for this I had hoped QMovie would do the…
Frank Rueter
  • 729
  • 1
  • 10
  • 21
1
vote
2 answers

PySide: Setting setDisabled(True) for a child menu entry not working in Mac

I am creating a system tray application in Mac (El Capitan 10.11.3) using Pyside. However, I am not able to set certain menu entry as disabled, particularly when its a child menu. The setDisabled(True) works for parent menu entry though. The same…
nbk
  • 1,992
  • 2
  • 19
  • 34
1
vote
0 answers

Python threading Errno 9 bad file descriptor using socket.sendall

I am using multithreading sockets to communicate between a python application and a C++ application and am running into issues when starting a second thread after pressing a button, while the first thread is running. Python application code: def…
akivjh
  • 19
  • 6
1 2 3
99
100