Class: Qt::CoreApplication

Inherits:
Base show all
Defined in:
lib/Qt/qtruby4.rb

Instance Method Summary collapse

Methods inherited from Base

#%, #&, #*, #**, #+, #-, #-@, #/, #<, #<<, #<=, #==, #>, #>=, #>>, #QCOMPARE, #QEXPECT_FAIL, #QFAIL, #QSKIP, #QTEST, #QVERIFY, #QVERIFY2, #QWARN, #^, ancestors, #is_a?, #methods, private_slots, #protected_methods, #public_methods, q_classinfo, q_signal, q_slot, signals, #singleton_methods, slots, #|, #~

Constructor Details

#initialize(*args) ⇒ CoreApplication

Returns a new instance of CoreApplication.



584
585
586
587
588
589
590
591
# File 'lib/Qt/qtruby4.rb', line 584

def initialize(*args)
  if args.length == 1 && args[0].kind_of?(Array)
    super(args.length + 1, [$0] + args[0])
  else
    super(*args)
  end
        $qApp = self
end

Instance Method Details

#execObject

Delete the underlying C++ instance after exec returns Otherwise, rb_gc_call_finalizer_at_exit() can delete stuff that Qt::Application still needs for its cleanup.



596
597
598
599
600
# File 'lib/Qt/qtruby4.rb', line 596

def exec
  method_missing(:exec)
  self.dispose
  Qt::Internal.application_terminated = true
end

#exit(*args) ⇒ Object



606
607
608
# File 'lib/Qt/qtruby4.rb', line 606

def exit(*args)
  method_missing(:exit, *args)
end

#type(*args) ⇒ Object



602
603
604
# File 'lib/Qt/qtruby4.rb', line 602

def type(*args)
  method_missing(:type, *args)
end