Expression qfont:totable() returns a table suitable for use with qt.QFont(table). All the supported fields are populated.
qfont:totable()
qt.QFont(table)
Example:
require 'qtwidget' f=qt.QFont{serif=true,size=12,bold=true} for k,v in pairs(f:totable()) do print(k,v) end