Class: RubyQt6::QtWidgets::QPushButton

Inherits:
QAbstractButton show all
Defined in:
lib/qt6/qtwidgets/qpushbutton.rb

Overview

Direct Known Subclasses

Bando::QPushButton, QCommandLinkButton

Instance Method Summary collapse

Constructor Details

#initialize(text, parent = nil) ⇒ QPushButton

Parameters:

  • text (String, QString)
  • parent (QWidget) (defaults to: nil)


18
19
20
21
# File 'lib/qt6/qtwidgets/qpushbutton.rb', line 18

def initialize(text, parent = nil)
  _initialize(T.to_qstr(text), parent)
  _take_ownership_from_ruby(self)
end