QFileInfo(...).created().toString(...); QtCreator提示警告:'created'isdeprecated'created'has been explicitly marked deprecated here expandedfrommacro'QT_DEPRECATED_X'expandedfrommacro'Q_DECL)DEPRECATED_X'expandedfrommacr'Q_DECL_DEPRECATED' 请教各位网友,建议的做法是什么样子??
TextColorRole Q_DECL_ENUMERATOR_DEPRECATED = ForegroundRole, #endif CheckStateRole = 10, // Accessibility AccessibleTextRole = 11, AccessibleDescriptionRole = 12, // More general purpose SizeHintRole = 13, InitialSortOrderRole = 14, // Internal UiLib roles. Start worrying when public roles go ...
virtual int qt_metacall(QMetaObject::Call, int, void **); \ QT_TR_FUNCTIONS \ private: \ Q_OBJECT_NO_ATTRIBUTES_WARNING \ Q_DECL_HIDDEN_STATIC_METACALL static void qt_static_metacall(QObject *, QMetaObject::Call, int, void **); \ QT_WARNING_POP \ struct QPrivateSignal {}; \ ...
}QT_DEPRECATEDstaticinlineQStringtrUtf8(constchar*s,constchar*c = Q_NULLPTR,intn =-1){returnstaticMetaObject.tr(s, c, n); } Q_OBJECT_NO_ATTRIBUTES_WARNING展开,QT_WARNING_DISABLE_GCC展开为空 #defineQ_OBJECT_NO_ATTRIBUTES_WARNING QT_WARNING_DISABLE_GCC("-Wattributes") Q_DECL_HIDDEN_STATI...
# define Q_DECL_DEPRECATED_X(x) [[deprecated(x)]] ^ /Users/user/Rizin/cutter/src/core/Cutter.cpp:1186:24: warning: 'Type' is deprecated: Use QMetaType::Type instead. [-Wdeprecated-declarations] case QVariant::Type::Bool: ^
Q_DECL_CONSTEXPR inline int msecsSinceStartOfDay() const { return mds == NullTime ? 0 : mds; } static QTime currentTime(); #ifndef QT_NO_DATESTRING static QTime fromString(const QString &s, Qt::DateFormat f = Qt::TextDate); ...
void timerEvent(QTimerEvent *event) Q_DECL_OVERRIDE; private: Ui::MainWindow *ui; double getData(double time); }; #endif // MAINWINDOW_H mainwindow.cpp 主程序中配置好Qchart,QLineSeries是用来存放数据。更新的工作放在定时器的槽中。其中 ...
Q_DECL_HIDDEN_STATIC_METACALL展开,出现了__attribute__黑魔法,参考ATTRIBUTE 你知多少? #define Q_DECL_HIDDEN_STATIC_METACALL Q_DECL_HIDDEN #define Q_DECL_HIDDEN __attribute__((visibility("hidden"))) ...
Well, if you want to add a qFuzzyCompare overload with three parameters and deprecate (by documentation only, no Q_DECL_DEPRECATED) the current one, be my guest. -- Thiago Macieira - thiago.macieira (AT) intel.com Software Architect - Intel Open Source Technology Center signature.asc Desc...
Q_DECL_HIDDEN_STATIC_METACALL static void qt_static_metacall(QObject *, QMetaObject::Call, int, void **); \ QT_WARNING_POP \ struct QPrivateSignal {}; \ QT_ANNOTATE_CLASS(qt_qobject, "")每一个声明Q_OBJECT类的对象都具有同一静态成员staticMetaObject,staticMetaObject用于存储类的基础信息,比...