class Qt::Variant
Public Class Methods
from_ruby(x)
click to toggle source
Convert any marshallable ruby object into a QVariant.
# File lib/rui/toolkits/qtbase/qt.rb, line 18 def self.from_ruby(x) new(Marshal.dump(x)) end
Public Instance Methods
to_ruby()
click to toggle source
Extract the ruby object contained in a QVariant.
# File lib/rui/toolkits/qtbase/qt.rb, line 25 def to_ruby str = toString Marshal.load(str) if str end