Page 2 of 2 FirstFirst 12
Results 21 to 22 of 22

Thread: Calling Qt library from non-Qt C++ client

  1. #21
    Join Date
    Jul 2007
    Posts
    121
    Thanks
    38
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Calling Qt library from non-Qt C++ client

    I will have to periodically call my exported function from either excel or non-Qt-gui app to get the data I needed (most likely using some timers), but I don't understand your suggestion about processEvents. Can you illustrate it with some pseudo-code?

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

    Default Re: Calling Qt library from non-Qt C++ client

    It can be used instead of an event loop. So you can treat this:

    Qt Code:
    1. app.exec();
    To copy to clipboard, switch view to plain text mode 

    and this:

    Qt Code:
    1. while(1) app.processEvents();
    To copy to clipboard, switch view to plain text mode 

    as more or less equivalents. With the latter you would simply integrate Qt's event loop with the one from the calling app. This has to be initiated from the calling side though (some heartbeat or whatever).
    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.


Similar Threads

  1. Calling a .NET library (.dll) from a Qt application
    By magpielover in forum Qt Programming
    Replies: 0
    Last Post: 11th January 2012, 15:21
  2. Replies: 2
    Last Post: 6th May 2011, 14:20
  3. Replies: 2
    Last Post: 19th February 2011, 11:26
  4. Client-Client communication
    By zgulser in forum Newbie
    Replies: 0
    Last Post: 2nd December 2010, 08:07
  5. Calling a library in Symbian C++ using Qt
    By zhengping in forum Newbie
    Replies: 2
    Last Post: 22nd June 2010, 02:04

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.