Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Power button shuts down computer if Qt Creator is running

Power button shuts down computer if Qt Creator is running

Scheduled Pinned Locked Moved Qt Creator and other tools
10 Posts 3 Posters 2.4k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    Neptilo
    wrote on last edited by
    #1

    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?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      What version of Qt are you developing with ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • N Offline
        N Offline
        Neptilo
        wrote on last edited by
        #3

        Help > About Qt Creator says:

        bq. Qt Creator 3.1.2 (opensource)
        Based on Qt 5.3.1 (GCC 4.6.1, 64 bit)

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Is it Qt Creator from your distribution or one you installed from the official packages ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • N Offline
            N Offline
            Neptilo
            wrote on last edited by
            #5

            It was installed from the official packages.

            I just installed the latest version of QtCreator with the online installer and the problem persists.

            1 Reply Last reply
            0
            • JKSHJ Offline
              JKSHJ Offline
              JKSH
              Moderators
              wrote on last edited by
              #6

              Hi Neptilo,

              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?

              Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

              1 Reply Last reply
              0
              • SGaistS Offline
                SGaistS Offline
                SGaist
                Lifetime Qt Champion
                wrote on last edited by
                #7

                Can you try to reproduce it with a Qt Creator built your distribution provided Qt 5 ?

                Interested in AI ? www.idiap.ch
                Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                1 Reply Last reply
                0
                • N Offline
                  N Offline
                  Neptilo
                  wrote on last edited by
                  #8

                  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

                  1 Reply Last reply
                  0
                  • SGaistS Offline
                    SGaistS Offline
                    SGaist
                    Lifetime Qt Champion
                    wrote on last edited by
                    #9

                    Does it also happen if you run another Qt 5 built software but without Qt Creator currently running ?

                    Interested in AI ? www.idiap.ch
                    Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                    1 Reply Last reply
                    0
                    • N Offline
                      N Offline
                      Neptilo
                      wrote on last edited by
                      #10

                      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/

                      1 Reply Last reply
                      0

                      • Login

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • Users
                      • Groups
                      • Search
                      • Get Qt Extensions
                      • Unsolved