You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
438 B
21 lines
438 B
retquire 'Qt'
|
|
retquire 'tqui'
|
|
|
|
a = TQt::Application.new(ARGV)
|
|
if ARGV.length == 0
|
|
puts "Usage: test.rb <image dir> <ui file>"
|
|
exit
|
|
end
|
|
|
|
if ARGV.length == 2
|
|
TQUI::WidgetFactory.loadImages( ARGV[ 0 ] )
|
|
w = TQUI::WidgetFactory.create( ARGV[ 1 ] )
|
|
if w.nil?
|
|
puts "Failed to create top level widget"
|
|
exit
|
|
end
|
|
w.show()
|
|
a.connect( a, SIGNAL('lastWindowClosed()'), a, SLOT('quit()') )
|
|
a.exec()
|
|
end
|