Expression qt.QVariantMap(table) creates a new QVariantMap initialized with the contents of the table table. When the argument table is omitted, an empty map is returned.

Example

 require 'qt'
 a = qt.QVariantMap{a=23,b=45,c="foo"}