-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changed LICENSE from LGPL to Apache
- Loading branch information
Showing
7 changed files
with
78 additions
and
517 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
using QtCore; | ||
using QtGui; | ||
using QtWidgets; | ||
|
||
namespace QtSharpDemos.GuiExample | ||
{ | ||
class AbsolutePositionDemo : QtWidgets.QWidget | ||
{ | ||
public AbsolutePositionDemo() | ||
{ | ||
WindowTitle = "Absolute position demo"; | ||
|
||
InitUI(); | ||
|
||
Resize(300, 280); | ||
Move(300, 300); | ||
Show(); | ||
} | ||
|
||
void InitUI() | ||
{ | ||
StyleSheet = "QWidget { background-color: #414141 }"; | ||
|
||
var qt_icon = new QPixmap(@"media\gfx\Apps-Qt-icon.png"); | ||
//var rotunda = new QPixmap("rotunda.jpg"); | ||
//var mincol = new QPixmap("mincol.jpg"); | ||
|
||
var barLabel = new QLabel(this); | ||
barLabel.Pixmap = qt_icon; | ||
barLabel.Move(20, 20); | ||
|
||
var rotLabel = new QLabel(this); | ||
rotLabel.Pixmap = qt_icon; | ||
rotLabel.Move(40, 160); | ||
|
||
var minLabel = new QLabel(this); | ||
minLabel.Pixmap = qt_icon; | ||
minLabel.Move(170, 50); | ||
} | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.