Questions tagged [pyqt6]

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

739 questions
0
votes
1 answer

QDoubleValidator in pyqt6

I make a QWidget object in which there are some lineEdits and I intend to add some constraints to them, so I implement QDoubleValidator objects.Following is the related part in my code. self.inductance =…
0
votes
0 answers

Black window of simple PyQT6 + OpenGL GUI

I have created very simple PyQt6 GUI with OpenGL Window. The code is as follows: import sys import numpy as np from OpenGL import GL from PyQt6.QtOpenGL import QOpenGLWindow from PyQt6.QtWidgets import QMainWindow, QHBoxLayout, QApplication class…
user10283867
0
votes
0 answers

Accessing other class attribute PyQT6

I want to access MainWindow.blocks when Preview is being initialized. The code is as follows import sys from PyQt6.QtWidgets import QApplication, QMainWindow, QListWidget, QHBoxLayout, QWidget, QFrame, QGridLayout, \ QPlainTextEdit from…
user10283867
0
votes
1 answer

Data will not save when using ComboBoxes inside QTableWidget

import sys from PyQt6 import QtWidgets from PyQt6.QtWidgets import QApplication, QItemDelegate, QWidget, QTableWidget, QTableWidgetItem, QPushButton, QHeaderView, QHBoxLayout, QVBoxLayout from PyQt6.QtCore import Qt import pandas as pd class…
Francom66
  • 1
  • 2
0
votes
1 answer

How do I stop (or pause) a thread in PyQt6?

What I am looking for is a way to stop a thread from the GUI. what I want to do is having a pause button, that every time it is clicked, the thread would be stopped. It would look something like this (of course it is not the right syntax, is just to…
David
  • 1
0
votes
1 answer

Does changing widget stylesheets using properties work in Qt6 (it did in Qt5)?

I wonder if there's something I'm missing here. I used properties to modify some of my widget styles in Qt5, but it doesn't seem to work in Qt6. If it's a bug I'll report it elsewhere, but I'm just wondering if I'm doing something wrong. I've got a…
Nat
  • 43
  • 6
0
votes
0 answers

PyQt5 Methods Not Showing

I am trying to build a user interface for controlling a robot and a massive issue I am having is the lack of functions. When I use Qt Designer, everything is imported afterwards, and I have imported sys, but I was looking to use what is called the…
0
votes
1 answer

pyqt image mask not moving with image

I'm trying to hide/show an image in PyQT using a mask. I'm able to obtain a nice result with the following code: self.picture = QLabel() self.pix = QPixmap('PyQt_Logo.png') self.picture.setPixmap(self.pix) …
saiwa
  • 31
  • 2
0
votes
0 answers

Dialog widgets values are not being updated in PyQt

I'm trying to send variables from a dialog back to the Main Window. However, so far I have only been able to pass the default values. My code looks like this: class OptionsDialog(QDialog): def __init__(self, parent=None): …
David
  • 1
0
votes
0 answers

PyCharm loadUi findChild - unresolved attribute reference

I use PyCharm and imported an Qt Designer ".ui" with PyQt6: from PyQt6 import QtWidgets, uic class Ui(QtWidgets.QMainWindow): def __init__(self): super(Ui, self).__init__() uic.loadUi('C:/Users/M/PycharmProjects/2021-12-15_book…
Joe
  • 15
  • 6
0
votes
1 answer

How to place the simple table attached in a PyQtGraph

The following code creates a table using QTableWidget and then It creates two PyQtGraphs, I need to place the table inside the second graph so that the borders of the table coincide with the borders of the graph (the rows are fixed while the columns…
0
votes
1 answer

Fading effect with QAudioOutput and QMediaPlayer (PyQt6)

I'm working on a music player app, but i came across a problem which I don't know how to solve. I want audio to fade in in given interval (0.6 second for example) when audio is started or unpaused and also fade out in the same interval when it is…
N1teShad0w
  • 53
  • 1
  • 5
0
votes
0 answers

PyQt6 - replacing the values ​ in the QTableView column, QSqlTableModel model

There is not enough experience and knowledge to solve the problem of replacing the values ​​"1" and "0" with "Working" and "Not working" in the column "Status" of my model. It seems I should be using a delegate or should I override the…
snkip
  • 1
  • 2
0
votes
1 answer

Problem with function duplication and global variables in PySide6 app, a function to print day and month is duplicated when button pressed

I'm a beginner and I know there is something I missed but I don't know exactly what, So I have a PySide6 app, and I created a function to generate a calendar in a QTableWidget using calendar module in python all worked fine but the problem came when…
0
votes
1 answer

Msys update pyqt from version 5 to version 6

Active code page: 1253 Χρήστος Παππάς@DESKTOP-8T1C1VF MSYS /g $ pacman -S mingw-w64-x86_64-python-pyqt6 warning: mingw-w64-x86_64-python-pyqt6-6.2.0-1 is up to date -- reinstalling resolving dependencies... looking for conflicting…
Chris P
  • 2,059
  • 4
  • 34
  • 68