A Python package that provides a uniform layer for PyQt5, PyQt4, PySide2 and PySide.
Questions tagged [qtpy]
20 questions
14
votes
3 answers
Why are some Python package names different than their import name?
Some packages are imported with a string which is different from the name of the package on PyPI, e.g.:
$ pip list | grep -i "yaml\|qt"
PyYAML 3.13
QtPy 1.5.2
pyyaml (pip instal pyyaml), but import yaml
qtpy (pip…

emcek
- 459
- 1
- 6
- 17
6
votes
1 answer
Qt: How does a dock widget get its initial size?
When a widget is docked, I would like it to change direction and have minimal size relative to how the dock expands.
That is,
left/right dock => top-to-bottom direction with minimum width
top/bottom dock => left-to-right direction with minimum…

Lorem Ipsum
- 4,020
- 4
- 41
- 67
6
votes
1 answer
ImportError: cannot import name pyqtSignal?
Background on the question: This is a previous PyQt project I am working on and trying to start the GUI. I have set an Anaconda Environment with Python 2.7 and used PyQt4. The Error is :-
File "gui/gui.py", line 26, in
from…

Shreyas Sharma
- 63
- 1
- 7
3
votes
0 answers
Why does QtConsole error out when I try to convert it to bundle in pyinstaller?
My qtconsole code is this:
import sys
from qtpy import QtWidgets
from qtconsole.rich_jupyter_widget import RichJupyterWidget
from qtconsole.manager import QtKernelManager
# The ID of an installed kernel, e.g. 'bash' or 'ir'.
USE_KERNEL =…

Benjamin Sloutsky
- 163
- 1
- 11
2
votes
1 answer
Python threading module - GUI still freezing
I built a twitter crawler with GUI that fetches the latest 20 tweets from any given Twitter Account and saves them into a csv file.
The crawler should repeat crawling every x minutes (timeIntervall) for y times (times). The GUI freezes when the…

heslegend
- 86
- 8
1
vote
1 answer
Install QScintilla to qtpy
I am using qtpy to write Qt application and I import modules as `
from qtpy import QtWidget
I would like to install QScintilla but installing it using
pip install QScintilla
installs QScintilla inside site-packages/PyQt5 directory ,but I would…

Noushadali
- 41
- 5
0
votes
0 answers
Compatibillity problems between PyQt5 and qtpy
File: test_script.py
from PyQt5 import QtWidgets, QtCore, QtGui
pip install qtpy
pyinstaller --onedir test_script.py
cd dist/test_script
test_script.exe
Error:
Traceback (most recent call last):
File "test_script.py", line 1, in…

Chris P
- 2,059
- 4
- 34
- 68
0
votes
0 answers
qtpy only showing white screen even if i run simple code
This isnt my main program but even this results in blank white screen
from PyQt5.QtCore import *
from PyQt5.QtGui import *
from PyQt5.QtWidgets import *
from PyQt5.QtWebEngineWidgets import *
app = QApplication([])
window =…

Nakul
- 1
0
votes
0 answers
PyQt5 update QVBoxLayout inside scrollArea
I do have a problem while updating my content on-demand.
My scenario: I want to create a GUI which stores information about some products and it should be displayed via a scroll are. This is working fine, but when I want to update the information…

user14379397
- 51
- 4
0
votes
1 answer
Passing check state with QtPushButton.clicked signal
I'm working on a project and trying to pass the checked state of a checkable button to a function via button.clicked.connect(self.button_checked) and ran across an issue. If I use the "decoration" @QtCore.pyqtSlot() before my callable then the…

abish17
- 1
0
votes
0 answers
Where to look for qtconsole.manager documentation?
I'm new to Qt5 and I'm trying to develop something that's based on a working code.
This is the following "code":
from qtconsole.manager import QtKernelManager
class whatever
def __init__(self):
super(whatever, self).__init__()
…

urie
- 361
- 2
- 14
0
votes
1 answer
`QProgressDialog` Not Responding
I am using pyvistaqt and want display a progress bar window when I load data. I have success without using pyvista with PyQt (see this SO post), however it isn't working when I add vtk.
I think something is still blocking the main thread, but I…

adam.hendry
- 4,458
- 5
- 24
- 51
0
votes
1 answer
How to create a list from visible items in QListWidget
I have a qlistwidget in which most items are hidden.
The amount of items shown in the widget are determined
by the users input.
I would like to be able to take the shown items in
the qlistwidget and turn them into a list.
Sometimes there will be 3/4…
user16817750
0
votes
1 answer
QComboBox.setPlaceholderText() not working
I am currently trying to make some changes to a GUI application, which uses qtpy extensively. For a certain condition, the text for a combo box is to be set to a certain value.
For this I used self.colormapComboBox.setPlaceholderText("RGB"), where…

Mandke
- 9
- 1
- 4
0
votes
1 answer
Error installing PyQt5 + qtpy packages in in PyCharm 2020.1: SSL-module not available
After installing Qt (5.14.2) in Win10 I have created a new project in PyCharm 2020.1. From the project settings dialog, I have tried to install the PyQt5 and the qtpy packages. I get the following error:
Collecting PyQt5
Could not fetch URL…

Mapos
- 177
- 1
- 9