Having created a shell of our app in step 2, porting the image cleaner code in step 3, we’re now at the stage where we can to port our command line XML cleaner code to Qt. At the end of this post we’ll have a fully functioning C++ Qt app.
Posts Tagged ‘programming’
Porting to the Qt C++ Framework :: Part 1
In this post we’ll start the process of porting a simple command line C++ application to the Nokia Qt framework. Well take a quick look at the code in question, then talk about how we’ll port it.
The application in question is a simple tool for cleaning up the export of a Print Publishing CMS system for eventual use in a Web-based CMS. By simple I mean we open a folder and loop through it, diving into sub-folders as needed to:
- Remove all images tagged with a _bw_
- Open XML ‘story’ files and remove extra line breaks from headline elements, and clean up content HTML.
The application started as an Apple Xcode project, and has now moved into NetBeans 6.8 on Linux. In the end I hope to learn a good deal about the Qt framework, as well as proper C++ application development.
Multi-Threaded JavaScript — A Quick Look.
The strange thing about this post is that this isn’t exactly news–ever since FireFox 3.5 came out in June of ’09, and along with Safari 4 and Google Chrome using a slightly different mechanism, these browsers all support OS Level multi-threading.
The question is, should you care?
Posix Threads In C++
It’s sometimes hard to find a good example of working with threads in C++. Thus, in the course of implementing a very simple working example I decided it wouldn’t hurt to post what I came up with.