Hi, I have many images need to modify. I want to modify and display one by one (display each image after modifying it). Now I just can do this work for 1 image, how do I do it for many images? Here is the code that do the work to modify and display 1 image:
RF2Img::RF2Img()
{
imageLabel
->setBackgroundRole
(QPalette::Base);
imageLabel->setScaledContents(true);
createActions();
createMenus();
processRFImg("1.bmp"); // This will process 1.bmp
loadRFImg("1.bmp"); // This will display 1.bmp
setWindowTitle(tr("RF2IMG"));
resize(800, 800);
}
RF2Img::RF2Img()
{
imageLabel = new QLabel;
imageLabel->setBackgroundRole(QPalette::Base);
imageLabel->setSizePolicy(QSizePolicy::Ignored, QSizePolicy::Ignored);
imageLabel->setScaledContents(true);
createActions();
createMenus();
processRFImg("1.bmp"); // This will process 1.bmp
loadRFImg("1.bmp"); // This will display 1.bmp
setWindowTitle(tr("RF2IMG"));
resize(800, 800);
}
To copy to clipboard, switch view to plain text mode
int main(int argc, char *argv[])
{
RF2Img rf2img;
rf2img.show();
return app.exec();
}
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
RF2Img rf2img;
rf2img.show();
return app.exec();
}
To copy to clipboard, switch view to plain text mode
So then, How do i do it for many images: 2.bmp, 3.bmp...? Thanks !
Bookmarks