void MainWindow::theThread(QString filename) { .. } void MainWindow::kirkSezDoIt(const QString& filename) { m_engineThread = new boost::thread(boost::bind(&MainWindow::theThread, this, filename)); }