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
0 answers

How to properly create a launcher for my application

I have developed an application using pyQt6, and when I run it, I would like to first open a QDialog, which should contains a "start" button and do some required pre processing, and then launch the whole application. To launch the "whole…
-1
votes
0 answers

How to remove horizontal scrollbar of QScrollArea?

Once you run this code, you can see that there is a horizontal slider at the bottom: from PySide6.QtWidgets import QApplication, QWidget, QMainWindow, QScrollArea, QGridLayout, QLabel, QGroupBox import pyqtgraph as pg import sys class…
relu
  • 11
  • 2
-1
votes
0 answers

loadFinished menthod does NOT execute the method inside connect

I have a python code which convert url to pdf. My python code is below import sys from PyQt6 import QtWidgets, QtWebEngineWidgets from PyQt6.QtCore import QUrl, QTimer, QDateTime, Qt from PyQt6.QtGui import QPageLayout, QPageSize from…
AMendis
  • 1,346
  • 4
  • 18
  • 34
-1
votes
1 answer

Unable to use .raise_() but can use .show() in pyqt6

My problem is that i didnt want to save an image locally to display it in my ui program so I converted the image to bytecode to then be stored in the code itself and display from there itself. However when I do so, It doesn't show it on the ui when…
tirthjain
  • 1
  • 2
-1
votes
1 answer

QT Waiting Spinner not showing

I am trying to use qwaitingspinner.py (QtWaitingSpinner on GitHub) module in my project. The spinner's parent is an existing, visible QTabWidget page. When I add a page (a process whose initialization takes 5 to 10 seconds during which the…
Pierre Lepage
  • 368
  • 2
  • 8
-1
votes
1 answer

Migrate a QKeySequence from PyQt5 to PyQt6

I'm in the middle of migrating a quit simple GUI application from PyQt5 to PyQt6. I'm stuck on the following problem about combining Keys and Modifiers. The original PyQt5 code looked like this self.button.setShortcuts(QKeySequence(Qt.CTRL +…
buhtz
  • 10,774
  • 18
  • 76
  • 149
-1
votes
2 answers

Fixing PyQT textedit line number counter and weird status bar error

making code editor for python, the line number counter for the code is in error it only works when the enter key is pressed if the letters are pressed past the line the new line number doesn't trigger. Also one last problem on the status bar after…
-1
votes
1 answer

matplotlib and pyqt6 give ImportError: Failed to import any qt binding

I tried to update my code from pyqt5 to pyqt6. I changed nothing else but now I keep getting ImportError: Failed to import any qt binding I could not find any question or solution that actually involved pyqt6 so therefore I post this question here.…
user180146
  • 895
  • 2
  • 9
  • 18
-1
votes
1 answer

PyQt6 Custom Dialog Content Not Appearing

When I run this code in my program, I expect to see an edit dialog when I click on the 'Edit Record' button. Instead, it shows me a blank dialog. Code: class EditDialog(QDialog): def __init__(self): super().__init__() …
GamerXZEN
  • 3
  • 2
-1
votes
1 answer

Why is the error not getting caught by try...except?

from PyQt6.QtWidgets import QMainWindow from PyQt6.QtCore import QThread class Window_dev(QMainWindow): def __init__(self): super(Window_dev, self).__init__() self.initUI() def initUI(self): self.thread() …
-1
votes
1 answer

How to make the (QPushButton.setDisable) to False based on the QCheckBox state?

I wanted to simulate an installer situation where the user checks the I agree checkbox and then the next button will be active to push. I thought that if I created a def that outputs a boolean data then I can use that data to change the…
Amin Khormaei
  • 379
  • 3
  • 8
  • 23
-1
votes
1 answer

Why do QGridLayout Widgets move around when adding new ones?

I can't seem to wrap my head around how they work. The the best for placing multiple widgets seems to be QGridLayout but when I add something into a specific row/column and later decide to add somthing into another row/column everything shifts and…
Tabi
  • 3
  • 1
-1
votes
1 answer

PyVista Plotter in QFrame doesn't fill the full frame

I want to make a GUI with QtDesigner. There is a QFrame for the PyVista plot but the plot doesn't fill the full frame. Here is my code: from PySide6.QtWidgets import QApplication, QMainWindow from QT_Designer.Validation import Ui_MainWindow from…
RaHeSch
  • 13
  • 3
-1
votes
1 answer

How can I solve the error "AttributeError: 'bool' object has no attribute 'items'" when I print graphs?

I'm trying to make a program able to print wafermaps and histograms for each value selected. To achieve that, I've made one button to show the graphics of the next parameter selected from the list. The histogram is shown as I want for every…
JorgeDelo
  • 3
  • 2
-1
votes
1 answer

PyQt6 how to get black menu bar in Mac OS Dark Mode

I'm developing an app with PyQt6 for Mac OS. When using Dark Mode in the Mac OS settings it applies to all widgets etc in my app however for some reason the menubar does not turn black like it does for most other apps e.g. Google Chrome when running…
Bearify
  • 43
  • 1
  • 5