Fixed proxyPort error caused by casting QVariant to QMetaType