Qt Declarative Binaries

At the Munich DevDays we got a lot of questions about QML - first among them was where to download it. To celebrate DevDays in San Francisco we are releasing binary snapshots that you can download now for Windows, Mac and Linux.

For those of you who couldn't attend DevDays, QML helps you create exciting UIs like this:

Remember - QML still isn't released so it isn't as solid as we'd like, but it should be enough for you to get started. The packages include a full version of Qt Creator - simply create a new QML project, let your creative juices flow and press play to view your creation in the QML viewer.

When Qt 4.6 is released, we'll make another more up to date package. As we approach this milestone we're focusing our attention on writing tests, squashing bugs, updating docs and giving the examples a little love - so by Qt 4.6 QML should be even better!


Blog Topics:

Comments

Commenting for this post has ended.

?
lulzfish
0 points
188 months ago

Damn, I'm running LInux x64.. I presume you haven't got the source anywhere yet?

?
Nils
0 points
188 months ago

Cooooool! This is the most exciting new stuff in Qt since the QLCDNumber. Now if only I would understand that funny new language ;-) Does anyone know a good tutorial?

?
Martin Jones
0 points
188 months ago

@lulzfish The Qt Declarative source is available from our public git server http://qt.gitorious.org/+qt... in the kinetic-declarativeui branch.

?
Martin Jones
0 points
188 months ago

@Nils the docs included in the package include a QML introduction and tutorials. In Creator view Help -> Contents -> Qml Reference. There's also plenty of QML examples and demos included in the package.

?
smoggy
0 points
188 months ago

I really hate GIT so here are some steps i made to get that branch ... took about 1 hour to do this !!!! I love Mercurial by the way.

A commento to declarative gui developers: please make more examples like the old examples/dynamic that show how to access c++ from javascript, that one caused great impact here at the company, the rest of the examples are just so so.

git clone "git://qt.gitorious.org/qt/k..."

from http://stackoverflow.com/qu...

git branch -a

git checkout -b kinetic-declarativeui origin/kinetic-declarativeui

?
Tim
0 points
188 months ago

Ooo shiny! Maybe enough to tempt me away from Android (that and the fact it uses Java!)

PS: Your CAPTCHA is still too hard.

?
kkoehne
0 points
188 months ago

@lulzfish: The binaries are just a snapshot of the 1.3 branch of creator (commit e68753b48ba515124897bb2a5439dd3d3b1ce819
), compiled against the kinetic-declarativeui branch (commit 6d7888aa59f08a0f91aaf844f27dc0c9462707f6
) from the Qt/kinetic repository . Should be easy to compile it yourself :)

?
Micah
0 points
188 months ago

Is there any place where one could leave feedback on qtdeclarative and QML? As a developer who follows git, things often get pretty broken and don't get fixed for a while, presumably because nobody else has noticed.

?
Nils
0 points
188 months ago

@martin Thank you for pointing me to the docs, that was too obvious ;.)

What I still don't get is the integration of traditional, native looking Desktop UI and QML based UI.

Can I put good old Qt Widgets inside a QmlView? Does this make sense at all?
Or should we still code a traditional QApplication/QMainWindow thing which uses a QmlView here and there?
Is the TextInput Element actually a QLineEdit or does it only use parts of its logic? As context menus don't work I guess it's something special.

This is a lot of new stuff to learn!

?
nvictor
0 points
188 months ago

hello all,

i have just tried the windows binaries on my windows xp box and everything worked fine on my side. i have a question about the tutorial example though.

i looked at the qml code. is that all that is required to make the game work? are there additional code.

the folder is named tutorial so i expected html files. they were not present? can anyone point to where i can find them?

thanks a lot.

?
Scorp1us
0 points
188 months ago

THANK YOU!! I can finally play with this!

However, immediately, I ran up against my usual limitation. Your text scaling is inadequate. Even when you set smooth: true, if you scale up, you see basically the bit map scaled up. I'd like to use an affine painter path, which is fine. I realize for 90% of the text out there, the default implementation is fine. But I can't figure out how to make a PainterPath item.

Could someone please tel me how I can use a PainterPath (which will render correctly) ? Thanks!

?
Scorp1us
0 points
188 months ago

Hrm... Looks Like I have to do some C++ coding.

Is there a way to use a plugin interface so that we can define the C++ classes in DLLs and not have to maintain our own viewer apps?

?
Daniel Molkentin
0 points
188 months ago

@nvictor: no, just open the main qmlfile and hit the run button. It will be shown in a special application called qmlviewer for preview purposes. QML is not a web technology, it can be used either with the viewer or be embedded into a Qt application. In the latter case, tt can also use QObjects that an application may expose to QML. I also recommend reading http://labs.trolltech.com/b... along with the docs (note that this post is a bit older, so semantics or names might have changed a bit).

