This is necessary to support having a picker within QML. Eventually, this should replace the existing widget-based one.