Deploying on windows XP
-
i mad a program using qt creator on windows 7 then when i deploy it on XP the pics are not displayed(i am using Qlabel::setpixmap)
also the keypressevent is not working !!!.can anybody help me?? -
look the code is more than 1000 line :D...so what lines you need to see??
i am using the resource system so i added the photo from it...then no iam deploying the source not running from the creator
@ui->SlbLogoLabel->setPixmap(QPixmap(":/images/images/logo_slb_header.gif"));@@void UploadDataWidget::keyPressEvent(QKeyEvent *event)
{
if(event->key()==Qt::Key_Equal)
{
on_NextButton_clicked();
}else if(event->key()==Qt::Key_Minus)
{
on_PreviousButton_clicked();
}else if(event->key()==Qt::Key_S)
{
on_SelectServicesButton_clicked();
}else if(event->key()==Qt::Key_M)
{
ui->MXWLRadioButton->setChecked(true);
}else if(event->key()==Qt::Key_O)
{
ui->OPRadioButton->setChecked(true);
}
}@ -
so i have to add qgif.dll with other ddls and make a directory for images...even i am using resourcing system??
-
[quote author="ahmed kato" date="1318231015"]so i have to add qgif.dll with other ddls and make a directory for images...even i am using resourcing system??[/quote]Yes, you will have to create "imageformats" directory and copy qgif4.dll in, even if you use Qt resource system.
-
[quote author="ahmed kato" date="1318231015"]so i have to add qgif.dll with other ddls and make a directory for images...even i am using resourcing system??[/quote]
Short:
Yes.
No.Long:
Yes, you will have to deploy the imageformats plugins. That's the code used by Qt do decode the image bytes into something actually displayable. That's always needed, regardless of where you store your image data (file system, download from the net or the qrc resource system). The plugin has to go into the subdirectory imageformats.No, you need not to distribute your actual images (GIFs) on the destination machine. This data has been included into the application binary by means of the qrc resource system.