Thursday, January 20, 2011

Qt, improving day after day

Hey guys,

great news! Trolltech is working on merging both current Qt SDKs namely Qt SDK based on Qt 4.7 and Nokia Qt SDK. They are both including different features such as the deployment of application targeting Maemo or Symbian^3 for the Nokia Qt SDK, etc. Anyway, this is a great news!

Furthermore, the Qt Mobility framework has been finally included, which means: it is now possible to work with multimedia within QML. I really have to take a look at this one. ;)

You can read more about this here.

Enjoy!

EDIT:
Your attention please, I just installed the Qt SDK, full version. I imported the "First Tutorial" project but it didn't work. Here is the solution:

If you previously created your application with a version of QtCreator which generates a .qmlproject with
import QmlProject 1.1
You just need to downgrade this import to 1.0. Furthermore, since the version changes, the mainFile option is not available anymore. Please comment it out.

In your .qml files, do not worry about changing this:
import QtQuick 1.0
This still runs and do not impact the application (as far as I can tell). Only old QtCreator version do not support this import, if it's the case, change it to:
import Qt 4.7

Friday, January 7, 2011

Qt and Ruby, yes it's possible

Hey guys,

do you remember this article on Online File Synchronizer I shared awhile ago from one of my friends? Well, the same friend seems to be also interested in Qt. But unlike me, he knows Ruby.

That being said, he wrote an article (a short introduction actually) on how can people use QtRuby to develop easily nice applications. You can find the article here.

Enjoy. :)

Monday, January 3, 2011

First QML tutorial

Hello there people,

Here comes finally my first little introduction to QML. Well, I’ve been talking a lot about it… Finally you’ll understand why.

I have installed Qt 4.7.1 and QtCreator (which version, I don’t remember and anyway, it’s not very important for you). I just generated a normal QML project, and here is what I get:
import QtQuick 1.0

Rectangle {
    width: 360
    height: 360
    Text {
        anchors.centerIn: parent
        text: "Hello World"
    }
    MouseArea {
        anchors.fill: parent
        onClicked: {
            Qt.quit();
        }
    }
}
It is really important for you to understand this small code although it is actually self-explaining… I know, you are not stupid, but I’ll do it anyway. :)