alitoh
9th May 2011, 19:15
I'm following this (http://doc.trolltech.com/4.5/itemviews-coloreditorfactory.html) documentation page because I'm trying to implement a ColorComboBox Delegate of sorts to work over a custom data type (which recieves a QAbstractItemDelegate).
Thing is, this documentation page is either wrong or I'm just not getting it.
In http://doc.trolltech.com/4.5/itemviews-coloreditorfactory-window-cpp.html
that document, you can see something like this (at the very end)
setLayout(layout); setWindowTitle(tr("Color Editor Factory"));
That does not compile over a (reasonable from my PoV) "Identifier not found" error on "setLayout".
How can I fix that? this pointer doesn't provide a setLayout method.
How reliable are those documentation pages in general? It just so happens that that very documentation is EXACTLY what I need: A delegate for handling a color list selection.
Thing is, this documentation page is either wrong or I'm just not getting it.
In http://doc.trolltech.com/4.5/itemviews-coloreditorfactory-window-cpp.html
that document, you can see something like this (at the very end)
setLayout(layout); setWindowTitle(tr("Color Editor Factory"));
That does not compile over a (reasonable from my PoV) "Identifier not found" error on "setLayout".
How can I fix that? this pointer doesn't provide a setLayout method.
How reliable are those documentation pages in general? It just so happens that that very documentation is EXACTLY what I need: A delegate for handling a color list selection.