Questions tagged [pyqt6]

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

739 questions
-1
votes
1 answer

How to build PyQt6 app designed as MVC with pyinstaller?

I recently coded a program to extract subtitles from video and audio files. The interface is written with PyQt6 and I have problems with the compilation. I can't use fbs because I'm on Python 3.10. I get a TypeError 'bytes' object cannot be…
Parfait_D
  • 19
  • 1
  • 2
-1
votes
1 answer

PYQT6.4 QTableWidget.sortItems function, Pycharm is throwing a syntax issue even though syntax follows documentation

Here is the documentation: QTableWidget.sortItems This is the function: PySide6.QtWidgets.QTableWidget.sortItems(column[, order=Qt.AscendingOrder]) The following is my code: self.notes_current_table_widget.sortItems(column[2,…
-1
votes
1 answer

How to change the color of the tool bar in PyQt6?

using self.toolBar.setStyleSheet("background-color: red") only makes the icons on the toolbar red. How would I change the color of the toolbar too? toolbar image
Vinsingian
  • 21
  • 3
-1
votes
1 answer

How create a signal with checkbox in QTableWidget Pyqt6

I begin with python v3.10, I use actually PyQt6 for the design of the windows. I created a QTableWidget in which I put a checkbox with a picture. Now I would like to create a signal to execute a function when I click on it. I tried, connect,…
-1
votes
1 answer

Getting TypeError :arguments did not match any overloaded call while trying to return a variable and use variable in a PyQT6 grid.addWidget

I'm trying to use a pyqt6 combo box to load a selection into a variable so I can use it elsewhere. Not sure why I'm getting the following error: Traceback (most recent call last): File "e:\python_projects\pac_org\main2.py", line 115, in
DiAmbre
  • 1
  • 2
-1
votes
1 answer

Python PyQt6 QTimer

I was wondering if it is possible to write a commodore 64 emulator in Python, using Pqt6 for gui. And, can the QTimer class count time in nano seconds? Thanks Note: I don't wish for a very fast and fine emulation. Just an emulation.
Torisoft
  • 31
  • 5
-1
votes
1 answer

how to set the QDockWidget Group color?

The picture bellow is a pyside6 application's capture, I move all QDockWidget into a single group, but the group's header's background has two different color. How to change them into a single color(qss or code)? Thanks very…
Color
  • 875
  • 9
  • 11
-1
votes
1 answer

How to display Python OpenCV image (Numpy array) with PyQt6?

I'm trying to display an OpenCV image (NumPy array) using PyQt6. Previous Qt versions (PyQt4 and PyQt5) convert the NumPy array to a QPixmap then display it using a QLabel but this doesn't seem to work in PyQt6. Input image When I try to display…
nathancy
  • 42,661
  • 14
  • 115
  • 137
-1
votes
1 answer

How can I set text of a qlineedit inside a mdi sub window from another class?

I am using python and pyqt6. I have a maindwindow A, it has a mdi area with a subwindow havig a qlineedt and a button, when i press the button a pop up window appears which is another class from within the same program, the popup window has…
-1
votes
1 answer

How to open a Ui_MainWindow file, inside my main.py (PYQT6)

how do I create a main.py file, where it will access the child files (screen, login, registration). first it will open the login screen, and then it will open the main screen. I made the whole project in pyqt6, and converted to py file. The way I…
-1
votes
1 answer

Promoted Widget in Qt Designer does not instantiate children

Problem I promoted a widget in Qt Designer and it worked, the problem is that when I run the program, it doesn't show the children of this widget that I created in Qt Designer. Example So in order to show a code that can produce the problem I…
-1
votes
1 answer

PyQT6, no tooltip being displayed on button click

I'm new to python and following this tutorial: https://zetcode.com/pyqt6/firstprograms/ Based on the tutorial, I'm trying to use PyQT6 to create a simple window with a button: #!/usr/bin/python import sys from PyQt6.QtCore import…
test3r123
  • 37
  • 2
  • 9
-1
votes
1 answer

unsupported operand type(s) for +=: 'QPoint' and 'QPointF' in pyqt6

I have an application built on pyqt6 and wanted to add a feature ( displaying a panorama image), so I found this code on the internet to display panorama image using pyqt5. can someone help me convert it to pyqt6? import sys from PyQt5 import…
-1
votes
1 answer

Pyside6: Create QTabWidget with function rather than class

I've been trying to make an application using Pyside6 and can't seem to understand why we can't create a QDialog having QTabWidget with just functions. I am not sure if I am making a mistake somewhere so, here is the code I've wrote: Imports: from…
-1
votes
1 answer

how would I make the openFileDialog open txt file in this case

I am trying to have fname = QFileDialog(self,'Source Text','','txt(*.txt)') run when you call the function openFileDialog I have tried using a lambda instead of a normal function but that didn't work ethier I am trying to make a cryptography program…
1 2 3
48
49