QtCreator and Desktop Components
I am using QtCreator 2.3.1 on Mac OS 10.7.2 and have installed the Desktop Components from http://qt.gitorious.org/qt-component...p/trees/master
I did my qmake, make and make install
It would appear that everything is installed correctly as if I do a import QtDesktop 0.1 I can see the new components in the design view.
The problem is that if I drag one of these components onto the canvas I cannot see that component. It appears correctly in the edit view but does not display when running the program.
I built against 4.8.0 and 474 and the appropriate folder was created in imports.
I have tried everything that I can think of including removing, remaking, reinstalling everything again etc etc but still cannot get the components to appear in the design view.
Your help would be very much appreciated.
Code:
import QtQuick 1.0
import QtDesktop 0.1
Rectangle {
width: 360
height: 360
Text {
text: qsTr("Hello World")
anchors.centerIn: parent
}
Button {
id: button1
x: 194
y: -31
width: 100
height: 30
text: "Button"
}
}
Re: QtCreator and Desktop Components
Do you by any chance have a file called Button.qml somewhere? Also the readme says you should import Qt Quick 1.1 and not 1.0.
Re: QtCreator and Desktop Components
I do have a Button.qml, in my imports folder.
I have tried importing QtQuick 1.1 but it does not make any difference.
When I run the app then the Button does appear. It is just in the Designer window that I cannot see the button.
I also noticed then when I place a button it has a negative y value. Naturally I increase this to bring it into the canvas. Don't know if this is significant in any way.
Re: QtCreator and Desktop Components
I'm a bit confused. First you said the component appears in the edit window but doesn't show up when you launch the application and now you say it doesn't show up while editing but does work when the app is launched. So which is it? Also do the examples bundled with Desktop Components work or not?
Re: QtCreator and Desktop Components
Sorry to have been confusing, I was confused myself. When the app is run then the components appear as expected. When in the designer the components can be dropped onto the rectangle but do not show.
This means that I can do the design in QML but would like to be able to design in the designer view.
Thanks for your patience.
Re: QtCreator and Desktop Components
I have the same problem! Do you find out what the problem?
Re: QtCreator and Desktop Components