Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QX11EmbedContainer::clientClosed() in Qt5?
Forum Updated to NodeBB v4.3 + New Features

QX11EmbedContainer::clientClosed() in Qt5?

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 3 Posters 1.5k Views 2 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.
  • S Offline
    S Offline
    spillerrec
    wrote on last edited by
    #1

    I have been working on a X11 system tray (current code here) which uses the XEmbed protocol to embed tray application into the system tray. I have used QWindow::fromWinId() as noted here as the Qt5 replacement for QX11EmbedContainer, but I'm now at a bit of a loss on how to detect when the client application disconnects from the embedding. (Which causes my system tray to fill up with empty widgets.) QX11EmbedContainer had a signal clientClosed() which appears to be what I need, but I couldn't find any way to do this with QWindow. Any suggestions on what to do here?

    JKSHJ 1 Reply Last reply
    0
    • S spillerrec

      I have been working on a X11 system tray (current code here) which uses the XEmbed protocol to embed tray application into the system tray. I have used QWindow::fromWinId() as noted here as the Qt5 replacement for QX11EmbedContainer, but I'm now at a bit of a loss on how to detect when the client application disconnects from the embedding. (Which causes my system tray to fill up with empty widgets.) QX11EmbedContainer had a signal clientClosed() which appears to be what I need, but I couldn't find any way to do this with QWindow. Any suggestions on what to do here?

      JKSHJ Offline
      JKSHJ Offline
      JKSH
      Moderators
      wrote on last edited by
      #2

      Hi @spillerrec,

      Unfortunately, I don't think the QWindow::fromWinId() solution contains all the features from QX11EmbedContainer. I suggest you subscribe to the Interest mailing list and post there to talk directly to Qt engineers -- perhaps they might have a solution I haven't thought of, or you could request this feature from them.

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

      1 Reply Last reply
      0
      • TheRobT Offline
        TheRobT Offline
        TheRob
        wrote on last edited by
        #3

        You need to pull in xcb and watch for unmap notify events, and act accordingly.

        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