Skip to content

Zchydem's Blog

#Qt, #Linux, #Programming, #MeeGo…

Archive

Tag: QML

It’s been a while since I did any experiments with Qt. I decided to take a look at Qt5 and QML. The first thing was to fetch the source code and figure out how it can be built. I was really surprised that in the end I didn’t encounter any problems while building it.

Building Qt5

It took only few steps to build Qt5 on Mac.

  • git clone git://gitorious.org/qt/qt5.git qt5
  • cd qt5
  • ./init-repository
  • qtrepotools/bin/qt5_tool -c -p -b
You can check out qtrepotools -h to choose what ever options you want.

Playing with QML

After building, you find all the stuff from qt5/qtbase directory. There is a bin directory where all the required binaries are. If you want to test how new QML with really fast scene graph works, you can try to run demos using qmlsene binary. Here’s a video where I run four different particle demos on not-so-new 13″ MacBook Pro without any big problems.

This blog post was short this time. If you are interested in what happens in the Qt development, the Qt5 is really worth to check. Naturally there are also other things happening in the background like modularization in addition to QML development. Personally, I think the best way to follow Qt development is to read Qt Labs Blog. But in the end I can’t say anything else that good work Trolls. Can’t wait that they will get Qt5 released in 2012.

Thanks for reading my blog!

 

I had a little break of developing Qt stuff, but after receiving N950 from Nokia, I decided to continue with QuickFlickr development. The original target HW for QuickFlickr has always been Nokia’s next “linux phone”. Even though, Nokia kindly gave me two Symbian devices, I never got so excited to do development on Symbian platform/devices.

I also feel responsible for continue my Qt Ambassador project (I need to update the project page. It’s so out-of-date) too, so here I am now, with a one preview video where QuickFlickr runs quite smoothly on N950. Let’s watch it first:)

The video above is quite heavily edited because the lack of my video shooting skills. With editing I mean that I did stupid things while shooting the video so I cut few clips away.

continue reading…

I have never developed anything on Symbian platform and the reason for this is that I couldn’t care less about the Symbian before. I have always been more into about Qt and gadgets that run Linux rather than Symbian.

Now the things have changed a bit – it’s possible to develop Qt applications for Symbian platform which makes  easier to start app development on Symbian for me as a Qt developer. The other reason is, thanks to Qt Ambassador program, that I happen to own N8, which btw is a pretty good HW. To be honest, I can’t praise much the UX on N8, but still, it’s a good hardware.

So I have spent couple of evenings to getting familiar with Symbian development. The most natural way to start it (for me) is of course trying to port QuickFlickr for N8. Before writing more stuff, here’s the video where I run the latest version of QuickFlickr with new UI on N8.

continue reading…

I’m a real newbie when it comes to OpenGL, but my personal plan is to try to learn as much as possible about OpenGL ES 2.0 and be able to understand it better e.g. how things like Qt Scene Graph works. Of course, it would be nice to be able to contribute to the Qt Scene Graph project too at some point.

Now I have spend few evenings trying to study how you can do things with OpenGL and I went little bit side tracked at some point. I started do some research how could use a QML application in 3D. The solution was actually much easier than I thought. Here’s the PoC video about running Samegame, the QML demo application rendered on a 3D cube.

As you can see from the video, it’s not perfect yet. The mouse events aren’t delivered with the correct coordinates to the QML item, but it shouldn’t be a big deal to transform them to the correct coordinates.

continue reading…

I’ve planned to get familiar with Qt Scene Graph for a several months now, but Gunnar Sletta’s presentation at the Qt Developer Day 2010 in Munich kicked me to actually do something. The goal of my Qt Scene Graph research project can be listed as follows:

  • How to build and use Qt Scene Graph
  • Get the whole picture of scene graph architecture
  • And check out the code i.e how it works
  • Try to create something of your own by using Qt Scene Graph

Before going any further, I go directly to the last bullet point and show a video about small QML demo which uses Qt Scene Graph. I borrowed the particle parts from Qt Scene Graph’s testing code and created few vertex and fragment shaders for rotation, scaling and manipulating colors.

continue reading…