public override void InitUI() { StyleSheet = "QWidget { background-color: #7e7e7e }"; var sky1_icon = media.MediaGfxHelper.Sky1Pixmap; var sky2_icon = media.MediaGfxHelper.Sky2Pixmap; var pancake_icon = media.MediaGfxHelper.PancakePixmap; var pancakeLabel = new QLabel(this); pancakeLabel.Pixmap = pancake_icon.ScaledToHeight(320); pancakeLabel.Resize(pancakeLabel.Pixmap.Size); pancakeLabel.Move(170, 50); var skyLabel = new QLabel(this); skyLabel.Pixmap = sky1_icon.ScaledToHeight(160); skyLabel.Resize(skyLabel.Pixmap.Size); skyLabel.Move(20, 20); var sky2Label = new QLabel(this); sky2Label.Pixmap = sky2_icon.ScaledToHeight(120); sky2Label.Resize(sky2Label.Pixmap.Size); sky2Label.Move(40, 180); }
private void InitUI() { //StyleSheet = "QWidget { background-color : #414141 }"; QPixmap image1 = new QPixmap ("images/periya_kovil.jpeg"); QPixmap image2 = new QPixmap ("images/western_ghats.jpeg"); QLabel label1 = new QLabel (this); label1.Pixmap = image1; label1.Move (20, 20); label1.ToolTip = "தஞ்சை பெரிய கோவில் - Tanjore Temple"; QLabel label2 = new QLabel (this); label2.Pixmap = image2; label2.ToolTip = "மேற்கு தொடர்ச்சி மலை - Western Ghats"; label2.Move (320, 20); }
private void InitUI() { //StyleSheet = "QWidget { background-color : #414141 }"; QPixmap image1 = new QPixmap("images/periya_kovil.jpeg"); QPixmap image2 = new QPixmap("images/western_ghats.jpeg"); QLabel label1 = new QLabel(this); label1.Pixmap = image1; label1.Move(20, 20); label1.ToolTip = "தஞ்சை பெரிய கோவில் - Tanjore Temple"; QLabel label2 = new QLabel(this); label2.Pixmap = image2; label2.ToolTip = "மேற்கு தொடர்ச்சி மலை - Western Ghats"; label2.Move(320, 20); }
private void InitUI() { StyleSheet = "QWidget {background-color:#414141}"; QPixmap img1 = new QPixmap ("img1.jpg"); QPixmap img2 = new QPixmap ("img2.jpg"); QPixmap img3 = new QPixmap ("img3.jpg"); QLabel label1 = new QLabel (this); label1.Pixmap = img1; label1.Move (20, 20); QLabel label2 = new QLabel (this); label2.Pixmap = img2; label2.Move (40 , 160); QLabel label3 = new QLabel (this); label3.Pixmap = img3; label3.Move (170, 50); }