void DrawPatternsEx(QPainter ptr) { ptr.SetPen(PenStyle.SolidLine); ptr.SetPen(QColor.FromRgb(255, 0, 0)); ptr.DrawLine(0, Y, Size.Width, Y); ptr.DrawLine(X, 0, X, Size.Height); }
public Projector() { WindowTitle = "Paint Demo"; Palette.SetColor(QPalette.ColorRole.Background, QColor.FromRgb(0, 0, 0)); Resize(800, 800); Show(); Info = new QQuickWidget(this); Info.Source = new QUrl(@"\QML\main.qml"); Info.RootObject.SetProperty("componentName", "lorem ipsum"); Info.resizeMode = QQuickWidget.ResizeMode.SizeRootObjectToView; Info.Geometry = new QRect(50, 10, 100, 300); Info.Show(); }