Nominate our 2022 Qt Champions!

QGraphicsScene interferes with QNetworkManager

  • I am using QNetworkManager to download files. If I connect the downloadProgress signal of QNetworkManager object to a slot of Main Gui Thread which draws on QGraphicsView, the download speed decreases more than 10 times:
    // a custom progress bar
    void manager::showGProgress(int num, float prgrss) //slot
    for(float b=0;b<=x_coord;b=b+0.5)


  • I have introduced "code wrappings": Remember next time.

  • Is there any alternative way of doing this, i.e. custom progress bar which won't interfere with QNetworkManager. QNetworkManager runs in a separate thread of its own, such things shouldn't occur.

Log in to reply