Important: Please read the Qt Code of Conduct -

Best way to update UI for 6 channel video stream and dozens buttons

  • Hi,

    I am trying to show 4 video stream channel in the UI with buttons, config and some editing section on the UI.
    What I am doing now :


    each stream channel process call processEvents(); after doing some preprocess.

    UI looks getting slower . Machine is i7 2.3 Ghz.

    What is the smooth and the fastest way to show all stream on th gu realtime while all other buttons etc responsive and not laggy ?

    NOTE: I am using QLabel to show video streams with :


    Thanks in advance.

  • Lifetime Qt Champion

    Hi and welcome to devnet,

    Where are your video stream coming from ?
    What version of Qt are you using ?
    What OS are you running ?

  • Hi @Beatrix

    To go along with @SGaist , can you post some of your code? Are you using threads?

  • Qt 5.11
    streams coming from IP Cameras 1080px
    OS is Ubuntu
    OpenCV 3.4

    Yes I am using threads signal slots to connect all 6 stream(6 threads) to the main UI.

    The question is about the OpenCV is good enough to handle streams 24 hours.

    Or I should try someting else ?

    I donw know is I can get stream and the frames directly from the Qt without openCV

    Just need advise to direction or may be examples for to be in the right track


  • Lifetime Qt Champion

    It depends on what generates the stream. You have to give more details about your hardware.

  • intel i7 2.4 Ghz 8 cores 32 gig ram.

    stream is rtsp 1080p

  • Lifetime Qt Champion

    So you have 6 network inputs ?

Log in to reply