…just another hippy blog

Software development, cold beer, photography and other high-caffeine, bikini powered, topics.

Archive for posts tagged with 'qt'

Sorting functors and bikinis

I stand up next to a mountain
Originally uploaded by Mark Witton.

Sorting is one of the most common operations done on a data structure and it’s one of the best examples for generic code and C++ templates.
Qt provides a handy qSort() method which comes in different flavours.
One is quite interesting as it allows you to use a custom sort function.

void qSort(RandomAccessIterator begin, RandomAccessIterator end, LessThan lessThan)

LessThen is actually a template parameter. I guess most of the times you will just use a pointer to a global function.
The drawbacks are that you cannot pass parameters to the sorting function, unless you use global static variables. And that’s rather ugly.

Read more

No comments

Untitled post about wynona’s puppet

Coffee … break !
Originally uploaded by Christiane Michaud.

Sorry folks, I was lying. This post is not about wynona. I’m really really sorry.
I have spent the whole day trying to build an apache module using Qt and qmake so I have to blog about my success.

I know, the guys at apache (btw. I’m really impressed by their work) advise against writing C++ modules or linking shared libraries, but I’ll have to do that for a project I’m working on at Clickout Ltd. so we’ll have to discuss those issues some day.

Nevertheless, the traditional mod_helloworld buit with no hassle on windows but there was no way to make it work on Linux/GCC so I had quite some fun figuring out the issue. So, here is a quick tutorial :-)
Read more

2 comments

Goodnight


Originally uploaded by pphuang.

1.

I have been working with Eclipe/CDT and the Qt integration and it’s pretty cool.

Eclipse became my favourite Java IDE when I started working on a big Java project some time ago and, althought I still feel it is pretty slow and overbloated, I still like it.

The Qt integration works pretty well - even with complex Qt projects.
I could not manage to make it work with gdb yet but who cares… I have a buggy gdb so there is no way I can debug on Linux right now *___*

2.

Some disgusting “reporter” working for the second Italian national television, together with two rotten politicians (one from the left and one from the right side of the National Dump) were claiming that “television has invaded politics”. If you don’t know about free speech and freedom of information here in Italy, and about what is going on in these in these weeks (or rather years), then you won’t understand, sorry.

Nevertheless, this one sounds new to me. It’s almost better than comparing Beppe Grillo’s V-Day initiative to terrorism. Thank you Maurizio Martinelli, I love you.

3.

I hate it when I realize I have spent 1 hour finding a bug that is more stupid than an aubergine playing Peter Griffin.

Btw. I have fixed a couple of bugs in the movida import wizard and multiple movies are now being parsed (and previewed) correctly. Check out the SVN or the latest development snapshot on the website.

May the nabaztag/tag be with you.

No comments

Tempi Moderni / Modern Times

Tempi Moderni / Modern Times
Originally uploaded by hippy.dream.

Ladies and gentlemen and smizmars,

I’m sorry but I’m too f-in’ busy and tired to update the blog or to work on Movida or finish the new Movida website I had started two months ago *___*

I am currently working on a cross platform implementation of the Office 2007 “Ribbon UI” using Trolltech’s Qt framework.

I suppose I will start working again on Movida this summer. I really need to finish the Internet import wizard before I can publish a preview release.

I think it makes no sense without it as I would never want to fill all the fields by hand. At least not the first time I create my movie collection in Movida.

Bye bye and thanks for all the fish.

No comments

Movida import wizard

The new Movida import wizard

I have been playing around with the new QWizard class in Qt 4.3 and it’s a pretty useful piece of code :)
As you can see from the screenshot, it’s being used to create a standard movie import wizard for Movida. Plugins (like the IMDb & co. import wizard I’m working on) will be able to use this widget for their own import routines, providing a consistent user interface between different import plugins.

The SVN doesn’t contain the updated code yet because of some bugs that need to be fixed.

The current version of QWizard (Qt 4.3.0 beta snapshots) is quite flexible even though there is no (easy) way to handle pages that need to do some long processing. I was trying to either disable the back button or ask the user for confirmation when the query is being sent to the Internet but there is no way to do this.

A suggestion has been sent to the guys at Trolltech and I hope they find it interesting enough to add this feature before the final 4.3 release.

No comments

Next Page »