Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require 'Qt'
- class QtApp < Qt::Widget
- def initialize
- super
- setWindowTitle "Absolute"
- init_ui
- resize 700, 780
- move 700, 700
- show
- end
- def init_ui
- setStyleSheet "QWidget { background-color: #414141 }"
- bardejov = Qt::Pixmap.new "mind.jpg"
- barLabel = Qt::Label.new self
- barLabel.setPixmap bardejov
- barLabel.move 5, 5
- end
- end
- app = Qt::Application.new ARGV
- QtApp.new
- app.exec
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement