Home > other >  QT5 do camera collection in the arm, label shows nothing on it.
QT5 do camera collection in the arm, label shows nothing on it.

Time:02-24

Using QT5 as the camera on the arm, why what also don't show on the label? Program from the Internet to find, the great god, please help to take a look at, void ProcessImage: : paintEvent (QPaintEvent * event) {rs=vd - & gt; Get_frame (void * *) & amp; P, & amp; Len); Convert_yuv_to_rgb_buffer (p, pp, 320240/* QWidget: : width (), QWidget: : height () */); Frame - & gt; LoadFromData (len (uchar *) pp,/* */320 * 240 * 3 * sizeof (char)); This - & gt; The setAttribute (Qt: : WA_PaintOutsidePaintEvent); The label - & gt; SetPixmap (QPixmap: : fromImage (* frame, Qt: : AutoColor)); Rs=vd - & gt; Unget_frame (); }

CodePudding user response:

Seemed not to open the camera operation,
  • Related