?
Alan
0 points
188 months ago

Hi,

I have the mac version, and it does not appear to contain any qml documentation.

The Help -> contents menu takes you to this 404:

http://doc.trolltech.com/qt...

And the Help button at the left only has the ref doc, qmake manual and qt Designer Manual.

If I do a doc search in the IDE, it brings back links, but they bring up emptiness (like my life without QML!).

Is there somewhere else I can see the QML docs?

Thanks!

?
Martin Jones
0 points
188 months ago

@Nils: At this stage we have not provided integration with traditional widgets and QML. We see two primary use cases for Declarative UI as it stands now:

  1. creating entirely custom user interfaces
  2. as you've mentioned, adding some bling to more traditional UIs.

In time there will be more support for native look and feel, but we're concentrating on the foundations first.

The TextInput element is separate from QTextEdit, though they do have the same backend. The QML graphic elements do not impose any particular look and feel as much as is possible.

?
Martin Jones
0 points
188 months ago

@Scorp1us: We haven't any plugin ability for qmlviewer at the moment, but I can see how that would be quite beneficial for testing your own QML elements. I've added a task for it.

?
detro
0 points
188 months ago

The download link doesn't work for me.

?
kkoehne
0 points
188 months ago

@Alan: It is weird that the automatic registration of documentation did not work for you. The qch files are in the QtCreator.app bundle in Contensts/Resources/doc . You should be able to add these to the documentation registry via Preferences->Help->Documentation->Add...

?
Qt = fun
0 points
188 months ago

I downloaded the OS X version.

I copied Qt Creator and the examples into a new folder on my desktop.

I open QT Creator.

I File -> Open or Project -> Examples -> Declarative -> Anchors -> anchor-changes.qml

But I can't run this or any of the demos.

P.S. you Captcha is horrible.

All the items in the "Build" menu are dimmed?

Am I doing something wrong?

?
Zark
0 points
188 months ago

@kkoehne

I had exactly the same issue as Alan except I'm running Windows 7. QML documention was nowhere to be seen in QCreator. Preferences->Help->Documentation showed that qml.qch had been registered. I did a manual remove -> add and now it QML reference is visible.

?
Michael Brasser
0 points
188 months ago

@Micah: You can use the Qt Bug Tracker (http://bugreports.qt.nokia.com) to report any issues you find in declarative (or general suggestions) -- just select the 'Declarative' component when entering the bug.

?
nvictor
0 points
188 months ago

oh no! my first comment made no sense :)

@Daniel
i meant the game that's called samegame. i haven't found any c++ source along with the qml files. so i guess that's all that was needed to make a complete color matching game?

?
Martin Jones
0 points
188 months ago

@nvictor: Yes, samegame is pure QML and JS. No C++ needed. Not bad for 434 lines of code.

?
detro
0 points
188 months ago

Sorry: it's or network firewall that stops connections to FTPs -_-

?
nvictor
0 points
188 months ago

@Martin
you mean amazing :) i really like the concept.

?
Qt = fun
0 points
188 months ago

Did not work on my home OS X machine running the exact same OS and the exact Qt 4.6 beta framework.

:(

Guess I will wait for the next beta.

?
Matthew Steel
0 points
188 months ago

434 lines of code? If Qt gets a browser plugin it'd kill flash for games and make web applications actually usable. Being able to embed a browser in Qt in a browser in Qt in a browser (and so on) using QtWebKit would be weird, but the flexibility and speed compared with traditional web technologies would groundbreaking. Native widgets and drag-and-drop, not having to screw around to get things rendering right in IE...

If you guys don't make it happen I think I'll have to do it myself.

?
rajeshlal
0 points
188 months ago

Hey Guys
How can I run this in N900 ?

?
Jussi Toivola
0 points
188 months ago

I got quite excited about this, but wanted to have the same functionality in browser so I started to work on a JavaScript library called Ion, which allows you to create web pages in a way similar to QML. Trying to keep this fun, so IE is not supported ;) It is obviously in very unstable state, but QML's Clock example is ported and the code is quite close to the original.

Check it out at: http://bitbucket.org/jtoivo...

?
Martin Jones
0 points
188 months ago

@rajeshlal: Currently Qt 4.6, Qt for Maemo, and declarative are all in separate branches, with at least some code that is yet to be integrated, so there's no simple procedure. I recommend waiting until there is an official Qt Declarative release.

?
Dane
0 points
187 months ago

Qt has a "Browser Plugin" solution, so making a proper plugin should be pretty simple - a lot easier than trying to port it to JS (and then what would be the advantage over all the other slow web "2" technologies).

?
PaulT
0 points
187 months ago

Any idea when an example showing the integration of a custom widget (in c++) with QML be available?