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. Qt Creator in Linux suddenly raises the window on focus change
Forum Update on Monday, May 27th 2025

Qt Creator in Linux suddenly raises the window on focus change

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
6 Posts 3 Posters 564 Views
  • 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.
  • E Offline
    E Offline
    epotter
    wrote on last edited by epotter
    #1

    Hi all,

    I'm running Qt Creator on Linux (on a Wayland wm) and a highly annoying behavior started happening recently, maybe in the last month or so, after an update to Qt Creator (I forget which version, sorry):

    Basically on the Linux desktop, I have focus follow the mouse, so whichever window the mouse is over has keyboard focus. Windows do not move to the foreground unless they are clicked. This is pretty standard Linux window manager behavior.

    Qt Creator was fine with this until recently; now, whenever the Qt Creator window gets focus, it moves itself to the foreground. This is really annoying and an impediment to work, but I haven't figured out why it's doing it and how to make it stop. Qt applications that I'm working on don't do this; only Qt Creator. Has this happened for anyone else? Is there a setting to revert this behavior? I've been searching online for hints about this and see nothing, which either means I'm failing at web searching or have a somehow goofy setup. Any hints would be appreciated!

    Edit
    Good points by @SGaist I should have mentioned:

    • Distribution: Fedora 37 (it also happened on Fedora 36) with KDE window manager
    • Qt Creator from the online installer, it is version 8.0.2 ("Based on Qt 6.3.2 (GCC 10.3.1 20210422 (Red Hat 10.3.1-1), x86_64)")
    1 Reply Last reply
    1
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      You should add which distribution you are using as well as desktop environment.

      Are you using Qt Creator from the online installer ?
      Which version is it ?

      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
      • E Offline
        E Offline
        epotter
        wrote on last edited by
        #3

        Hi @SGaist ,
        Thanks for the reply, I should have thought to include those details originally! I edited the original post with the Linux distribution (Fedora 37) and details about Qt Creator.

        One interesting note is that this morning, the Qt Maintenance Tool told me that an update to Qt Creator, version 9.0.0 was available, so I did that upgrade and it seemed to think that it installed Qt Creator 9.0.0 on my system, but when I launch qtcreator from /opt/Qt/Tools/QtCreator/bin the application tells me it's 8.0.2. Looking through the installer log I see installations of 8.0.0, 8.0.1, and 8.0.2, but no mention at all of a 9.0.0. It's not clear to me if 9.0.0 is still a beta release? I am not installing prerelease software, at least not intentionally, but also don't see where it would have put it. Anyway, based on the dates in /opt/Qt/InstallationLog.txt, it was probably the 8.0.0 release that came with this new behavior.

        1 Reply Last reply
        0
        • J Offline
          J Offline
          Jesse Dosher
          wrote on last edited by
          #4

          Yes. I'm having this same issue. Has there been any resolution yet? I'm running Debian 12, KDE, and Qt Creator 10.0.1
          Qt Creator keeps popping into the foreground, covering other windows, when it gets focus (I also use focus follows mouse). Only Qt Creator does this to me, so I don't think it's an issue with KDE.

          J 1 Reply Last reply
          0
          • J Jesse Dosher

            Yes. I'm having this same issue. Has there been any resolution yet? I'm running Debian 12, KDE, and Qt Creator 10.0.1
            Qt Creator keeps popping into the foreground, covering other windows, when it gets focus (I also use focus follows mouse). Only Qt Creator does this to me, so I don't think it's an issue with KDE.

            J Offline
            J Offline
            Jesse Dosher
            wrote on last edited by
            #5
            This post is deleted!
            J 1 Reply Last reply
            0
            • J Jesse Dosher

              This post is deleted!

              J Offline
              J Offline
              Jesse Dosher
              wrote on last edited by Jesse Dosher
              #6

              @Jesse-Dosher @Jesse-Dosher Update: I just noticed it also happens with applications I've built using Qt6. I'm currently running Qt Creator 10.0.1, Qt 6.4.3 (also happens with Qt 6.5.1). It's beyond annoying - it's interfering with the usability of a multi-window app I'm deploying at work.

              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