Class: RubyQt6::QtWidgets::QMenu

Inherits:
QWidget
  • Object
show all
Defined in:
lib/qt6/qtwidgets/qmenu.rb

Overview

Direct Known Subclasses

Bando::QMenu

Instance Method Summary collapse

Constructor Details

#initialize(title, parent = nil) ⇒ QMenu

Parameters:

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


21
22
23
24
# File 'lib/qt6/qtwidgets/qmenu.rb', line 21

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