[Interest] how to replace QImage::setAlphaChannel with composition modes?

2012-08-17 Thread frares
Hi, The docs say that setAlphaChannel is obsolete, and also "Use one of the composition modes in QPainter::CompositionMode instead." I have tried several ways, but did not succeed. Maybe I didn't understood quite well those composition modes, after all. Any hints? Thanks Francisco __

[Interest] How to correctly use “application/x-qabstractitemmodeldatalist” mime type in derived model/view clas

2012-07-11 Thread frares
Hi, all, I'm building an application using QAbstractItemModel for custom types of items in a QListView and in a QTreeView. Those items have to be dragged/dropped inside the QTreeView – both copy and move – and dragged from the QListView and dropped to the QTreeView. Although much of the f

[Interest] drop indicator not shown in custom QTreeView

2012-06-19 Thread frares
Hi. Before I forget: I'm using Qt 4.8.1, built using gcc 4.5.3 and QtCreator 2.5.0 under Linux (Gentoo). Although I have managed in the past, somehow, to make the drop indicator to appear, now id does not anymore. I am dragging items from a custom toolbox page created programatically. T