Saturday, November 28, 2009

exploring Qt

I have been experimenting with Qt for MCrux/Ubuntu port since last couple of days.. I found the Qt C++ APIs are much cleaner compared to the existing VC++/windows specific stuffs.

Current JavaScriptCore(JSC) APIs are native C APIs. This means that If we want to have Object Oriented design for all our extend-able modules then we need to have some dirty hack to make them work with static functions to actual object function call. I have taken a lot of pain to achieve this things in windows.

Qt Provides this functionality by default with QObject. We need to derive our class from QObject. Qt achieves this using "SIGNAL"s and "SLOT"s. This makes the design way cleaner. I will cover the fundamentals of them in a separate blog post.

Apart from having all these functionalities, I am not sure I can continue with QtWebKit (at-least for now). QtWebKit-JSC support is in a very primitive stage. They have exposed all the native data types but custom datatype support is in very primitive stage. This means that I can't play with my custom object and throw it back and forth from JavaScript to C++. I also can't set a custom QObject as property of any other QObject and expose them to JavaScript. The lack of these functionalities seems to be blocking me for using QtWebKit.

2 comments:

Toby O'Donnell said...

I was looking for smart mobile application developers. My familiar owner of the IT company to advised me the professionals who help implement projects. Such software development service http://www.nixsolutions.com/services/custom-software-development/ is the best progressive on the market of the developer of the apps I think.

Unknown said...

if you need help in programming, visit https://youteam.co.uk/