All programmers have a set of useful tools. When we write something that could be of general value, we will publish it here.
The class is licensed as public domain, so you are free to use it for whatever you want. But we hope you will send patches, should you improve on it.
These sources do not come fully tested. It might very well be that there are bugs here. We give no guarantee at all on this code. Use it at your own risk.
This class provides a flattened view of a tree model. We 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 we built this proxy model that to the combobox looks like a list model, but takes it's content from the tree. Later, it was generalized 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.
This code is a very simple benchmark we 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 we 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 this blog entry for more information about this.