Perfect then. I'll check it on Linux. The program I want to do is on Linux, but before moving I was testing in Windows because the only code that uses other libraries that are not from QT are available in Linux and Windows. Now that I think about it, it doesn't make much sense to do it that way, but I'm a noob after all and felt more comfortable working with QT Creator in a system I'm more familiar with (you know, until I get the hang of it). Thanks for lining that out, I'll tell you how it goes when I check it.
I am surprised it is missing in the Windows Qt SDK given the headlong rush to QML everything. There are QML components for Designer in the SDK but they seem to be only Symbian.
Yeah, there are others too that are on Linux, but not in Widnows.
It works on Linux perfectly, look at the attachment. You choose File->New File or Project->Qt Widget Project->QT Gui Application
Once its created you must edit the .pro file and add under SOURCES:
QT += declarative
This step is important, if you don't do it, you won't be able to compile the application.
Something to note is that QDeclarativeView is not available in Windows by default. In Windows you can insert a Graphics View (under Display Widgets) and after adding the above to the .pro file you can right click it and promote it to QDeclarativeView. However, there won't be a way to specify its source on the designer and from what I've tried it doesn't work either through code.
Only way I found around this is to make the project on linux and then open it in Windows and even though, you won't see the QDeclarativeView preview on the designer. You will just see a white component in the screen. Anyway, this time you will be able to set its source on the designer on the property segment of the screen all the way to the end. It says source in bold.
Last edited by StealthCentroid; 15th May 2012 at 04:42.
Bookmarks