Results 1 to 4 of 4

Thread: problem with winevent Function

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Nov 2011
    Posts
    8
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Windows

    Exclamation problem with winevent Function

    Hi i am new for QT and i need to use winEvent function but an error appear when i try build my project:
    my code is :
    Qt Code:
    1. bool MainWindow::winEvent(MSG *message, long *result)
    2. {
    3. //handling message...........
    4.  
    5. return 0;
    6. }
    To copy to clipboard, switch view to plain text mode 
    this is the error prevent building:
    Qt Code:
    1. C:\Users\ETC\Documents\QTProjects\Calculator-build-desktop-Qt_4_7_4_for_Desktop_-_MinGW_4_4__Qt_SDK__Debug\..\Calculator\mainwindow.cpp:16: error: no 'bool MainWindow::winEvent(MSG*, long int*)' member function declared in class 'MainWindow'
    To copy to clipboard, switch view to plain text mode 

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: problem with winevent Function

    It looks like you are missing the declaration matching this implementation in the protected section of your main window header file.

Similar Threads

  1. Problem with winEvent
    By franco.amato in forum Qt Programming
    Replies: 3
    Last Post: 17th February 2016, 22:56
  2. winEvent---(MSG * message, long * result)
    By Naveen in forum Qt Programming
    Replies: 4
    Last Post: 29th June 2015, 11:05
  3. winEvent prevents opening menus...
    By supergillis in forum Qt Programming
    Replies: 0
    Last Post: 16th November 2008, 16:48
  4. Win32 MSG - winEvent()
    By AlGaN in forum Qt Programming
    Replies: 1
    Last Post: 24th September 2008, 14:19
  5. MSG not defined (winEvent)
    By December in forum Qt Programming
    Replies: 6
    Last Post: 19th February 2007, 16:24

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.