Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Deploying on windows XP
Forum Updated to NodeBB v4.3 + New Features

Deploying on windows XP

Scheduled Pinned Locked Moved General and Desktop
7 Posts 5 Posters 4.0k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    ahmed kato
    wrote on last edited by
    #1

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

    Ahmed Kato
    Computer & communications student
    Intern and MSP at Microsoft

    1 Reply Last reply
    0
    • EddyE Offline
      EddyE Offline
      Eddy
      wrote on last edited by
      #2

      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 ;)

      Qt Certified Specialist
      www.edalsolutions.be

      1 Reply Last reply
      0
      • A Offline
        A Offline
        ahmed kato
        wrote on last edited by
        #3

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

        Ahmed Kato
        Computer & communications student
        Intern and MSP at Microsoft

        1 Reply Last reply
        0
        • H Offline
          H Offline
          Hostel
          wrote on last edited by
          #4

          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.

          1 Reply Last reply
          0
          • A Offline
            A Offline
            ahmed kato
            wrote on last edited by
            #5

            so i have to add qgif.dll with other ddls and make a directory for images...even i am using resourcing system??

            Ahmed Kato
            Computer & communications student
            Intern and MSP at Microsoft

            1 Reply Last reply
            0
            • C Offline
              C Offline
              cincirin
              wrote on last edited by
              #6

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

              1 Reply Last reply
              0
              • G Offline
                G Offline
                goetz
                wrote on last edited by
                #7

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

                http://www.catb.org/~esr/faqs/smart-questions.html

                1 Reply Last reply
                0

                • Login

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • Users
                • Groups
                • Search
                • Get Qt Extensions
                • Unsolved