本文整理汇总了C#中Qyoto.QVariant类的典型用法代码示例。如果您正苦于以下问题:C# QVariant类的具体用法?C# QVariant怎么用?C# QVariant使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
QVariant类属于Qyoto命名空间,在下文中一共展示了QVariant类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: ItemChange
protected QVariant ItemChange(GraphicsItemChange change, QVariant val)
{
if (change == GraphicsItemChange.ItemPositionHasChanged) {
foreach (EdgeItem ein in inList) {
ein.SetToPoint(X(), Y());
}
foreach (EdgeItem eout in outList) {
eout.SetFromPoint(X(), Y());
}
}
return base.ItemChange(change, val);
}
示例2: SetKeyValueAt
public void SetKeyValueAt(double step, QVariant value)
{
interceptor.Invoke("setKeyValueAt$#", "setKeyValueAt(qreal, const QVariant&)", typeof(void), typeof(double), step, typeof(QVariant), value);
}
示例3: SetExtension
protected virtual void SetExtension(QGraphicsItem.Extension extension, QVariant variant)
{
interceptor.Invoke("setExtension$#", "setExtension(QGraphicsItem::Extension, const QVariant&)", typeof(void), typeof(QGraphicsItem.Extension), extension, typeof(QVariant), variant);
}
示例4: extension
protected virtual QVariant extension(QVariant variant)
{
return (QVariant) interceptor.Invoke("extension#", "extension(const QVariant&) const", typeof(QVariant), typeof(QVariant), variant);
}
示例5: Write
public static QDataStream Write(QDataStream s, QVariant.TypeOf p)
{
return (QDataStream) staticInterceptor.Invoke("operator<<#$", "operator<<(QDataStream&, const QVariant::Type)", typeof(QDataStream), typeof(QDataStream), s, typeof(QVariant.TypeOf), p);
}
示例6: Read
public static QDBusArgument Read(QDBusArgument a, QVariant v)
{
return (QDBusArgument) staticInterceptor.Invoke("operator>>##", "operator>>(const QDBusArgument&, QVariant&)", typeof(QDBusArgument), typeof(QDBusArgument), a, typeof(QVariant), v);
}
示例7: SetData
/// <remarks>
/// Sets a value for a data source. If the source
/// doesn't exist then it is created.
/// <param> name="source" the name of the data source
/// </param><param> name="key" the key to use for the data
/// </param><param> name="value" the data to associated with the source
/// </param></remarks> <short> Sets a value for a data source.</short>
protected void SetData(string source, string key, QVariant value)
{
interceptor.Invoke("setData$$#", "setData(const QString&, const QString&, const QVariant&)", typeof(void), typeof(string), source, typeof(string), key, typeof(QVariant), value);
}
示例8: DisplayText
public virtual string DisplayText(QVariant value, QLocale locale)
{
return (string) interceptor.Invoke("displayText##", "displayText(const QVariant&, const QLocale&) const", typeof(string), typeof(QVariant), value, typeof(QLocale), locale);
}
示例9: SetProperty
public abstract void SetProperty(QPrintEngine.PrintEnginePropertyKey key, QVariant value);
示例10: Variant
/// <remarks>
/// Will create an invalid Variant if other has an unsupported type.
/// </remarks> <short> Will create an invalid Variant if other has an unsupported type.</short>
public Variant(QVariant other)
: this((Type) null)
{
CreateProxy();
interceptor.Invoke("Variant#", "Variant(const QVariant&)", typeof(void), typeof(QVariant), other);
}
示例11: SetHeaderData
public override bool SetHeaderData(int section, Qt.Orientation orientation, QVariant value)
{
return (bool) interceptor.Invoke("setHeaderData$$#", "setHeaderData(int, Qt::Orientation, const QVariant&)", typeof(bool), typeof(int), section, typeof(Qt.Orientation), orientation, typeof(QVariant), value);
}
示例12: SetData
public override bool SetData(QModelIndex index, QVariant value)
{
return (bool) interceptor.Invoke("setData##", "setData(const QModelIndex&, const QVariant&)", typeof(bool), typeof(QModelIndex), index, typeof(QVariant), value);
}
示例13: UpdateCurrentValue
protected abstract void UpdateCurrentValue(QVariant value);
示例14: Interpolated
protected virtual QVariant Interpolated(QVariant from, QVariant to, double progress)
{
return (QVariant) interceptor.Invoke("interpolated##$", "interpolated(const QVariant&, const QVariant&, qreal) const", typeof(QVariant), typeof(QVariant), from, typeof(QVariant), to, typeof(double), progress);
}
示例15: Write
public bool Write(QObject arg1, QVariant value)
{
return (bool) interceptor.Invoke("write##", "write(QObject*, const QVariant&) const", typeof(bool), typeof(QObject), arg1, typeof(QVariant), value);
}