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. Qt Equivalent of X11 ConnectionNumber?
Forum Updated to NodeBB v4.3 + New Features

Qt Equivalent of X11 ConnectionNumber?

Scheduled Pinned Locked Moved Unsolved General and Desktop
event looplinux
2 Posts 2 Posters 523 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.
  • J Offline
    J Offline
    Jeeves
    wrote on 12 Dec 2018, 11:58 last edited by
    #1

    Hi,

    Apologies if this question has been asked before. I've searched but couldn't find a relevant topic.

    I'm working with a platform that provides its own event loop. It is based on Unix/Linux. The traditional way to build an X Windows application on this platform is to get a file descriptor using the X11 ConnectionNumber() function, use select() to wait until there is activity on this file descriptor and then retrieve any pending events and handle them (or have X handle them).

    Is there something comparable in Qt? A way to wait for activity on a file descriptor and then have Qt handle incoming events? Or am I completely barking up the wrong tree here?

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 12 Dec 2018, 22:18 last edited by
      #2

      Hi,

      Maybe QAbstractEventDispatcher could be a starting point.

      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

      2/2

      12 Dec 2018, 22:18

      • Login

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