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

Pyside2 with Qt Designer - Resource(icons) ignored when using QUiLoader()

In Qt Designer, I defined a couple of icons in the resource browser and I attached them to buttons and actions. The Designer preview shows the icons. Icons are stored in icons.qrc file. But when I load the UI file : class MyQtApp(): def…
u2gilles
  • 6,888
  • 7
  • 51
  • 75
0
votes
2 answers

How to pass arguments to QTableWidget table cell signals in PyQt5 (PySide2)?

According to the API the PyQt5 or PySide cell oriented signals of a QTableWidget are supposed to receive two interger parameters for row, and column respectively. For example: def cellClicked (row, column) Now when I try to call them like…
Marjan100
  • 346
  • 1
  • 2
  • 16
0
votes
1 answer

Reloading a QML Canvas Image

I am using a QML Canvas to draw an image. The image is loaded in the backend using Python, OpenCV and NumPy and provided to QML via a custom image provider, which inherits from QQuickImageProvider. To reload an image in QML, I do the…
Jan Osch
  • 143
  • 1
  • 10
0
votes
1 answer

How can I add moviepy preview window inside PySide2 widget

This is very straight forward question. I'm generating a video using moviepy and finally I have video clip to be previewed inside PySide2 widget. But when I try to run videoClip.preview(), It just creates a new window and previewing it. Can we do…
0
votes
0 answers

Application closed entirely when closing a pyopengl window

I have a GUI developed with pyside2, i have a button in this GUI, when clicking on it, a pyopengl window appears and showing what is needed. The problem is that when closing this window, the entire GUI closed. I want to continue using the GUI after…
Joelle
  • 33
  • 6
0
votes
1 answer

Pyside2 build several buttons and memory

I have built a application which contained multi QComboBox. On change, each one add buttons (about 100) in a grid layout, here a part of the called function: for x in xrange(1,100): my_list_shots.append(str(x)) x=2 #…
guiillt
  • 9
  • 3
0
votes
0 answers

Remember size of Dock widget on toggle view

I have two dock widgets in my QApplication widget. On each widget toggle view action is called.So that it hides and shows when I check and uncheck the dock widget in menu options.` On toggle, dock widget are not taking the size which they had before…
vaasu varma
  • 85
  • 1
  • 7
0
votes
1 answer

User defined slot doesn't run after radio button is clicked

I'm having trouble getting a custom slot to work after a radio button in my QGroupBox is clicked. Here's the relevant part of the code (PySide2) class ChooseTarget(QtWidgets.QGroupBox): def __init__(self, title=None): …
Plutone11011
  • 127
  • 3
  • 10
0
votes
1 answer

PySide2 Qt clashes with other Qt in the system?

I'm getting following error while running the following code. Cannot mix incompatible Qt library (version 0x50c05) with this library (version 0x50d02) How to debug this? import sys import random from PySide2 import QtCore, QtWidgets, QtGui class…
Wasim Aftab
  • 638
  • 1
  • 8
  • 16
0
votes
1 answer

PySyde2 / fbs freeze / fail to execute script main

Hope you doing well guys! I am starting a project using PyCharm and also a Virtual Env. Can someone help please? I have these file: main.py with the code: from fbs_runtime.application_context.PySide2 import ApplicationContext import sys from…
fyardlest
  • 288
  • 4
  • 17
0
votes
1 answer

menu selecting a source in qml and python

I have to do a menu in QML that contains the list of items in a directory and, by clicking over one of them, it plays a video (player.play()) This is what I tried, but is not working ___.qml Menu { id: menu contentItem: ListView { …
Dade
  • 25
  • 4
0
votes
1 answer

How do i update a widget from different windows?

How to update a Widget from Window A in Window B? I have a widget that i want to change in my second window, how would i proceed from here? class MainWindow(QMainWindow): def __init__(self): super(MainWindow, self).__init__() …
Darjusch
  • 188
  • 13
0
votes
1 answer

Qt fails to paint multiple QRect on widget

I have a simple code in PySide2 to paint multiple QRects (20 red QRect) on the screen. Running the code it only paints a single (the last) instance of these QRects. What I am doing wrong? def paintEvent(self, event:QPaintEvent): if self.cell !=…
ytobi
  • 535
  • 1
  • 9
  • 19
0
votes
0 answers

pyside2 QlistWidget turn off 'wrapping'

I have a QListWidget in PySide2 and I want to turn off the wrapping function. How do I disable that function?
winteralfs
  • 459
  • 6
  • 25
0
votes
1 answer

How to send message from a QWidget to QStatusBar?

Is there a way to send messages for progression from a QWidget to a QStatusBar in PySide2?. A way to emit message when something happens and another object to receive it and change message accordingly. I've been trying to solve the problem using…
1 2 3
99
100