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. How to Obtain Display* In PySide
Forum Updated to NodeBB v4.3 + New Features

How to Obtain Display* In PySide

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 1.3k 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.
  • P Offline
    P Offline
    paepcke
    wrote on last edited by
    #1

    I am trying to connect a SpacePilot to a PySide application.
    For this I need to communicate my application's Window,
    and Display pointer to another process. Subsequently I
    need to receive X11 events.

    I use x11info's appRootWindow () to get the Window. But
    how to get the Display pointer? The 'see also' sections of
    the manual mention a display() method, but when I try to
    call it on an x11info instance I get an error that display is
    not an attribute for that class.

    I used ctype to get a Display pointer via libX11.XOpenDisplay(None);
    But I then do not subsequently receive X11events into x11FilterEvent
    method. I only receive device button pushes via the regular QEvent mechanism.

    I understand from old threads elsewhere that there might be multiple
    reasons for not seeing X11 events. But my first guess is that the
    X11 events are going to the wrong Display. Therefore the question.

    Thank you for any help.

    Andreas

    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