| Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date | |
| All threads index page 2 | |
Note: forwarded message attached.
---------------------------------
Moody friends. Drama queens. Your life? Nope! - their life, your story.
Play Sims Stories at Yahoo! Games. --- Begin Message ---
- Subject: Re: "New Problem Started" - Problem in Building Stand alone Exe for Windows
- From: Raja Raja <lallu1901@xxxxxxxxx>
- Date: Tue, 10 Jul 2007 03:44:09 -0700 (PDT)
- Authentication-results: mta207.mail.mud.yahoo.com from=yahoo.com; domainkeys=fail (bad sig)
- Cc: qt-interest@xxxxxxxxxxxxx
- Delivered-to: qt-interest@trolltech.com
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=6EZ8C3Rne7k7Nlp7Z/bwbk5mZ8fLpBMLboUHPbRm1g12wHz1rtvhlTwA7g6zD12BiTQAXU8TLJnuok/P5v8s3yeuhN2Hhys4h9M/7LKyTNER+yqvvVvrx4+INsWbu/qUuu4kqaVtH6i6Q3fT4KpYXI3U++PWwWRFgeOZ36aqgKg=;
- List-help: <mailto:qt-interest-request@trolltech.com?subject=help>
- List-post: <mailto:qt-interest@trolltech.com>
- List-subscribe: <mailto:qt-interest-request@trolltech.com?subject=subscribe>
- List-unsubscribe: <mailto:qt-interest-request@trolltech.com?subject=unsubscribe>
- Old-return-path: <lallu1901@yahoo.com>
- Resent-date: Tue, 10 Jul 2007 12:44:11 +0200 (CEST)
- Resent-from: qt-interest@xxxxxxxxxxxxx
- Resent-message-id: <fIvikD.A.ECG.7L2kGB@esparsett>
- Resent-sender: qt-interest-request@xxxxxxxxxxxxx
- To: korsar.akvis@xxxxxxxxx
Hi The code started working after making the change as suggested but now the problem is that it is taking .jpeg and .jpg on the systems where QT is NOT installed, whereas the same exe is not taking images on the systems where QT is installed. THIS PROBLM IS WHEN TRYING TO LOAD IMAGE IN THE RUNNING (loaded) EXE (like selecting some image and then displaying it in a label from the exe). It takes the images (.jpeg and .png) which are given to be loaded in the exe at its compile time. Also the code has now stopped taking .png files when loaded at run time!! I am writting the code that I added - In "Main.cpp" -> #include <QtPlugin> Q_IMPORT_PLUGIN(qjpeg) Q_IMPORT_PLUGIN(qgif) In ".pro" file QTPLUGIN += qjpeg qgif qmng And in "Makefile.Debug" -> QMAKE_LFLAGS += -L$$[QT_INSTALL_PLUGINS]/imageformats Can anybody Please help me out what wrong I m doing now ??? Regards, @Ritzz Raja Raja <lallu1901@xxxxxxxxx> wrote: Hey Dear Thanks a Lot ... It worked .. Thanks again :) @Ritzz Ivan Kharin <korsar.akvis@xxxxxxxxx> wrote: > I havent used Q_IMPORT_PLUGIN() and the application builded is > static in nature - I mean to say that the application is running > fine on PC where QT is not installed. The only problem is that it i not taking .Jpeg images. > I even included "#include " in my code this time > and then again rebuilded but to no use. Add to any .cpp: #include Q_IMPORT_PLUGIN(qjpeg) add to .pro: QTPLUGIN += qjpeg qmake, nmake, test. -- [ signature omitted ]