Skip to main content
MSale
Associate III
October 4, 2019
Question

I used pixel datawidget to display video from camera through the DCMI but i only get 1 frame on the screen like in snapshot mode not video. i think i must i must the pixel widget to refresh for every frame but i dont know where to do it.

  • October 4, 2019
  • 2 replies
  • 1849 views

..

This topic has been closed for replies.

2 replies

HP_it
Senior II
October 4, 2019

Sounds like you need to call invalidate() on your widget.

This is done in the view on the screen that has the widget. when you have defined a function that can invalidate the view, your presenter can call that function.

lastly the model will have to call the presenter.

your model have the function called tick() which is called each time a frame is finished rendering. this way you can easily control if you want to wait a couple of frames before refreshing the screen.

MSale
MSaleAuthor
Associate III
October 4, 2019

@HP​ 

Thank you. another thing how to put GUI widgets above the pixel widget. till now all other GUI widgets are beneath the pixel data widget.

HP_it
Senior II
October 4, 2019

That is most likely because you have added the pixel widget last in the designer.

In the designer, select the screen in the top left corner. open the drop-down box and see all the elements in your design there. you can re-arrange the order by dragging the items up or down. this also changes the layering of your items

MSale
MSaleAuthor
Associate III
October 4, 2019

@HP​ 

I tried this before but its not visible there and i think thats because you can not add pixel Data Widget from the designer directly