Hi,
I created a ui form in designer, this form has a QListView and other QIcon.
I am not using a resource file .rc. The files are in a directory on my filesystem. So, I browse to the icon I want and it shows up in the form (/resources/images/icons). I save the finished ui form by 'viewing code' then save to my windows folder, as ui_form.h
This is my project directory structure.
myproject/bin -- qt application binary
myproject/resources/images/icons/
myproject/windows
myproject/scenes. ..etc.
myproject/ui forms/form1.ui
myproject/ui forms/form2.ui ..etc
My executable is in the bin directory. I changed my .pro file to put the binary in this directory.
The problem is that if the binary is in the bin folder, the icon locations SHOULD be "../resources/images/icons". However the designer is saving them as QIcon ("/resources/images/icons"). So they don't show up and I have to change the form manually. (if I save the ui forms in the binary folder it is ok). I know this is probably a basic setup question I am overlooking something.
Thanks for your replies.
Bookmarks