in class fingerprint including Ui.h file having a lable(msgLabel) and a pushbutton (capture)
class FingerPrint::FingerPrint()
{
setupUi(this);
msgLabel->setText("Click Capture");
connect(captureButton, SIGNAL(clicked()),this,SLOT(newPorting()));
}
class FingerPrint::FingerPrint()
{
setupUi(this);
msgLabel->setText("Click Capture");
connect(captureButton, SIGNAL(clicked()),this,SLOT(newPorting()));
}
To copy to clipboard, switch view to plain text mode
in the connect slot calling a function returning CaptureImage()
void FingerPrint::newPorting()
{
msgLabel->clear();
msgLabel->setText(out);
res = CaptureFunc();
if(res == 0)
{
msgLabel->setText("Image Captured..");
FPSLabel
->setPixmap
((QPixmap(QString::fromUtf8("Myimages/finger.bmp"))));
}
else
msgLabel->setText("Failed..");
}
void FingerPrint::newPorting()
{
QString out = "Put your finger.";
msgLabel->clear();
msgLabel->setText(out);
res = CaptureFunc();
if(res == 0)
{
originalPixmap = QPixmap();
msgLabel->setText("Image Captured..");
FPSLabel->setPixmap((QPixmap(QString::fromUtf8("Myimages/finger.bmp"))));
}
else
msgLabel->setText("Failed..");
}
To copy to clipboard, switch view to plain text mode
in CaptureImage function
int FingerPrint::CaptureFunc()
{
some code ....
some code ....
msgLabel->clear();
msgLabel->setText("Capturing the image ...");
some code ....
some code ....
msgLabel->clear();
msgLabel->setText("Image Saved...");
return OK;
}
int FingerPrint::CaptureFunc()
{
some code ....
some code ....
msgLabel->clear();
msgLabel->setText("Capturing the image ...");
some code ....
some code ....
msgLabel->clear();
msgLabel->setText("Image Saved...");
return OK;
}
To copy to clipboard, switch view to plain text mode
this is my code here first in my window it should display in lable msgLable "click capture"
next Put your finger and then inside Capture Image functions Capturing the image and last is Image Captured
this what i programmed but ...
its coming only ClickCapture at first then at last printing B]Image Captured[/B] in between text of msgLabel were not displaying ....
what is the exact problem .... please help ....
Bookmarks