本文整理汇总了C#中Qyoto.QVariant类的典型用法代码示例。如果您正苦于以下问题:C# QVariant类的具体用法?C# QVariant怎么用?C# QVariant使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
QVariant类属于Qyoto命名空间,在下文中一共展示了QVariant类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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);
}
开发者ID:BGCX261,项目名称:zora-svn-to-git,代码行数:13,代码来源:NodeItem.cs
示例2: SetKeyValueAt
public void SetKeyValueAt(double step, QVariant value)
{
interceptor.Invoke("setKeyValueAt$#", "setKeyValueAt(qreal, const QVariant&)", typeof(void), typeof(double), step, typeof(QVariant), value);
}
开发者ID:0xd34df00d,项目名称:Qross,代码行数:4,代码来源:QVariantAnimation.cs
示例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);
}
开发者ID:KDE,项目名称:qyoto,代码行数:4,代码来源:QGraphicsTextItem.cs
示例4: extension
protected virtual QVariant extension(QVariant variant)
{
return (QVariant) interceptor.Invoke("extension#", "extension(const QVariant&) const", typeof(QVariant), typeof(QVariant), variant);
}
开发者ID:KDE,项目名称:qyoto,代码行数:4,代码来源:QGraphicsTextItem.cs
示例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);
}
开发者ID:KDE,项目名称:qyoto,代码行数:4,代码来源:Qt.cs
示例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);
}
开发者ID:KDE,项目名称:qyoto,代码行数:4,代码来源:Qt.cs
示例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);
}
开发者ID:0xd34df00d,项目名称:Qross,代码行数:11,代码来源:Plasma_DataEngine.cs
示例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);
}
开发者ID:KDE,项目名称:qyoto,代码行数:4,代码来源:QStyledItemDelegate.cs
示例9: SetProperty
public abstract void SetProperty(QPrintEngine.PrintEnginePropertyKey key, QVariant value);
开发者ID:KDE,项目名称:qyoto,代码行数:1,代码来源:QPrintEngine.cs
示例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);
}
开发者ID:KDE,项目名称:kimono,代码行数:9,代码来源:Nepomuk_Variant.cs
示例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);
}
开发者ID:KDE,项目名称:qyoto,代码行数:4,代码来源:QAbstractProxyModel.cs
示例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);
}
开发者ID:KDE,项目名称:qyoto,代码行数:4,代码来源:QAbstractProxyModel.cs
示例13: UpdateCurrentValue
protected abstract void UpdateCurrentValue(QVariant value);
开发者ID:0xd34df00d,项目名称:Qross,代码行数:1,代码来源:QVariantAnimation.cs
示例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);
}
开发者ID:0xd34df00d,项目名称:Qross,代码行数:4,代码来源:QVariantAnimation.cs
示例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);
}
开发者ID:0xd34df00d,项目名称:Qross,代码行数:4,代码来源:QMetaProperty.cs
示例16: SetData
/// <remarks>
/// Sets data to be used internally by the associated
/// AbstractRunner.
/// When set, it is also used to form
/// part of the id() for this match. If that is innapropriate
/// as an id, the runner may generate its own id and set that
/// with setId(string) directly after calling setData
/// </remarks> <short> Sets data to be used internally by the associated AbstractRunner.</short>
public void SetData(QVariant data)
{
interceptor.Invoke("setData#", "setData(const QVariant&)", typeof(void), typeof(QVariant), data);
}
开发者ID:KDE,项目名称:kimono,代码行数:12,代码来源:Plasma_QueryMatch.cs
示例17: ItemChange
/// <remarks>
/// Reimplemented from QGraphicsItem
/// </remarks> <short> Reimplemented from QGraphicsItem </short>
protected virtual QVariant ItemChange(QGraphicsItem.GraphicsItemChange change, QVariant value)
{
Object[] parameters = new Object[2];
parameters[0] = change;
parameters[1] = value;
return (QVariant) appletType.GetMethod("ItemChange").Invoke(applet, parameters);
}
开发者ID:KDE,项目名称:kimono,代码行数:10,代码来源:PlasmaScripting_Applet.cs
示例18: QDBusReplyFill
public static void QDBusReplyFill(QDBusMessage reply, QDBusError error, QVariant data)
{
staticInterceptor.Invoke("qDBusReplyFill###", "qDBusReplyFill(const QDBusMessage&, QDBusError&, QVariant&)", typeof(void), typeof(QDBusMessage), reply, typeof(QDBusError), error, typeof(QVariant), data);
}
开发者ID:KDE,项目名称:qyoto,代码行数:4,代码来源:Qt.cs
示例19: AssignProperty
public void AssignProperty(QObject arg1, string name, QVariant value)
{
interceptor.Invoke("assignProperty#$#", "assignProperty(QObject*, const char*, const QVariant&)", typeof(void), typeof(QObject), arg1, typeof(string), name, typeof(QVariant), value);
}
开发者ID:0xd34df00d,项目名称:Qross,代码行数:4,代码来源:QState.cs
示例20: EffectParameter
public EffectParameter(int parameterId, string name, uint hints, QVariant defaultValue, QVariant min, QVariant max, List<QVariant> values)
: this((Type) null)
{
CreateProxy();
interceptor.Invoke("EffectParameter$$$###?", "EffectParameter(int, const QString&, Phonon::EffectParameter::Hints, const QVariant&, const QVariant&, const QVariant&, const QList<QVariant>&)", typeof(void), typeof(int), parameterId, typeof(string), name, typeof(uint), hints, typeof(QVariant), defaultValue, typeof(QVariant), min, typeof(QVariant), max, typeof(List<QVariant>), values);
}
开发者ID:KDE,项目名称:qyoto,代码行数:6,代码来源:Phonon_EffectParameter.cs
注:本文中的Qyoto.QVariant类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论