Qt Creator: Where's the Resource Browser?
-
Thanks Volker - I know what you mean.
Ok, let me explain a little more: I already have a form created, just like you describe and everything is good. Now I'm trying to add resources (icons) using the resource editor you mentioned. But I can't find the resource editor.
That's my problem.
-
DemonGeek,
Have you manage to insert a resource file? I understand your question completely because I was like you, reading from the same tutorial that gave me the impression that a resource browser tool existed within the Qt Creator.
This is what I do to include a resource file into my project
From menu --> File --> New File or Project --> under Files and Classes panel, choose Qt --> On your ride window select "Qt resource file" -
Resources are managed in so called qrc files (Qt resource files). You cann add them the same way as as volker mentioned:
To add a new UI form, hit Ctrl-N and select “Qt” from “Files and Classes” on the left and then “Qt Resource File” on the right side.
It will appear under the folder Resources. Now you can double click the file and add resources directly. Is that what you were looking for?
-
Hi Gerolf, thanks. I have done what you suggested but it doesn't get me this mysterious Resource Editor/Browser that I'm reading about in the docs. I can add resources into the qrc file just like you said and then select them in Qt Designer but that's not exactly what the docs are describing.
I keep posting "this link":http://doc.trolltech.com/4.7/designer-resources.html - that's what I'm looking for. The docs clearly state that a Resource Browser/Editor exists in Qt Designer and that it allows resources to be added/edited on a per form basis.
Am I misunderstanding what I'm reading in the docs? Do you see those Resource Editor/Browser dialogs in Qt Creator when using the forms designer?
-
This is Creator
!http://i.imgur.com/a3NGW.jpg(Creator)!
And this is Designer
!http://i.imgur.com/mzFtf.jpg(Designer)! -
OK, I can see this is going nowhere fast. Zlatomir: I fully understand that there are two separate products called Qt Creator and Qt Designer but thanks for the screenshots anyway.
I am talking about the Qt Designer that is embedded in Qt Creator, look at this screenshot, the relevant text is highlighted:
And this is what the embedded Qt Designer in Qt Creator looks like:
And when I look through the Help docs supplied with Qt Creator I see this:
At this point I'm just going to give up and assume that the embedded Qt Designer in Qt Creator contains a subset of the standalone Qt Designer functionality and that the docs are incorrect.
Thanks to everyone who tried to help.
-
In the documentation for "Qt Creator":http://doc.qt.nokia.com/qtcreator-2.0.1/creator-design-mode.html the embedded designer doesn't have Resource Editor
Only the "separated" designer has it.
LE: you can only select resources like pixmap, etc... but the Resource editor is only in Creator (isn't "duplicated" in embedded designer too)
-
That's the same documentation that I found the references to the Resource Editor in (when I hit F1 in Qt Creator) - it seems that the docs refer to the standalone product and not the embedded version. I wish they actually stated that, it would have saved me wasting a lot of time.
Thanks for your help Zlatomir.
-
It depends on how you navigate in the documentation
Start "here":http://doc.qt.nokia.com/ click on Creator version you use
then Developing Application UI and you have the Designer embedded in Creator
see link: http://doc.qt.nokia.com/qtcreator-2.0.1/creator-design-mode.htmlIn case you are outside of documentation for Creator they talk about stand-alone Designer.
see link: http://doc.qt.nokia.com/4.7/designer-manual.html -
Well I guess that might be true but just to illustrate what I mean: go to that link you provided "http://doc.qt.nokia.com/qtcreator-2.0.1/creator-design-mode.html":http://doc.qt.nokia.com/qtcreator-2.0.1/creator-design-mode.html, scroll down to the bottom of the page and you'll find the following link right there:
bq. For more information on Qt Designer, see "Qt Designer Manual":http://doc.qt.nokia.com/4.7-snapshot/designer-manual.html.
Which takes you to the standalone Qt Designer documentation that includes the details about the resource editor.
And that's exactly what I did in the first place and is the reason for all this confusion. The docs are not at all clear - unless you already know what you're doing of course.
-
The documentation is indeed misleading. You could file an issue in the "bug tracker":http://bugreports.qt.nokia.com (possibly in the Qt Creator project), so the people in charge of the docs can fix it.
-
What the hell! Same problem here, why are they separated?? If I run Qt Designer stand alone I have the Resource Browser window, but inside Qt Creator not. Is very annoying and I think that demonGeek have an essential question: why are separated?
It could be very useful have same functionality inside Qt Creator. Why is missing?
Thanks in advance