I'm using PyQt5 to build a UI for my computer vision app. The app has six pages, and on the fourth page, I receive video frames from a backend thread that runs when the app reaches this page. However, I'm having trouble getting the QLabel on the fourth page to resize correctly and display the video frames in full screen.
Here is the code snippet that sends frames to the frontend:
Problem: The QLabel on the fourth page does not resize correctly to display the video frames in full screen. I've tried different spacing and margin options, but none of them work. It gives white borders on left, right and top
Question: How can I ensure that the QLabel resizes correctly and displays the video frames in full screen on the fourth page?
Any help or suggestions would be greatly appreciated!
I'm using PyQt5 to build a UI for my computer vision app. The app has six pages, and on the fourth page, I receive video frames from a backend thread that runs when the app reaches this page. However, I'm having trouble getting the
QLabel
on the fourth page to resize correctly and display the video frames in full screen.Here is the code snippet that sends frames to the frontend:
Here is the class for the fourth page:
Here is the main class that controls the flow of the app:
Problem: The
QLabel
on the fourth page does not resize correctly to display the video frames in full screen. I've tried different spacing and margin options, but none of them work. It gives white borders on left, right and topQuestion: How can I ensure that the
QLabel
resizes correctly and displays the video frames in full screen on the fourth page?Any help or suggestions would be greatly appreciated!