Skip to main content

Questions tagged [pyqt6]

Qt6 bindings for Python programming language. This allows programmers to make Qt6 graphical user interfaces using Python syntax.

-1 votes
0 answers
27 views

How to avoid real-time plot from freezing due to model prediction (1~2 seconds freezing) in pyqt6

I am doing a GUI for real-time data collection app using pyqt6, in this app I integrate a trained model. The app works fine without this model, however when it is time to do the prediction, the GUI ...
user26416177's user avatar
0 votes
1 answer
24 views

Drag and Drop Widgets within QScrollArea in PyQt6 Not Working Correctly

I'm developing a PyQt6 application where I want to enable drag-and-drop functionality for widgets within a QScrollArea. While the drag-and-drop functionality works initially, it starts behaving ...
DigitalTemplar's user avatar
0 votes
1 answer
34 views

Can I combine multiple QPdfSearchModels into a single one to connect with my QListView?

I would like to employ the QPdfSearchModel to populate a QListView with all results of a search in a pdf. The issue is that the string I am looking for can be with or without spaces. E.g. when I am ...
Robindp's user avatar
1 vote
0 answers
34 views

Catch-up time-lapse buffering and lag issues while working with FFpyplayer frames and QPixmap with a UDP stream in MPEG-TS format

I am trying to build from the code found in this post for my use case. However, I'm having trouble with python FFpyPlayer; with traditional ffplay, I don't have these kinds of issues. When running my ...
kyrlon's user avatar
  • 1,336
0 votes
0 answers
37 views

How to get info about Bluetooth output device latency in Python

I've been making a Python media player, but the audio and video de-synced when using a Bluetooth speaker, and I've been wondering how to get the Bluetooth latency using Python. I am using a MacOS ...
Super Gladiator's user avatar
0 votes
0 answers
24 views

How to Enable Drag-and-Drop to Rearrange Widgets in a QGridLayout in PyQt6?

I have implemented a drag and drop functionality to rearrange widgets in a QHBoxLayout. Below is the code: from PyQt6.QtCore import QMimeData, Qt from PyQt6.QtGui import QDrag, QPixmap from PyQt6....
DigitalTemplar's user avatar
0 votes
1 answer
24 views

Problems displaying a table next to an image in Python and QT6

I have problems displaying a QTableView next to an image (QLabel / QPixmax) in window size. The table as well as the image (original size 600 x 400 pixels) are displayed very small, see attached image....
mepi0011's user avatar
-1 votes
0 answers
39 views

Load a new image (more pixels) into a QPixmap and keep the width and height of the previous image [duplicate]

I load different images at runtime into a QPixmap / QLabel. The pictures have different sizes, but the label width and height should not change (e.g. 500 x 400 px). The loaded pictures should scale ...
mepi0011's user avatar
-1 votes
0 answers
32 views

How to realize a many-to-many (m:n) relationship in two tables with PYQT6 and SQLite

How to display a many-to-many relationship in two QtableViews with PyQT6 and Python? I have a database with a m:n relationship (many-to-many relationship) between the products and components (e.g. UIs,...
mepi0011's user avatar
0 votes
0 answers
24 views

Asynchronous communication between 2 QThreads

I'm working on optimizing a PyQt application (to control tensile testing machine) that's sometimes slow. The application uses two QThreads, both running in a loop with time.sleep inside. One QThread (...
Vittor's user avatar
  • 9
0 votes
0 answers
52 views

Why is the position of the circles incorrect? [duplicate]

I am trying to use PyQt6 to design a program that draws a red circle at the position where the user clicks. However, when I click on the image in the window, the circle is not drawn exactly where I ...
Frank Xie's user avatar
1 vote
1 answer
66 views

PyQt6, related QComboBoxes in a QSqlRelationalDelegate

Suppose that in a QSqlRelationalDelegate we have two relation columns, country and city. The city table has a country_id field. By overriding the setEditorData method of QSqlRelationalDelegate, I'm ...
Minas Lyrakis's user avatar
0 votes
0 answers
27 views

Assigning my custom class to an object/widget from a .ui file [duplicate]

Writing my 1st code in python, how can I create an instance of a class of my own and assign it to an object/widget from a .ui file? Something like this: import sys from PyQt6.uic import loadUi from ...
eli's user avatar
  • 29
0 votes
0 answers
27 views

PyQt6 TreeWidget not importing colors from ui fil

I am trying to set the individual colors of each line in a QtreeWidget, I have tried setting them manually as I fill the treeView with .setForeground(col, QBrush(QColor(R, G, B, a))) and without the ...
Marshall Haynes's user avatar
0 votes
0 answers
41 views

Build a file Browser button in Qt Designer 6 [duplicate]

Build a file Browser Button and configure a signal/slot functionality in Qt Designer I've tried creating signals with "Edit Signals/Slots" and I add mybutton_cliked as a receiver but when I ...
Liza Bruno's user avatar

15 30 50 per page
1
2 3 4 5
61