Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-16658

QItemEditorFactory::setDefaultFactory(factory) dump all basic editor factories, Color Editor Factory example

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 4.7.1, 4.7.2, 4.8.4, 5.0.0 RC 1
    • Widgets: Itemviews
    • None
    • ubuntu 9.10, centos, Windows 7

      See http://www.qtcentre.org/archive/index.php/t-19600.html

      Looking at the documentation http://doc.qt.nokia.com/4.7/qitemeditorfactory.html, calling QItemEditorFactory::setDefaultFactory will set a new factory that will be applied to all delegates in all views. The only way to set a new default factory is to start with a new one by calling the default constructor:

      QItemEditorFactory newFactory = new QItemEditorFactory().

      If you then set

      QItemEditorFactory::setDefaultFactory(newFactory);

      I would expect the default behaviour of delegates to still be present (being able to edit numbers and QStrings etc. in views the usual way), but it actually disables all of that functionality everywhere.

      Creating a new QItemEditorFactory() should initialize that default functionality from the get-go.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            muenalan murat uenalan
            Votes:
            5 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes