Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Strange behaviour in QLabel & QCheckbox or a bug ?

Strange behaviour in QLabel & QCheckbox or a bug ?

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 3 Posters 494 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    RahibeMeryem
    wrote on last edited by aha_1980
    #1

    Hi,

    I am feeding the QLabel from a live video and showing the screen . Than I decide to process and write the video file from this feed through opencv.

    I put a checkbox 'Record' on the Label which I show the feed.

    After few min later the whole program and the even the computer getting super slow (Mac Os x). I spend manyhours to find why?

    Today I discovered that when I removed the check box from the label surface its working normally.

    Why this is happening . = ? any idea?

    aha_1980A Pl45m4P 2 Replies Last reply
    0
    • R RahibeMeryem

      Hi,

      I am feeding the QLabel from a live video and showing the screen . Than I decide to process and write the video file from this feed through opencv.

      I put a checkbox 'Record' on the Label which I show the feed.

      After few min later the whole program and the even the computer getting super slow (Mac Os x). I spend manyhours to find why?

      Today I discovered that when I removed the check box from the label surface its working normally.

      Why this is happening . = ? any idea?

      aha_1980A Offline
      aha_1980A Offline
      aha_1980
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi @RahibeMeryem,

      just for clarification: You are using a QLabel to show a video stream?

      Regards

      Qt has to stay free or it will die.

      1 Reply Last reply
      3
      • R RahibeMeryem

        Hi,

        I am feeding the QLabel from a live video and showing the screen . Than I decide to process and write the video file from this feed through opencv.

        I put a checkbox 'Record' on the Label which I show the feed.

        After few min later the whole program and the even the computer getting super slow (Mac Os x). I spend manyhours to find why?

        Today I discovered that when I removed the check box from the label surface its working normally.

        Why this is happening . = ? any idea?

        Pl45m4P Offline
        Pl45m4P Offline
        Pl45m4
        wrote on last edited by
        #3

        @RahibeMeryem

        What do you mean by "Label surface"? Is the checkBox above the label / video or inside the label (like the video).

        Without seeing any code, I would say, you are updating or creating something (maybe new checkBox instances?!) on every video frame, so you run out of memory after some time.
        Just a guess.

        To find the actual reason, you need to show the part of your code, where you create the label, the checkBox and where you put it all together.


        If debugging is the process of removing software bugs, then programming must be the process of putting them in.

        ~E. W. Dijkstra

        1 Reply Last reply
        2

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved