摘要: 想做个折线图,期望效果如下,Qt版本:5.9.9,用的安装包自带的QCharts源码编译成库。 但是发现个问题,添加第二条线时,第一条线没了 初始化代码: m_series = new QSplineSeries(this); m_series->setColor(Qt::red); m_serie 阅读全文
posted @ 2022-02-17 10:33 有没有的有 阅读(498) 评论(0) 推荐(0)
摘要: /* */为了方便调试Qt程序,也方便传输文件,需要用sftp功能,开发板的dropbear没有此功能所以需要自己编译sftp-server程序,复制到开发板中运行。 sftp-server是openssh的一部分,所以要编译openssh。openssh依赖zlib和OpenSSL,所以也要编译z 阅读全文
posted @ 2021-06-19 16:02 有没有的有 阅读(1069) 评论(0) 推荐(0)
摘要: 我有两个QT工程,A是个应用程序工程,B是个动态库,A在运行时调用B,在Windows平台运行正常,但同样代码在Linux下运行崩溃。 上午折腾半天愣是不能定位到崩溃的地方,因为调试时打的断点使程序停在莫名其妙的地方,然后放弃断点,程序里加qDebug,最后定位到B工程里调用CProject::lo 阅读全文
posted @ 2021-05-26 16:16 有没有的有 阅读(437) 评论(0) 推荐(0)
摘要: /*myMoveToThread * usage: * class A:public QObject * A *a;//exec in current thread * class OtherClass:public QObject * OtherClass *otherClass;//exec i 阅读全文
posted @ 2021-05-21 15:12 有没有的有 阅读(221) 评论(0) 推荐(0)
摘要: int index = 0; int flags = 0; combox->setItemData(index, flags, Qt::UserRole - 1);//该项不可选中 原因: Qt::ItemFlags QStandardItem::flags() const { QVariant v 阅读全文
posted @ 2021-05-21 14:43 有没有的有 阅读(1344) 评论(0) 推荐(0)