Results 1 to 2 of 2

Thread: combining Alt + Left Mouse Button

  1. #1
    Join Date
    Jun 2009
    Qt products

    Default combining Alt + Left Mouse Button

    Hi there,

    I am developing a GUI application in Qt4.
    Question 1 : screen size of the GUI has to toggle when I click Left Mouse button and press Alt key on the keyboard. It does not work for this combination However if I replace the Alt Key with Key F1 i.e. Left Mouse button Click + F1 key, Press the screen toggles. Also to let you know I am able to combine Alt + Esc button so as to exit the GUI application. But some how I dont seem to find a way to combine Left Mouse Button + Alt.

    Question 2: When user fills a form in Html page and submits it, the request is sent to the web server via GET/POST method. However I need to route the information in forms to terminal when user submits the form. So is there a way or any function through which this functionality can be achieved?

    I would be grateful if some one can help me out with small code snippets or atleast a hint of how to solve the above mentioned problems.

    Thanks in advance..

  2. #2
    Join Date
    Sep 2008
    Thanked 42 Times in 41 Posts
    Qt products
    Unix/X11 Windows

    Default Re: combining Alt + Left Mouse Button

    are u using Qt::KeyboardModifier in keypressEvent ..

    combine both mousepressevent and keypressevent .. like this thread
    Last edited by wagmare; 3rd June 2009 at 13:46. Reason: adding link
    "Behind every great fortune lies a crime" - Balzac

Similar Threads

  1. QSlider and right mouse button
    By Abnormalia in forum Qt Programming
    Replies: 4
    Last Post: 17th March 2009, 12:13
  2. DragMode switching based on key & mouse button?
    By mooreaa in forum Qt Programming
    Replies: 1
    Last Post: 1st July 2008, 10:42
  3. problem about mouse button events
    By vql in forum Qt Programming
    Replies: 1
    Last Post: 29th April 2008, 10:14
  4. Replies: 3
    Last Post: 4th December 2007, 10:04
  5. Mouse Over event on button
    By vishal.chauhan in forum Qt Programming
    Replies: 9
    Last Post: 10th January 2007, 05:03


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.