![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
qt
31964903
这个作者很懒,什么都没留下…
展开
-
QObject::tr无法获取翻译文本
QString QMetaObject::tr(const char *s, const char *c, int n) const { return QCoreApplication::translate(objectClassName(this), s, c, n); } objectClassName(this) 获取的类名称为QObject,即context为QObject原创 2020-11-27 22:13:16 · 844 阅读 · 0 评论 -
system detection
#if defined(__linux__) || defined(__linux) # define MY_OS_LINUX #endif #ifdef MY_OS_LINUX # define MY_DECL_EXPORT __attribute__((visibility("default"))) # define MY_DECL_IMPORT __attri...原创 2018-12-07 13:45:55 · 200 阅读 · 0 评论 -
QTableWidget 筛选显示
void filterTableWidgetRows(QTableWidget*table, const QString& text) { if(NULL == table) return; QList<QTableWidgetItem*> findItems = table->findItems(text,Qt::MatchContains); int nRo...原创 2019-08-21 21:11:05 · 3939 阅读 · 0 评论