Results 1 to 5 of 5

Thread: setting EWM (extended window manager) hints via Qt4 (X11)

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #2
    Join Date
    Jan 2006
    Location
    Mountain View, CA
    Posts
    279
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows
    Thanked 42 Times in 37 Posts

    Default Re: setting EWM (extended window manager) hints via Qt4 (X11)

    You can use XSetWMHints like this :

    Qt Code:
    1. #include <X11/Xlib.h>
    2. #include <Q11Info>
    3.  
    4. // In widget constructor
    5.  
    6. // Allocate a hint structure - don't forget to XFree() in destructor!
    7. XWMHints* hints(XAllocWMHints());
    8.  
    9. // Populate the hints structure with the hints you want to activate here.
    10. // hints->flags = ...etc.
    11.  
    12. // Set the hints on the X11 window for the widget.
    13. XSetWMHints(QX11Info::display(), static_cast<Window>(this->winId()), hints);
    To copy to clipboard, switch view to plain text mode 

    Be careful though, it will hardly be portable...
    Last edited by Chicken Blood Machine; 28th March 2006 at 18:26.
    Save yourself some pain. Learn C++ before learning Qt.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.