pyqt Questions

4

I have a QLineEdit and a QSlider in which it interacts with each other. Eg. If I set a value in the QLineEdit, the slider will be updated, or if I slide the slider across, it will updates the valu...
Remington asked 15/3, 2017 at 20:46

2

Solved

I am trying to develop a "console" in pyqt. Similar to xterm.js where all the console is, is front end it does not spawn any sub-processes its just an I/O for me to plug in whatever I want to at a ...
Fortin asked 12/6, 2020 at 17:10

7

Solved

I am trying to port over a script of mine from PyQt5 to PyQt6. I have figured out how to port most of the things thanks to this answer, however, I have run into an issue. I have figured out that Py...
Fluoridate asked 15/1, 2021 at 11:25

4

I posted a question a while ago asking about Tkinter backends and subsequently forgot about it but I've since realised that I'm using the pyqt backend. Is there a fix for that? Original Question:...
Leclerc asked 31/8, 2016 at 10:39

2

Solved

Is it possible to get a slider widget for PyQtGraph? So that e.g. one or more widgets could control parameters from a plot. Like in this example below (made with enaml/chaco): I could find nothi...
Webworm asked 2/2, 2017 at 16:31

7

Solved

Goal My goal is to have a QTableWidget in which the user can drag/drop rows internally. That is, the user can drag and drop one entire row, moving it up or down in the table to a different locatio...
Sopping asked 7/10, 2014 at 2:54

3

I am trying to create a GUI in QTCreator using Python but whenever I try to edit the code on a button I get the following error. I have tried rebuilding the project multiple times and I am still...
Fang asked 25/2, 2021 at 13:56

6

I have a Qtablewidget shown below. I want to copy multiple cells from the table and paste in other row in the same table. So far, I can do the same on single cell, but is there a way i can do mul...
Jodhpurs asked 17/3, 2020 at 2:27

2

Solved

How do I change specific colors in a pixmap? For example, I have a pixmap with white and black pixels, and I want to change all white pixels to blue, but leave the black ones alone. Or maybe change...
Sankaran asked 25/12, 2011 at 9:53

5

Solved

I have a class that subclasses QObject. Everyting works fine but when I run mypy on it I get the error: "error: Class cannot subclass 'QObject' (has type 'Any')" At the moment I am tota...
Triode asked 17/4, 2018 at 22:3

15

Solved

Is there a way to clear (delete) all the widgets in a layout? self.plot_layout = QtGui.QGridLayout() self.plot_layout.setGeometry(QtCore.QRect(200,200,200,200)) self.root_layout.addLayout(self.plo...
Shoifet asked 24/12, 2010 at 21:7

4

Solved

I have a login screen dialog written using pyqt and python and it shows a dialog pup up when it runs and you can type in a certin username and password to unlock it basicly. It's just something sim...
Pablo asked 15/8, 2013 at 15:49

9

Solved

First of all, I'm an experienced C programmer but new to python. I want to create a simple application in python using pyqt. Let's imagine this application it is as simple as when it is run it has ...
Sarver asked 21/5, 2009 at 17:5

4

Solved

I am currently switching from PyQt to PySide. With PyQt I converted QImage to a Numpy.Array using this code that I found on SO: def convertQImageToMat(incomingImage): ''' Converts a QImage into ...
Sadie asked 11/11, 2013 at 8:48

2

Solved

I'm trying to migrate a codebase from PyQt5 to PyQt6. I read in this article (see https://www.pythonguis.com/faq/pyqt5-vs-pyqt6/) that all enum members must be named using their fully qualified nam...
Blither asked 2/5, 2022 at 12:21

8

Solved

Background I'm building a PyQt5 application, that I'd like to have a dark theme for. Previously I've worked with Android development where there was a dark theme that I could set for a whole appli...
Craigcraighead asked 15/1, 2018 at 3:59

2

Solved

I am looking for a way to create a grid of graphs that can be dragged/dropped to rearrange the order. My first try was using QDockWidgets as they allow for drag/drop, however they were limited in a...
Slr asked 31/3, 2020 at 7:6

3

Solved

I got this code: from PyQt4 import QtGui, QtCore class MyFrame(QtGui.QGraphicsView): def __init__( self, parent = None ): super(MyFrame, self).__init__(parent) scene = QtGui.QGraphicsScene() ...
Estival asked 29/5, 2017 at 15:44

5

I've been writing a small utility application using Python 3 (the below testcase also works in Python 2, however) and PyQt 4 that uses the code module to spawn a REPL prompt allowing interaction wi...
Crock asked 29/10, 2011 at 10:49

3

Solved

First, I use Windows 7-64 bit with PyQwt5.2.0, PyQt4.5.4, NumPy1.3.0, python2.6.2 32-bit for compatibility reasons. While runnning my script this appears: QWidget: Must construct a QApplication b...
Chilton asked 12/7, 2012 at 13:31

10

How do I know which version of Qt I am using? When I open Qt Creator it shows "Welcome to Qt Creator 2.3". In the build setting, however, it shows Qt Version 4.7.1.
Titania asked 14/4, 2014 at 11:18

3

Solved

I am reading through some documentation on PyQt5 to come up with a simple signal-slot mechanism. I have come to a halt due to a design consideration. Consider the following code: import sys from ...
Geri asked 5/4, 2016 at 18:51

2

Solved

In my program some comboboxes (QComboBox) were used to make several settings. Sometimes its necessary not only to know the item the user selected but also the item which was selected previously in ...
Pozsony asked 11/9, 2018 at 7:34

5

Solved

I have a QListView displaying a list of items but I don't want the items to be edited (Currently a double click on the item allows you to edit them). This is my Code: self.listView = QListView() ...
Omdurman asked 3/6, 2011 at 10:55

3

Solved

I have a list which is generated based on user-input. I am trying to display this list in a QMessageBox. But, I have no way of knowing the length of this list. The list could be long. Thus, I ne...
Amie asked 17/11, 2017 at 7:54

© 2022 - 2024 — McMap. All rights reserved.