Expression qpen:totable() returns a table describing the pen. See the documentation of qt.QPen(table) for a description of the table fields.