def load_path(path)
      path = path.to_s
      check_error_string do
        @path = Pathname.new(path)
        load_path_impl(path)
      end
      self
    end
def load_path(path)
      path = path.to_s
      check_error_string do
        @path = Pathname.new(path)
        load_path_impl(path)
      end
      self
    end
Creates an component. Either data or path must be specified.
 @param [String] data the QML file data.
 @param [#to_s] path the QML file path.
 @return QML::Component