| |||
| Hack QT3 to compile embedded images cleanly |
|
|
|
| Written by Webmaster | |
| Thursday, 27 March 2008 | |
![]() Linux/QT3 My solution is simplicity in itself. This can be done either from KDevelop (QMake tab to the right, subproject settings, custom variables) or a change to src.pro. Let's examine the GUI solution first. 1. Create a custom variable named QMAKE_UIC and assign it the value of "hack.sh" (but without the quotes). Apply, and exit. 2. Next, create the following file "hack.sh" and put the following in it:
3. Now change the file permissions so we can execute it: chmod 755 hack.sh 4. This is the second file we need to create is "hack.cpp" and it needs to have the following:
Now, anytime we want to pull up an embedded image, we use the function canna_findimage("yourstringhere.png"). |
|
| Last Updated ( Thursday, 27 March 2008 ) |
| < Prev | Next > |
|---|



