Advertisement
Guest User

Untitled

a guest
Mar 3rd, 2013
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.47 KB | None | 0 0
  1. require 'Qt'
  2.  
  3.  
  4. class QtApp < Qt::Widget
  5.  
  6.   def initialize
  7.     super
  8.  
  9.     setWindowTitle "Absolute"
  10.  
  11.     init_ui
  12.  
  13.     resize 700, 780
  14.     move 700, 700
  15.  
  16.     show
  17.   end
  18.  
  19.   def init_ui
  20.  
  21.     setStyleSheet "QWidget { background-color: #414141 }"
  22.  
  23.     bardejov = Qt::Pixmap.new "mind.jpg"
  24.  
  25.  
  26.  
  27.  
  28.  
  29.     barLabel = Qt::Label.new self
  30.     barLabel.setPixmap bardejov
  31.     barLabel.move 5, 5
  32.  
  33.  
  34.  
  35.   end
  36. end
  37.  
  38. app = Qt::Application.new ARGV
  39. QtApp.new
  40. app.exec
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement