Questions tagged [pyside2]

Questions about using PySide2, a Python Qt bindings project for Qt5.

PySide2 was released mid June 2018 as a Technical Preview (supporting Qt 5.11), and it was officially released without the Technical Preview tag, in December 2018 for Qt 5.12.

The project started in May 2015.

Wikipedia:

PySide2 is a Python binding of the cross-platform GUI toolkit Qt, currently developed by The Qt Company under the Qt for Python project. It is one of the alternatives to the standard library package Tkinter. Like Qt, PySide2 is free software. The project started out using Boost.Python from the Boost C++ Libraries for the bindings and later switched to the binding generator Shiboken to reduce the size of the binaries and the memory footprint.

PySide was released under the LGPL in August 2009 by Nokia, the former owners of the Qt toolkit, after Nokia failed to reach an agreement with PyQt developers Riverbank Computing to change its licensing terms to include LGPL as an alternative license.

Work is currently underway to officially launch PySide2 as a Qt product, after all the effort on porting PySide to work with Qt 5.

PySide2 supports Linux/X11, Mac OS X, Windows and Maemo. Support for Android is currently being added by the PySide community.

The PySide2 Homepage can be found here

1728 questions
0
votes
0 answers

PySide2, is it possible to have HTML text in QTableWidgetItem?

I am writing a PySide2 application, I have a QTableWidget in it filled almost totally with QTableWidgetItem objects. I would like to highlight several parts of text inside the QTableWidgetItems, I tried to setText("hello") but I see it is…
Nicola Mingotti
  • 860
  • 6
  • 15
0
votes
2 answers

Replicating Maya QLineEdits with the color labels

I am trying to create/ replicate a QLineEdit widget with the ones that we see in Maya (where it has a color label on the left hand side that denotes if it is keyed or not) I am able to replicate it to a certain extent, however having some issues at…
yan
  • 631
  • 9
  • 30
0
votes
2 answers

How to translate a file from ui to py for pyside2?

I am trying to translate a file from a ui file in python I am writing a team pyside-uic "C:\test.ui" -x -o "C:\test.py" in team squad, but it tells me that there is no such team. Changed to "pyside2-uic" but still did not help Tell me how to fix…
or latym
  • 105
  • 1
  • 6
0
votes
1 answer

Pyinstaller created exe file of Pyside2 script

I'm having a strange problem. I have created a Python script which uses a custom stock trading algorithm to give buy and sell signals to the user. I have used PySide2 for the GUI toolkit, but I'm getting the same issue with Tkinter as well. First,…
nparabz
  • 143
  • 1
  • 2
  • 12
0
votes
1 answer

How to set bottom border using css in QTextBrowser?

Suppose I have a QT window (using Pyside2, like PyQT5) with the following widget: import sys from PySide2.QtWidgets import QApplication, QMainWindow, QTextBrowser app = QApplication(sys.argv) main_window = QMainWindow() html_string =…
akeeman
  • 1
  • 3
0
votes
0 answers

Creating a horizontal Kanban board with PySide2

I'm looking for some input on how to go about creating a horizontal Kanban-style board using PySide2. My app is a file browser where you select an item from the folder QTreeView on the left and the right view will populate with cards. The right side…
Mike Bourbeau
  • 481
  • 11
  • 29
0
votes
1 answer

Trouble with executing "While" loop, using system tray on Python

I'm trying to create application which runs block of code every X seconds, which has system tray icon with only "Quit" option. But the problem is that when it get to the tray function, it doesn't read next lines of code, and as a result, "While"…
qeqoos
  • 32
  • 4
0
votes
0 answers

How can i restrict the user to save file only in the given folder path in a qfildialog and prevent him to browse in other location?

As described in the title, i want to save a file in a specific location using qfiledialog. I can do that by put the path in the options of the qfiledialog, and it works fine. But here the user can browse in other locations, i don`t want him to do…
Joelle
  • 33
  • 6
0
votes
0 answers

which slot and which signal to choose for the first standard entry?

The following "problem": I have a ComboBox in Qt with entries - let's say - ['one', 'two', 'three']. When I look in the window, the first choice 'one' is choosen. I don't need to change and click on the box to change it. So ".clicked.connect" or…
Markus
  • 101
  • 1
  • 7
0
votes
1 answer

How to remove outer line border of QLineEdit of PyQt or PySide2?

How to remove the outer blue border ? thank you! class MainWindow(QMainWindow): def __init__(self): QMainWindow.__init__(self) self.lineEdit = QLineEdit(self) self.lineEdit.setGeometry(QRect(20, 20, 100, 30)) …
Chans
  • 23
  • 1
  • 5
0
votes
1 answer

How to put QWidget on a middle in not dependence on screen sizes in Pyside2 using the program Qt Designer?

I use Pyside2 now>Qt Desiger And I want by sight to influence the reflection of the program. Before to translate him with ui on py and to edit him in a text editor And wanted to know whether it is possible inwardly Qt Desiger to put QWidget…
or latym
  • 105
  • 1
  • 6
0
votes
0 answers

Access Parent functions/variables from a child class in Python

I´m currently trying to play around with Python and QT to create some tools for Maya (3D Application). So far I´m getting along, but have now some issues and getting my head around inheritance. I created a child class of QListWidgetItem to add some…
cFx
  • 67
  • 1
  • 11
0
votes
2 answers

QTableWidget Expand Columns to Fill With Last Column Fixed Width

I'm attempting something that I thought would be simple, but just cannot find a way to do this. The supplied image demonstrates what I'm after. It's essentially just a QTableWidget with the following behaviour: Fill the available space. A fixed…
Anti-Distinctlyminty
  • 2,615
  • 5
  • 22
  • 24
0
votes
1 answer

Why do widgets flicker out of position, when showing them inside a QGridlayout for the first time?

I have a QGridLayout with a lot of widgets, which I need to resort quite often. I do this, by replacing them one by one in the newly sorted order. That means, however, that with every added widget the layout wants to update itself and redraw its…
Minix
  • 247
  • 4
  • 17
0
votes
2 answers

QQuickView not appearing in .ui GUI

Currently working on a Python program that uses Qt Widgets from an .ui file to display an interactable GUI. However, i have not found a way to integrate the QQuickview widget to display any QML code, which i have read is possible. I'm using PySide2…
Sam Thadon
  • 11
  • 5