Results 1 to 3 of 3

Thread: Qt Twain Scanner

  1. #1
    Join Date
    Jan 2006
    Location
    Sta. Eugènia de Berga (Vic - Barcelona - Spain)
    Posts
    869
    Thanks
    70
    Thanked 59 Times in 57 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Qt Twain Scanner

    Hi,

    I'm developing a scanner app on windows with the help of "NCTwainClient" lib. This lib has an example using MFC. I want to use this lib on my Qt app and the problem is this code(on MFC):

    Qt Code:
    1. BOOL CPolyScanMFCView::PreTranslateMessage(MSG* pMsg)
    2. {
    3. //////////////////////////////////////////////
    4. // The exact way to process messages by TWAIN:
    5. //
    6. return (OnTwainMessage(pMsg) || CFormView::PreTranslateMessage(pMsg));
    7. }
    To copy to clipboard, switch view to plain text mode 

    When the app recives a MSG*, this function is called and there it is passed to the "NCTwainClient" that would check if is a Twain message. If the message is not a twain message it is processed by the CFormView.
    The Twain messages are posted when the scanner finish scanning every image.

    Anyone have an idea to how do this on Qt?

    Thanks,
    Òscar Llarch i Galán

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Qt Twain Scanner

    J-P Nurmi

  3. #3
    Join Date
    Jan 2006
    Location
    Sta. Eugènia de Berga (Vic - Barcelona - Spain)
    Posts
    869
    Thanks
    70
    Thanked 59 Times in 57 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Qt Twain Scanner

    Hi,

    Will take a look.

    Thanks,
    Òscar Llarch i Galán

Similar Threads

  1. Qt TWAIN Interface Qt4
    By ^NyAw^ in forum Qt Programming
    Replies: 0
    Last Post: 25th June 2007, 09:58

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.