picture with a blinking effect
-
Hi all
i have enabled a camera in a scrollarea but i would like to add this picture with a blinking effect like i can do please
-
-
@jsulm please I added the image but when I activate the camera it will be hidden by the camera
-
@jsulm
QString filename1=QDateTime::currentDateTime().toString(QString("'%1/CaméraAvant_'yyyy_MM_dd'_'hh_mm_ss'").arg(dossier));
//creation du filename qui contient l'emplacement du fichier et son nom
QFile file(filename1);
cameraAvant->setCaptureMode(QCamera::CaptureStillImage);//mode capture
cameraAvant->searchAndLock();//bloquage du camera
CameraImageCaptureAvant->capture(filename1);// prendre capture
cameraAvant->unlock();//debloquage du camera
QPixmap pix ("/home/pi/build-Rover-Desktop-Debug/Live.png");
ui->labelimage->setPixmap(pix); -
@jsulm
QString filename1=QDateTime::currentDateTime().toString(QString("'%1/CaméraAvant_'yyyy_MM_dd'_'hh_mm_ss'").arg(dossier));
//creation du filename qui contient l'emplacement du fichier et son nom
QFile file(filename1);
cameraAvant->setCaptureMode(QCamera::CaptureStillImage);//mode capture
cameraAvant->searchAndLock();//bloquage du camera
CameraImageCaptureAvant->capture(filename1);// prendre capture
cameraAvant->unlock();//debloquage du camera
QPixmap pix ("/home/pi/build-Rover-Desktop-Debug/Live.png");
ui->labelimage->setPixmap(pix); -
@najlou This does not really help, as it does not show how the widgets are positioned (or put in layouts)...
@jsulm i placed the label in the scrollarea
so how can i do it please ?if(ui->Cameratoggle->isChecked()) { ui->stackedWidget->setCurrentIndex(1);// la premiere page du stackedwidger qui contient la premiere camera ui->scrollArea_2->setLayout(layoutAvant); cameraAvant->start(); cameraArriere->stop();
QPixmap pix ("/home/pi/build-Rover-Desktop-Debug/Live.png");
ui->labelimage->setPixmap(pix);} else { ui->stackedWidget->setCurrentIndex(0); ui->scrollArea->setLayout(layoutArriere); cameraArriere->start(); cameraAvant->stop();
QPixmap pix ("/home/pi/build-Rover-Desktop-Debug/Live.png");
ui->labelimage->setPixmap(pix);}
-
@jsulm i placed the label in the scrollarea
so how can i do it please ?if(ui->Cameratoggle->isChecked()) { ui->stackedWidget->setCurrentIndex(1);// la premiere page du stackedwidger qui contient la premiere camera ui->scrollArea_2->setLayout(layoutAvant); cameraAvant->start(); cameraArriere->stop();
QPixmap pix ("/home/pi/build-Rover-Desktop-Debug/Live.png");
ui->labelimage->setPixmap(pix);} else { ui->stackedWidget->setCurrentIndex(0); ui->scrollArea->setLayout(layoutArriere); cameraArriere->start(); cameraAvant->stop();
QPixmap pix ("/home/pi/build-Rover-Desktop-Debug/Live.png");
ui->labelimage->setPixmap(pix);}
@najlou said in picture with a blinking effect:
i placed the label in the scrollarea
But how exactly? Is it over camera view? You need to really make it clear how everything is arranged exactly, else how should anybody know why the label disappears when you start to play video?