Results 1 to 3 of 3

Thread: get workspaces clicked event

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Feb 2012
    Location
    Armenia/Yerevan
    Posts
    400
    Thanks
    15
    Thanked 16 Times in 15 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11

    Default get workspaces clicked event

    It is decided when the workspaces button (which divides the screen into 4 equal parts) is clicked in my system (linux), some part of the ui needs to hide and the other maximized.
    I want to know how to get the event of the workspaces button.
    When the button is clicked again and a desktop is chosen, the modification is reversed, the menu should again appear in the ui.

    any has any idea?

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,017 Times in 4,793 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: get workspaces clicked event

    What is a "workspaces button"?
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    Feb 2012
    Location
    Armenia/Yerevan
    Posts
    400
    Thanks
    15
    Thanked 16 Times in 15 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11

    Default Re: get workspaces clicked event

    Quote Originally Posted by wysota View Post
    What is a "workspaces button"?
    When you click it it divides the screen to equal parts. It is done by the system desktop. I found that to get the handler of that I need to use the following header and add lx11 lib.
    Qt Code:
    1. #ifdef Q_WS_X11 //only define on Qt 4.X
    2. #include <QX11Info> //Only on Qt 4.X , return expected in Qt 5.1
    3. #include <X11/Xlib.h>
    4. #include <X11/Xatom.h>
    To copy to clipboard, switch view to plain text mode 

Similar Threads

  1. Replies: 3
    Last Post: 9th September 2014, 22:55
  2. QSystemTrayIcon clicked event
    By ahmdsd_ostora in forum Qt Programming
    Replies: 3
    Last Post: 19th August 2010, 07:57
  3. Raise key pressed event when button is clicked?
    By newstead in forum Qt Programming
    Replies: 7
    Last Post: 5th June 2009, 13:12
  4. QSettings to save multiple "workspaces"
    By Bitruder in forum Qt Programming
    Replies: 1
    Last Post: 13th May 2009, 21:56
  5. Replies: 7
    Last Post: 20th November 2007, 12:15

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.