All programmers have a set of useful tools. When I write something that could be of general value, I will publish it here. Right now, there is only one class to download.
The class is licensed as public domain, so you are free to use it for whatever you want. But I hope you will send me patches, should you improve on it.
These sources do not come fully tested. It might very well be that there are bugs here. I give no guarantee at all on this code. Use it at your own risk.
This class provides a flattened view of a tree model. I had a project that included a custom built tree model, and later needed to give the user the option of choosing from the tree contents in a QComboBox. This isn't directly possible, so I built this proxy model that to the combobox looks like a list model, but takes it's content from the tree. Later, I generalized it so to have an automatic way of showing any tree model in a combobox.
See this blog entry for a description on how you can use this class.
The code here is a very simple benchmark I did to show to a customer that the thread pool is faster than creating individual worker threads.
This actually wasn't as easy a conclusion as it should have been, because they could see that each worker request in their code took longer with the thread pool than when they did it with QThread. So I built this benchmark application to show to them that even though the individual request might take longer, the total time spent is smaller when using the thread pool.
See my blog entry for more information about this.