How can I set an app icon in QT on Symbian? I read here http://doc.qt.nokia.com/4.6/appicon.html about hot to set it but it doesn't work for me. I created SVG-Tiny icon(file) and wrote ICON = Resource/ico.svg in the pro file. What is wrong?
Thanks in advance
That should do it. Works for me. Things to check:
Have you run qmake and rebuilt the project after editing the .pro file?
In emulator environment, have you restarted the emulator?
Check that your PKG file has rules to install both yourapp.rsc and yourapp.mif to \resource\apps on target
you need to give the path of icon in your .pro file like this
ICON = Resource\ico.svg
i hope it helps.
Related
I have downloaded qt-5.0.0 for windows.
http://releases.qt-project.org/qt5/5.0.1/qt-windows-opensource-5.0.1-msvc2010_32-x86-offline.exe
I have added INCLUDEPATH += C:\opencv\build\include in the .pro file.
Opencv 2.4.3 is already installed.
When I include header file in qtcreator :
#include <opencv2/opencv.hpp>
There is compilation error : can not find opencv2/opencv.hpp
Any ideas ??
I found the solution. In Qt Creator, goto Projects on the left pane ( ctrl+5), then Build Environment -> Use System Environment, click on Details. Edit LIB variable. Add here.
Things to check:
does C:\opencv\build\include\opencv2\opencv.hpp actually exist?
does the compile command (which you can check in the Qt Creator "compile output" window) show -IC:\opencv\build\include argument in the compile command?
qmake should be run automatically after modifying the .pro file, but re-run it manually just in case (for example from Build menu), as suggested by the first answer
this should not have any effect in issue like this, but just in case: if you are using "shadow build" (which is a good idea), make sure the source dir is clean of any generated files
The correct header files are:
<opencv2/core/core.hpp>
<opencv2/imgproc/imgproc.hpp>
<opencv2/highgui/highgui.hpp>
… and so on. The include of "opencv.h" is deprecated!
It also does not work anymore for QtCreator auto-completion.
The solution is to update your sources to use the correct header files.
After any change made to .pro file , Do right-click on project folder and click on run qmake .
Well, I just ran into this problem tonight. luckily enough, after taking a fair time, the solution was found. If your project is managed by qmake, and Qcreator is used, just go to the Build->Run qmake, then build and run your project. A tip, whenever you change your *.pro file, remember to rerun Build->Run qmake, because that will reconfigure your project.
If this helps you, please give me a thumb up :)
I'm working on a Qt4.7.3 project on mac osX (with xCode). I would like to move my Qt directory (installed with Qt installer). The problem is that some Qt executable files have hardcoded paths. I've already recompiled Qmake specifying the new Qt directory. So the project now compile and link perfectly, but at run time it cannot find the qt libraries (it still look into my old Qt directory). Is there other harcoded path somewhere, other configuration files to edit?
By the way, the reason why I want to move my Qt directory is to allow to share qt files via revision control tool.
The pre-built installer actually puts all the framework files into the system location (/Library/Framworks/) and you will have a hard time moving those.
Your best bet is to build it from source and specify a different install location. ./configure -help will show you how. (Use the -prefix option)
Hard links could be a way to go in this kind of situation I guess.
Try this.
Create qt.conf file in the same folder as your qmake.exe file.
[Paths]
Prefix = E:/Qt/4.8.3
Follow this link for detail description.
http://richardt.name/blog/moving-a-qt-installation-directory/
Xcode 4 seems to have changed the deployment location of the application data which previously used to be in:
Users/INSERT_YOUR_USER_HERE/Library/Application Support/iPhone Simulator/
Does anybody knows where is it now?
Thanks,
Raj
PS: I am beginning to hate Xcode 4! Sick!!!
The Application is Sandboxed in the location you specified is correct.
/Users/INSERT_YOUR_USER_HERE/Library/Application Support/iPhone Simulator/
That is this is the place where the Application(.app file) the installation file will be there.
I was wondering that you were searching for the build file or the binary file(.ipa). In Xcode4 they have changed it. Previously in Xcode 3 versions the build file will be in the folder where you have created your Project along with all your .h and .m files.
Now the build file is in this Path
/Users/YOURUSER/Library/Developer/Xcode/DerivedData/YOURPROJECTNAME_SOMETHINGSOMETHING/Build/Products
EDIT: More simple solution would be In the left side Navigator window in the Project structure under the Products Folder you will find your app. Right click on that and select open in finder will you take you to folder containing your app .app file.
If you want .ipa file just drag and drop the .app file into itunes it will convert that into itunes file and again rightclik and show in finder will give you the ipa file
On my mac the folder never changed.
The sandbox of each application i have in the simulator can be found in:
${HOME}/Library/Application Support/iPhone Simulator/<SDK_VERSION>/Applications/<GUID>
If you right click on YOUR_APP_NAME.app file in xcode, it will take you to the sandbox folder.
You can find that in the following path:
/Users/User/Library/Developer/Xcode/DerivedData/Your-Project-Name/Build/Products/Debug-iphonesimulator/location.app
My problem is simple.
How do I add an icon that appears in Windows Explorer ?
Not the specific window I want the whole application like the command prompt has the C:\ on the icon.
Is there any way I can do that without creating files and linking it to the .pro file ?
Can I change that base icon in the Qt Creator ?
If so, how ? If not how do I do it otherwise ?
Thank you
PS I have tried the other questions out there and none of them work at all
Basicaly, on Windows, you have to create an .rc file for your icon and then add a line in you .pro file for it :
RC_FILE = myapp.rc
All the details are available in Qt Documentation: Setting the Application Icon
In Qt 4, you need to create a .rc file like this:
IDI_ICON1 ICON DISCARDABLE "myIcon.ico"
You should add this to your .pro file :
win32: RC_FILE += MyApp.rc
In Qt 5 there is an automated process for setting an icon to the application executable file .
You can just add the following to the .pro file:
win32: RC_ICONS = myIcon.ico
Also store the .ico file in your application's source code directory.
Note that this is only for Windows. There are other ways to set application icon in Linux and Mac.
Please help me with solution of how to set the app icon for exe file on windows mobile platform? It means that icon should displays in explorer, task manager and so on.
This might be of helpful to you.
QApplication::setWindowIcon
In Qt 4, you need to create a .rc file like this:
IDI_ICON1 ICON DISCARDABLE "myIcon.ico"
You should add this to your .pro file :
win32: RC_FILE += MyApp.rc
In Qt 5 there is an automated process for setting an icon to the application executable file .
You can just add the following to the .pro file:
win32: RC_ICONS = myIcon.ico
Also store the .ico file in your application's source code directory.
Note that this is only for Windows. There are other ways to set application icon in Linux and Mac.