Class: RubyQt6::QtWidgets::QLabel
- Defined in:
- lib/qt6/qtwidgets/qlabel.rb
Overview
Direct Known Subclasses
Constant Summary collapse
- INITIALIZE_ARG_ERROR_MESSAGE =
"Could not resolve method call for #{name}#initialize\n" \ " 2 overload(s) were evaluated based on the types of Ruby parameters provided:\n" \ " initialize(QWidget)\n" \ " initialize(QString, QWidget)\n"
Instance Method Summary collapse
- #initialize(*args) ⇒ QLabel constructor
Constructor Details
#initialize(parent = nil) ⇒ QLabel #initialize(text, parent = nil) ⇒ QLabel
37 38 39 40 41 42 43 44 45 |
# File 'lib/qt6/qtwidgets/qlabel.rb', line 37 def initialize(*args) parent = T.(args, -1) case args.size when 0 then _initialize(T.to_qstr(""), parent) when 1 then _initialize(T.to_qstr(args[-1]), parent) else raise ArgumentError, INITIALIZE_ARG_ERROR_MESSAGE end _take_ownership_from_ruby(self) end |