Results 1 to 6 of 6

Thread: Error: No match for call to '(QPoint)()'

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #3
    Join Date
    Jul 2011
    Posts
    8
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Error: No match for call to '(QPoint)()'

    Please find the code below

    Qt Code:
    1. void testtab::mousePressEvent(QMouseEvent *event)
    2. {
    3. if(event->button() == Qt::LeftButton)
    4. {
    5. //QMouseEvent *e=static_cast<QMouseEvent *>(event);
    6. startPos = event->pos();
    7. if(isWindow())
    8. {
    9. p = event->globalPos() - startPos();
    10. msgBox.setText("is window");
    11. msgBox.exec();
    12. }
    13. else
    14. {
    15. p = event->pos();
    16. msgBox.setText("not window");
    17. msgBox.exec();
    18. }
    19. }
    20. }
    To copy to clipboard, switch view to plain text mode 
    Last edited by wysota; 11th October 2011 at 07:56. Reason: missing [code] tags

Similar Threads

  1. Replies: 1
    Last Post: 1st December 2010, 11:02
  2. QPainter error: no match for call ...
    By tonnot in forum Newbie
    Replies: 2
    Last Post: 7th October 2010, 12:00
  3. Replies: 4
    Last Post: 25th September 2010, 12:58
  4. None-GUI thread call widget method cause error
    By luochen601 in forum Qt Programming
    Replies: 3
    Last Post: 28th July 2010, 05:39
  5. QProcess error to call mogrify
    By mattia in forum Newbie
    Replies: 2
    Last Post: 29th October 2007, 11:46

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.