[Development] QStandardItemModel moved to "QtWidgets" module, not good idea?

Ville M. Vainio vivainio at gmail.com
Tue Jan 3 11:30:21 CET 2012


On Mon, Jan 2, 2012 at 8:20 AM,  <gunnar.sletta at nokia.com> wrote:

> QIcon is a style concept and belongs together with QStyle and we do not want QStyle in QtGui. As both the QFileSystemModel and QStandardItemModel relies on it, they cannot be moved to Gui. At least not without some surgery, and the surgery would imply source breakage so also not an option.

So, in summary, we need to discover a new way to ease porting of Qt4
QML apps that use these classes to Qt5 (for platforms and apps that
don't want to ship the whole widgets module for just a few silly
classes).

Where would this work happen? Would such a compatibility module (Qt
add-on?) have a chance of residing in Qt5 upstream, or should it be an
ad hoc project shipped independently?

Now if we are indeed forking QSIM, it creates a good opportunity to
fix problems in it, like making setRoleNames public. Or making it more
convenient to use from QML in other ways.



More information about the Development mailing list