随笔分类 -  QT笔记

摘要:QColorDialog cdg; int windowWidth = cdg.geometry().width(); int windowHeight = cdg.geometry().height(); cdg.move((screenWidth-windowWidth)/2+150 ,(scr 阅读全文
posted @ 2024-09-13 08:44 *^VV^* 阅读(10) 评论(0) 推荐(0) 编辑
摘要:Mplayer常用命令 loadfile name //加载媒体文件namevolume 100 1 //设置音量,中间位音量的大小0-100mute 1/0 //静音开关pause //播放/暂停get_time_length //获取播放文件的长度,以秒为单位seek value //定位,va 阅读全文
posted @ 2024-09-13 08:33 *^VV^* 阅读(79) 评论(0) 推荐(0) 编辑
摘要:#include "widget.h" #include <QHBoxLayout> #include <QListWidgetItem> Widget::Widget(QWidget *parent) : QWidget(parent) { resize(600,400); p_ListWidge 阅读全文
posted @ 2024-09-12 10:07 *^VV^* 阅读(52) 评论(0) 推荐(0) 编辑
摘要:#include "widget.h" #include <QListWidgetItem> #include <QAction> #include <QDebug> Widget::Widget(QWidget *parent) : QWidget(parent) { resize(300,400 阅读全文
posted @ 2024-09-12 09:46 *^VV^* 阅读(4) 评论(0) 推荐(0) 编辑
摘要:#include "widget.h" #include <QDebug> #include <QTabBar> Widget::Widget(QWidget *parent) : QWidget(parent) { p_TabWidget = new QTabWidget; p_TabWidget 阅读全文
posted @ 2024-09-12 08:50 *^VV^* 阅读(15) 评论(0) 推荐(0) 编辑
摘要:widget.h #ifndef WIDGET_H #define WIDGET_H #include <QWidget> #include <QMenu> class Widget : public QWidget { Q_OBJECT public: Widget(QWidget *parent 阅读全文
posted @ 2024-09-10 11:27 *^VV^* 阅读(9) 评论(0) 推荐(0) 编辑
摘要:1.如果只希望在某个 widget 中不显示鼠标指针,那么在该 widget 的构造函数中调用 QWidget::setCursor(QCursor(Qt::BlankCursor)) 2.如果希望整个应用程序不显示鼠标指针,那么在实例化 Application 后调用 QApplication:: 阅读全文
posted @ 2023-08-11 09:20 *^VV^* 阅读(373) 评论(0) 推荐(0) 编辑
摘要:第一:tslib库基本简介 上篇文章为了获取触摸点,主要是对读取到的struct input_event类型数据进行分析,得到各个触摸点坐标。接下来,主要使用tslib库进行学习,这是Linux系统下,专门为触摸屏开发的应用层函数库。 tslib库是开源的,也就是可以直接获取到tslib的源代码。t 阅读全文
posted @ 2023-07-19 11:22 *^VV^* 阅读(403) 评论(0) 推荐(0) 编辑
摘要:一、新建编译平台 更改../qt-everywhere-src-5.12.9/qtbase/mkspecs/linux-arm-gnueabi-g++/qmake.conf 目录下的文件 1、添加: QT_QPA_DEFAULT_PLATFORM = linuxfbQMAKE_CFLAGS_RELE 阅读全文
posted @ 2023-01-17 22:02 *^VV^* 阅读(206) 评论(0) 推荐(0) 编辑
摘要:void Widget::QMutableList(void) //java格式的list { QList<int> list; //QT容器类 QMutableListIterator<int> i(list); //容器类读写迭代器 for(int j=0;j<10;j++) i.insert( 阅读全文
posted @ 2022-07-10 10:35 *^VV^* 阅读(70) 评论(0) 推荐(0) 编辑
摘要:1、修改 /etc/profile添加 export QTEDIR=/usr/local/Qt5.6 //设置QT目录 export LD_LIBRARY_PATH=/usr/local/Qt5.6/lib:$LD_LIBRARY_PATH //添加QT库路径 #export QT_QPA_GENE 阅读全文
posted @ 2022-07-07 15:47 *^VV^* 阅读(427) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示