Using qrc file in ui file

Feel free to ask any question here
Post Reply
jsm
Posts: 10
Joined: Fri Jul 19, 2013 9:18 am

Using qrc file in ui file

Post 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
daniel
Site Admin
Posts: 7710
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: Using qrc file in ui file

Post 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.
Daniel, CloudCompare admin
jsm
Posts: 10
Joined: Fri Jul 19, 2013 9:18 am

Re: Using qrc file in ui file

Post 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
daniel
Site Admin
Posts: 7710
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: Using qrc file in ui file

Post by daniel »

What version of qt designer are you using?!

Here is where is mine ;)
Qt designer RC browser
Qt designer RC browser
qtdesigner_rc_browser.jpg (210.87 KiB) Viewed 7581 times
Daniel, CloudCompare admin
jsm
Posts: 10
Joined: Fri Jul 19, 2013 9:18 am

Re: Using qrc file in ui file

Post 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
Post Reply