Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Power button shuts down computer if Qt Creator is running
I'm using Ubuntu 14.04. The usual behavior of the power button is bringing a dialog with options (Lock, Suspend, Restart, Shutdown) and waits for the user's choice.
When Qt Creator (3.1.2) is running and I press the power button, however, it instantly closes Qt Creator, brings the shut down dialog and then shuts down the computer without waiting for the user's choice.
Can anyone reproduce this? Is it a bug in Qt Creator? How comes Qt Creator has such control over my system?
What version of Qt are you developing with ?
Help > About Qt Creatorsays:
bq. Qt Creator 3.1.2 (opensource)
Based on Qt 5.3.1 (GCC 4.6.1, 64 bit)
Is it Qt Creator from your distribution or one you installed from the official packages ?
It was installed from the official packages.
I just installed the latest version of QtCreator with the online installer and the problem persists.
That sounds like a bug. Could you please submit a report at https://bugreports.qt.io along with all the details you've provided in this thread?
Can you try to reproduce it with a Qt Creator built your distribution provided Qt 5 ?
I just installed it from Ubuntu's package manager, so we're back to Qt Creator 3.0.1, based on Qt 5.2.1 (GCC 4.8.2, 64 bit). It still happens, but not always (I'm having a hard time figuring out when it does).
Btw, as suggested by JKSH, I reported a bug: https://bugreports.qt.io/browse/QTCREATORBUG-14030
Does it also happen if you run another Qt 5 built software but without Qt Creator currently running ?
Well, this is interesting.
I tried multiple times with various software. With VLC 2.1.4, Clementine (using Qt 4.8.6) and Skype 4.3.0 it never happened. With Texmaker 4.1 (built on Qt 4.8.4) it seems to happen about once in two times. With my own app built on Qt 5.?.?, it only happened once in ten times.
I tried to test launching the apps from the launcher bar or from a console, executing the command with or without "&" at the end, pressing the power button while the window had the focus or not, but couldn't seem to find any pattern.
Another issue that these apps all have, however, is this: http://qt-project.org/forums/viewthread/47632/