Results 1 to 2 of 2

Thread: Qt and Windows messaging

  1. #1
    Join Date
    Jan 2008
    Posts
    155
    Thanks
    4
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Qt and Windows messaging

    I am trying to write a small application for a USB camera live display under Windows. I use Qt because I like it, and have never used Windows native code. The application is not cross-platform, since the camera API is using Windows messages, e.g. from some sample Windows code:

    BEGIN_MESSAGE_MAP(CIdSimpleLiveDlg,CDIalog)
    .
    .
    ON_MESSAGE(IS_UEYE_MESSAGE,OnuEyeMessage); // This method is called when a IS_UEYE_MESSAGE type message is emitted
    .
    END_MESSAGE_MAP()

    The camera is sending a IS_UEYE_MESSAGE when it has something to say, such as a frame is ready to capture etc.

    OnUEyeMessage(WPARAM event, LPARAM hCam)

    Is there any way I can setup and catch Windows messages and use them in the Qt environment?
    If not, is there a way to connect a MESSAGE_MAP to a Qt object?

    Or is this just futile, and I have to learn Windows programming (sigh).

    BN
    MacOSX user dabbling with Linux and Windows.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Qt and Windows messaging

    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. The following user says thank you to wysota for this useful post:

    bnilsson (6th January 2010)

Similar Threads

  1. Replies: 2
    Last Post: 25th November 2009, 23:44
  2. Deployment Procedure On Windows On Linux and Windows
    By Harshith J.V. in forum Installation and Deployment
    Replies: 4
    Last Post: 9th July 2009, 11:27
  3. Windows focus / Windows Shutdown Problems
    By December in forum Qt Programming
    Replies: 6
    Last Post: 22nd October 2007, 14:10
  4. Replies: 3
    Last Post: 14th April 2007, 12:04
  5. Replies: 10
    Last Post: 25th February 2007, 00:23

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.