Results 1 to 16 of 16

Thread: how to maximaize the label by using mouse click?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #8
    Join Date
    Dec 2009
    Location
    New Orleans, Louisiana
    Posts
    791
    Thanks
    13
    Thanked 153 Times in 150 Posts
    Qt products
    Qt5
    Platforms
    MacOS X

    Default Re: how to maximaize the label by using mouse click?

    Quote Originally Posted by iswaryasenthilkumar View Post
    but its also not working
    You ignored my question about setting a breakpoint to determine if your Widget::mousePressEvent is even being called. You can change the code all you want, but until you can confirm the method is being executed, you're wasting your time.

    Also, the way you changed your code is not very efficient. Why would you duplicate the code like that? How about something like:

    Qt Code:
    1. if (event->button() & (Qt::LeftButton | Qt::RightButton))
    To copy to clipboard, switch view to plain text mode 
    Before you respond and tell me that it's not working, please confirm your Widget::mousePressEvent is being executed.

  2. The following user says thank you to jefftee for this useful post:

    iswaryasenthilkumar (3rd April 2015)

Similar Threads

  1. Replies: 2
    Last Post: 16th July 2012, 12:40
  2. Creating click events for label
    By InterFiction in forum Newbie
    Replies: 9
    Last Post: 25th November 2011, 02:31
  3. how to get the position of mouse click on a label
    By qt_user in forum Qt Programming
    Replies: 1
    Last Post: 9th August 2010, 09:14
  4. Detect click on QTableWidget label
    By Darthspawn in forum Qt Programming
    Replies: 1
    Last Post: 12th March 2010, 10:50
  5. close window when click on a label
    By sabeesh in forum Qt Programming
    Replies: 3
    Last Post: 29th October 2007, 07:35

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.