Results 1 to 9 of 9

Thread: Undefined reference to QWidget::event(QKeyEvent *) in custom classes

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #4
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Undefined reference to QWidget::event(QKeyEvent *) in custom classes

    Nope, no such method:

    Qt Code:
    1. #> grep QKeyEvent /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qwidget.h
    2.  
    3. class QKeyEvent;
    4. virtual void keyPressEvent(QKeyEvent *);
    5. virtual void keyReleaseEvent(QKeyEvent *);
    To copy to clipboard, switch view to plain text mode 
    Qt Code:
    1. #> grep QKeyEvent /usr/include/qt4/QtGui/qwidget.h
    2.  
    3. class QKeyEvent;
    4. virtual void keyPressEvent(QKeyEvent *);
    5. virtual void keyReleaseEvent(QKeyEvent *);
    To copy to clipboard, switch view to plain text mode 

    Cheers,
    _

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

    Toniy (9th July 2015)

Similar Threads

  1. Replies: 8
    Last Post: 3rd September 2013, 09:51
  2. Replies: 4
    Last Post: 20th July 2012, 11:41
  3. Replies: 1
    Last Post: 3rd February 2011, 15:06
  4. Replies: 3
    Last Post: 4th October 2010, 15:39
  5. Replies: 6
    Last Post: 14th May 2009, 12:02

Tags for this Thread

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.