Pages

Tuesday, August 25, 2009

Playing with QT Creator

I want to branch out from C systems programming and try some GUI programming. Nokia's QT Creator looks like an excellent development environment and QT (originally from Trolltech) has been around a long time. It seems to be a safe place to start.

I tried a couple of examples from the tutorials and they worked just fine. I also want to exercise some test driven development skills. Well, what do you know - QT has QTestLib for writing and supporting the development of unit tests. That sounds like just the ticket.

Unfortunately, my out-of-the-box experience isn't what I hoped for. QT has a meta-object compiler which parses the C++ source code and generates a .moc file. I was trying to compile the testqstring tutorial example, but for some reason moc.exe wasn't generating any output. I could see from the command line that moc.exe was being called, but no output was generated, so the compile phase failed.

I'm not sure how to resolve this (what should be an incredibly simple thing to do), so I posted a question on the QT Labs general discussion forum. We'll see what happens.

No comments:

Post a Comment