obviously, you need to take care that runQuery() and your class are "thread safe" because they will run concurrently...Qt Code:
#include <boost/bind.hpp> void YourClassName::getProducts(){ QtConcurrent::run( boost::bind(&YourClassName:runQuery, this) ); }To copy to clipboard, switch view to plain text mode
For details on Boost and Boost.Bind see www.boost.org
HTH
Bookmarks