qapplication Questions

5

Solved

I am going to write program using Qt for some image processing and I want it to be able to run in non-gui mode (daemon mode?). I'm inspired by VLC player, which is "typically" GUI program, where yo...
Traps asked 24/5, 2014 at 12:10

2

Solved

I have a program where QApplication is created with the new operator. It crashes for unknown reason. I use RedHat Linux, G++ 4.8.2, Qt 4.7.2 which was built with the same compiler. This source con...
Quadrifid asked 7/3, 2014 at 7:3

1

Solved

I'm porting a Qt desktop application to Linux (Ubuntu 19.10, 64bit desktop, Qt 5.12.5, gcc version 9.2.1), and am seeing some unexpected threads remaining alive after QApplication is finished. Her...
Stephniestepladder asked 4/1, 2020 at 18:26

1

I'm trying to get a simple hello world example running, and already needed some time to figure out what includes to use Now I verified the include paths, the QApplication should actually be there, ...
Mangrove asked 12/2, 2018 at 12:22

1

Solved

I have a class that composes a palette and assigns it to the application using QApplication::instance()->setPalette(QPalette palette). And it effectively works. But then I try to use QPalette ...
Bartko asked 29/7, 2016 at 18:15

1

Solved

I am trying to get a reference to the current QApplication object with pyQt5, but couldn't find the function. My search about "pyQt get current QApplication" shows results about how to create an QA...
Worthwhile asked 20/11, 2018 at 6:56

1

Solved

I'm sending a signal.CTRL_BREAK_EVENT to a QApplication subprocess and the subprocess's handler manages to catch the signal (and perform some magic before exiting). However, when the signal is sent...
Monosaccharide asked 8/2, 2018 at 14:36

2

Solved

In a Qt GUI application, QApplication::style()->objectName() will return the current style, for example "windowsvista". How/where does it choose this default style, and what information does i...
Shuttering asked 4/1, 2018 at 10:17

1

We have a QWidget based application that was previously using a QWindow for OpenGL rendering. To fit that window in our application we had to use QWidget QWidget::createWindowContainer(QWindow); ...
Buddhology asked 1/11, 2017 at 15:44

1

Solved

I'd like to know what are the implications (problems) of having multiple QApplication/QCoreApplication instances in the same process, and how to solve some issues regarding it. The scenario is as f...
Eocene asked 19/9, 2017 at 15:14

4

Solved

I currently have a terribly annoying problem while developing programs using Qt and Qt Creator. Whenever I try using qDebug() with a QCoreApplication or QApplication instantiated before using qDebu...
Untangle asked 1/6, 2015 at 21:25

1

Solved

I have understood the following regarding QApplication's exec function: QApplication exec starts the main event loop. It launches the GUI. It processes the signals and calls appropriate slots o...
Remorseless asked 30/11, 2016 at 5:28

1

With PyQt5, both of these return the application object: app = QtWidgets.QApplication.instance() app = QtWidgets.qApp for i in app.arguments()[1:]: ... But why does print(QtWidgets.QApplication...
Nephro asked 3/11, 2016 at 12:1

2

Solved

I have a static class and want it to have static QSettings. But with my initialization I get a warning: QSettings* MySQLConnection::settings = new QSettings(QApplication::applicationDirPath() + "/...
Dizzy asked 19/8, 2016 at 13:55

0

We are using Qt for a visualization engine viewer, and we are having issues with the QApplication::processEvents() method. Since we needed to control the framerate (in a game loop fashion), we over...
Luthanen asked 23/3, 2016 at 14:54

2

Solved

I would like to do a rudimentary automation test of my Qt application. It records mouse events and writes them to a file (f.e. mousepress(300, 400)). When starting the automation, it reads the coor...
Lindner asked 3/3, 2016 at 16:17

2

Solved

I try to understand what PyQt does. And one of the first things I didn't, was: QApplication(sys.argv) Why do I have to give QApplication this argument? I know what sys.argv does. But in my Scri...
Hocker asked 14/1, 2015 at 10:10

1

Solved

I'd like to create a library built on top of QTcpServer and QTcpSocket for use in programs that don't have event loops in their main functions (because the Qt event loop is blocking and doesn't pro...
Ritualism asked 6/1, 2015 at 15:15

3

Solved

I am trying to handle exception in my Qt application, I went through a couple of posts which indicated of overriding the QApplication::notify method to handle exceptions in a efficient way in Qt. I...
Myrtismyrtle asked 22/12, 2014 at 17:49
1

© 2022 - 2024 — McMap. All rights reserved.