Hi,
I am having issues in displaying jpeg image, My code first displays the gif image using QMovie.
The finished signal of movie is connected to slot which should show a jpeg image.
Below is the sample code, Base is the main GUI thread.
Note: If I use fbi tool to display image it works fine.
void Base::displayWelcomeScreen()
{
//Start the presentation (gif)
presnLabel.resize(480,350); //keeping width 350 acc to the gif
movie.setFileName("/usr/.images/is5RaptorLoading.gif");
presnLabel.setMovie (&movie);
movie.start ();
presnLabel.show();
}
/*Slot function*/
void Base::displaySysInfoScreen()
{
//Display the Raptor system information screen
presnLabel.hide();
qDebug() << "Main Thread (BASE): Displaying the system information screen \n";
QPixmap pm
("usr/.images/is5RaptorSysInfo.jpeg");
presnLabel.setPixmap(pm);
presnLabel.show();
}
void Base::displayWelcomeScreen()
{
//Start the presentation (gif)
presnLabel.resize(480,350); //keeping width 350 acc to the gif
movie.setFileName("/usr/.images/is5RaptorLoading.gif");
presnLabel.setMovie (&movie);
movie.start ();
presnLabel.show();
}
/*Slot function*/
void Base::displaySysInfoScreen()
{
//Display the Raptor system information screen
presnLabel.hide();
qDebug() << "Main Thread (BASE): Displaying the system information screen \n";
QPixmap pm("usr/.images/is5RaptorSysInfo.jpeg");
presnLabel.setPixmap(pm);
presnLabel.show();
}
To copy to clipboard, switch view to plain text mode
Bookmarks