當前位置: 首頁>>代碼示例>>C#>>正文


C# Qyoto.QVariant類代碼示例

本文整理匯總了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);
        }
開發者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


注:本文中的Qyoto.QVariant類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。