Class: Qt::CoreApplication
Instance Attribute Summary collapse
-
#thread_fix ⇒ Object
readonly
Returns the value of attribute thread_fix.
Instance Method Summary collapse
- #disable_threading ⇒ Object
-
#exec ⇒ Object
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.
- #exit(*args) ⇒ Object
-
#initialize(*args) ⇒ CoreApplication
constructor
A new instance of CoreApplication.
- #type(*args) ⇒ Object
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.
598 599 600 601 602 603 604 605 606 |
# File 'lib/Qt/qtruby4.rb', line 598 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 @thread_fix = RubyThreadFix.new end |
Instance Attribute Details
#thread_fix ⇒ Object (readonly)
Returns the value of attribute thread_fix.
596 597 598 |
# File 'lib/Qt/qtruby4.rb', line 596 def thread_fix @thread_fix end |
Instance Method Details
#disable_threading ⇒ Object
608 609 610 611 |
# File 'lib/Qt/qtruby4.rb', line 608 def disable_threading @thread_fix.stop if @thread_fix @thread_fix = nil end |
#exec ⇒ Object
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.
616 617 618 619 620 621 |
# File 'lib/Qt/qtruby4.rb', line 616 def exec method_missing(:exec) disable_threading() self.dispose Qt::Internal.application_terminated = true end |
#exit(*args) ⇒ Object
627 628 629 |
# File 'lib/Qt/qtruby4.rb', line 627 def exit(*args) method_missing(:exit, *args) end |
#type(*args) ⇒ Object
623 624 625 |
# File 'lib/Qt/qtruby4.rb', line 623 def type(*args) method_missing(:type, *args) end |