Page 1 of 1
Using qrc file in ui file
Posted: Thu Nov 14, 2013 11:20 am
by jsm
Hi all,
I am trying to create my own dialog window that I want to add into the properties tree (on the left, in the main window). I managed to add and display this dialog window but I do not understand why my icons do not appear ! I know there is somrthing with resources file (.qrc). I added my icons in the icons.qrc file, but I have no access to it from my ui file (from Qt designer). How can I do ?
JS
Re: Using qrc file in ui file
Posted: Fri Nov 15, 2013 8:02 am
by daniel
In Qt designer, once your ui file is opened, open the "Resource Browser" (if it's not already visible - see the View menu) then click on the pencil icon, and then on "Open resource file" icon on the bottom left part of the "Edit Resources" dialog (the small blue folder). Then select here the "qCC/icones.qrc" file.
Re: Using qrc file in ui file
Posted: Fri Nov 15, 2013 1:57 pm
by jsm
Hello Daniel,
Thanks for your answer. Yes, that is what I read on the web, but I really do not find this "ressource browser". And yet, I think I have looked everywhere ! That is why I was asking this question, thinking that I had to do something special specific to CloudCompare... So. I do not know what I can do. Thanks anyway.
JS
Re: Using qrc file in ui file
Posted: Fri Nov 15, 2013 3:08 pm
by daniel
What version of qt designer are you using?!
Here is where is mine ;)
- Qt designer RC browser
- qtdesigner_rc_browser.jpg (210.87 KiB) Viewed 7561 times
Re: Using qrc file in ui file
Posted: Fri Nov 15, 2013 3:53 pm
by jsm
I have not this "Ressource browser".
Ok. I think I know. I am working with Qt Creator, in the designer tab. I thought it was the same. My interface is quite similar to yours, except I have some other buttons onto the left... I will try with the real Qt Designer.
Thanks.
JS