I am developing an application where some parts of the GUI are loaded dynamically from UI files that are specified inside a configuration file. These widgets are added to the main application as dockwidgets.

I would like to habe the user specify the default DockWidgetArea inside my configuration file.

I could use if-elseif to test against the four possible area-strings or a static QMap but I found QMetaEnum and think this would be the way to go?

But how do I use QMetaEnum? I think I would have to get a QMetaEnum instance from the QMetaObject instance that did define the enum. But the DockWidgetArea enum is defined inside the Qt module. Does the Qt module hava a static QMetaObject?

I searched the Qt Designer source for metaEnum but that did not help me.

Thanks in advance,
-Jens