Qt Multithreading help [QtConcurrent::run()]
===

I'm trying to run two methods in different threads, but it gives me error:

> [xcb] Unknown request in queue while dequeuing<br>
[xcb] Most likely this is a multi-threaded client and XInitThreads has not been called<br>
[xcb] Aborting, sorry about that.<br>
Blurring_Images: ../../src/xcb_io.c:178: dequeue_pending_request: Assertion `!xcb_xlib_unknown_req_in_deq' failed.<br>
The program has unexpectedly finished.


----------


Here's my code:

    void Dialog::blurImages(int b)
    {
        QtConcurrent::run(this,&Dialog::homogenour_blur,b);
        QtConcurrent::run(this,&Dialog::gaussianBlur,b);
    }

    void Dialog::homogenour_blur(int b)
    {
        cv::blur(img,img1,cv::Size(b,b));
        showImage("Homogenous Blur",img1);
    }

    void Dialog::gaussianBlur(int b)
    {
        cv::GaussianBlur(img,img2,cv::Size(b,b),b);
        showImage("Gaussian Blur",img2);
    }

whereas if i comment out one call(shown below), it runs fine

    void Dialog::blurImages(int b)
    {
        QtConcurrent::run(this,&Dialog::homogenour_blur,b);
        //QtConcurrent::run(this,&Dialog::gaussianBlur,b);
    }


It's really annoying guys, please help !!