Skip to main content

Questions tagged [qapplication]

The QApplication class is part of the Qt C++ classes manages the GUI application's control flow and main settings.

qapplication
0 votes
1 answer
51 views

'Module {Module_Name} not installed' when running python script using PyQt5

I am trying to build a UI using PyQt5 and python. I built a base using main.qml and some styled qml files in the same directory and it imported fine, but I decided to break everything up into folders ...
Isaac M's user avatar
  • 84
1 vote
0 answers
22 views

While using Pyside2 I've got : QWidget: Must construct a QApplication before a QWidget

I'm trying to re-implement the scikit-surgerytutorial01 so I exactly followed all steps indicated in the documentation and I created a virtual environment where I installed all requirements with ...
younes101's user avatar
0 votes
0 answers
22 views

How to correctly use a pyqt5 QTimer and QThreadPool together in QApplication

I am currently trying to use a QTimer object in order to poll an api for differences to the current application but it is never running. I don't know if it is because it's being skipped in my init ...
Brian Horner's user avatar
0 votes
0 answers
30 views

Why does the application exit when closing a QMessageBox with an invisible parent window? [duplicate]

This is a boiled down simple example: mainwindow.h #ifndef MAINWINDOW_H #define MAINWINDOW_H #include <QMainWindow> #include <QTimer> class MainWindow : public QMainWindow { ...
aladur's user avatar
  • 11
0 votes
0 answers
31 views

Problem with displaying Charts in qml project: MUTEX problem

I'am beginner in qml and I have this kind of problem. I wanted to display chart in qml and someone adviced me to change QGuiApplication to QApplication in main.cpp. It was working for a few hours, but ...
Jimmy's user avatar
  • 1
0 votes
1 answer
69 views

QT5's QApplication::setOverrideCursor(Qt::WaitCursor); is blocking the previous operations

In my loadDatabase function, I have clearly set the status to display the message "loading coverage database..." before setOverrideCursor(Qt::WaitCursor), but the status bar is only ...
piggogo's user avatar
  • 11
0 votes
2 answers
7k views

AttributeError: module 'pyqtgraph.Qt.QtGui' has no attribute 'QApplication'."

Details about my system; Ubunttu 22.04.2 LTS x86_64 pyqtgraph v0.13.1 pyhton v3.10 The code I'm trying to run on line 56; from pyqtgraph.Qt import QtGui, QtCore import pyqtgraph as pg app = QtGui....
Gordon Freeman's user avatar
0 votes
0 answers
97 views

QApplication freeze sometimes, if i import QWebEngineView

from PyQt6.QtWidgets import QApplication from PyQt6.QtWebEngineWidgets import QWebEngineView import sys print("0") app = QApplication(sys.argv) print("1") if i remove that line ...
Omer ANAR's user avatar
0 votes
0 answers
88 views

How to check filtered item in checkable ComboBox?

If an item in the list is selected using a filter, it becomes non-checkable. For filter I use functions: on_completer_activated, setModel, setModelColumn. I added a filter model to filter matching ...
user13892757's user avatar
-1 votes
1 answer
35 views

python QApplication freezes and does not close while another thread is running

In the main file i run a Qapplication in the main thread (that starts with no problem) and a method on a separate thread , called backupGiornaliero. When I try to close the application via the X ...
Emanuele's user avatar
0 votes
1 answer
247 views

Pushing QWidget Window to topmost in Python

I'm new to Python and have mostly learnt C# in the past. I am creating a QWidget class: class Window(QWidget): def __init__(self, gif, width, height): super().__init__() self....
ShaunHunter's user avatar
1 vote
1 answer
439 views

can't install katalon on ubuntu 22.04

I'm trying to install katalon studio on ubunut. But it keeps giving me the following error: sudo apt-get install openjdk-8-jre sudo update-alternatives --config java //then choose the openjdk-8-jre ...
Sobri Syam's user avatar
0 votes
0 answers
13 views

Cannot Close Spyder with PyQt5 [duplicate]

I need your help! I built a GUI with PyQt5 and my IDE is Spyder! When I run PyQt in Spyder I cannot close it. What's the problem? Also when I run it a second time, the menubar disappears... import sys ...
chilli93's user avatar
0 votes
1 answer
203 views

'NoneType' error when calling QApplication(sys.argv), pycharm

I'm new to PySide2 and I'm facing this issue while creating super simple window with PySide2 and Pycharm: Qapplication() error :'NoneType'; both with sys.argv as argument and without any argument the ...
simogerr's user avatar
0 votes
1 answer
926 views

Qt , how to create QApplication without argc and argv

Hey so I need to export a qt application as a .dll and , so I dont want any arguments like argc and argv , but QApplication needs them , so i tried this int main() { int c=1; char** v = (char**...
S.T.A.L.K.E.R's user avatar

15 30 50 per page
1
2 3 4 5
11