rbuic nubie - how to display form

View: New views
1 Messages — Rating Filter:   Alert me  

rbuic nubie - how to display form

by Necrite-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Salut,



Je suis tombé sur ton post en ayant le même problème mais j'ai réussi à le résoudre.




> #---------------------

> # main.rb

> #---------------------

> require 'Qt4'

> require 'mainwindow.rb'

>

> app = Qt::Application.new(ARGV)

>

> wdg = Qt::Widget.new

> frm = Ui_MainWindow.new

> frm.setupUi(wdg)

>

> frm.show()

> app.exec()




Essaye de remplacer ton "wdg = Qt::Widget.new" par un "wdg = Qt::MainWindow.new"






---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...