QBash, displaying bash.org quotes with Qt and C++

What’s QBash?

A couple of days ago I started work on a small C++ app in the hope of learning a little bit more about Qt.

It took me about 4 hours to relearn C++ and get used to Qt. In the end I had a working app. Today, I polished it a little and managed to build it on Windows.

The app is small and useless. It gets a page from bash.org and displays one quote. You hit a button and it gets a new quote.

I thought it would be a nice project for learning Qt, because it uses networking, regular expressions and the Qt string class.

QBash running on KDE

The thing that impressed me with Qt, was that I was able to build the app on Windows without changing a single line of code. I expect that bigger apps will have some problems.

Get the code

As with all my little projects, you can have the code: qbash.tar.gz.

Now, don’t laugh. My C++ is a bit rusty, I haven’t used it in a couple of years. I’m still getting readjusted to manual memory management.