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??


  • Moderators

    We will need more to be able to help you.

    Is it working using Qt creator?
    Are you using the resource system?
    ...
    Some code might help too ;)



  • 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);
    }
    }@



  • You need deploy with application a plugin qgif.dll. You should make a folder imageformats in directory where you have a exe file and copy to imageformats a qgif.dll. Your app should load a plugin and a picture will be visible.



  • 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.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.