Support #326

Best Practices

Added by Anonymous almost 2 years ago. Updated almost 2 years ago.

Status:Closed Start:03/04/2010
Priority:Normal Due date:
Assigned to:- % Done:

0%

Category:-
Target version:-

Description

Hello,

Why Wt c++ uses Boost library and doesn't use QT ? (Qt also includes Signal/Slot mechanisms)
I am asking this question because I have worked on a QT project and I want to move my GUI to Wt (to allow multiple GUI connections on the same core application).

If I want to use a built in http server (embedded in my original executable ), and allow multiple clients to connect to the application from web browsers, what is the best practice to do so ?
could you give me a short example please ( ex : main () { old code ; WApplication() ? ; .... )

Thank you in advance for your help

Mohamed

History

Updated by Wim Dumon almost 2 years ago

  • Status changed from New to Closed

See the wtwithqt folder in the examples directory. It is a solution that will probably work for you, but alternative solutions are possible too.
To integrate Wt in your current application, I'd start Wt in your current main(); see WServer documentation. Do not call 'int sig = WServer::waitForShutdown()', but start your QApplication mainloop there.

Also available in: Atom PDF