会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
RedWetPlace
博客园
首页
新随笔
联系
管理
订阅
上一页
1
···
6
7
8
9
10
11
12
13
14
···
33
下一页
2023年8月29日
我的工具 Qt( 1.< 截图工具> 、2. <流布局,自动换行>、3. <基本消息框>、4.<正则表达式,包含给表格设置>、5.<文件目录操作、读写,拷贝,删除,清空等>、6.<输出信息到屏幕,精确显示信息所在的文件的行>)
摘要: #ifndef WANGCHUAN_H #define WANGCHUAN_H #define WC_QT 1 // 如果当前项目是qt则置1,纯c++则置0 #if WC_QT #include <QGuiApplication> #include <QPixmap> #include <QWid
阅读全文
posted @ 2023-08-29 19:39 雾枫
阅读(88)
评论(0)
推荐(0)
2023年8月7日
qt 子窗口不设置父窗口,但是可以随主创口一同关闭的实现
摘要: setWindowFlags(Qt::Tool);//不在任务栏显示
阅读全文
posted @ 2023-08-07 19:51 雾枫
阅读(156)
评论(0)
推荐(0)
2023年7月11日
获取qt窗口的三种变化状态的事件,最小化、正常、最大化
摘要: /*重写该函数*/ void MainWindow::changeEvent(QEvent *event) { if(QEvent::WindowStateChange == event->type()) { QWindowStateChangeEvent * stateEvent = dynami
阅读全文
posted @ 2023-07-11 14:12 雾枫
阅读(1656)
评论(0)
推荐(0)
2023年7月10日
Qt控件样式之QSS
摘要: 原文链接
阅读全文
posted @ 2023-07-10 18:14 雾枫
阅读(15)
评论(0)
推荐(0)
获取qt原生标题栏的高度
摘要: int iTitleBarHeight = style()->pixelMetric(QStyle::PM_TitleBarHeight);
阅读全文
posted @ 2023-07-10 16:55 雾枫
阅读(142)
评论(0)
推荐(0)
2023年6月29日
qt 代码设置继承自widget控件的背景为纯透明
摘要: this->setAttribute((0t::WA TranslucentBackground,true);//窗体背景全诱明
阅读全文
posted @ 2023-06-29 13:56 雾枫
阅读(50)
评论(0)
推荐(0)
2023年6月22日
计算点的方位角 (osg)
摘要: 原文链接 double getAngleByLatLon(double ax, double ay, double bx, double by){ ax = ax * osg::PI / 180; ay = ay * osg::PI / 180; bx = bx * osg::PI / 180; b
阅读全文
posted @ 2023-06-22 16:51 雾枫
阅读(69)
评论(0)
推荐(0)
2023年6月16日
qt——在主窗口顶层显示一个新窗口,要求新窗口没有边框,不在任务栏显示
摘要: entitulist_ui = new Ui::Entitylist; equiplist_ui = new Ui::Equiplist; m_entityList = new QWidget(this); m_equipList = new QWidget(this); entitulist_ui
阅读全文
posted @ 2023-06-16 18:49 雾枫
阅读(185)
评论(0)
推荐(0)
qt——设置widget透明度,别的设置透明度办法实在行不通
摘要: //实体列表 窗体背景透明 m_entityList->setWindowFlags(windowFlags() | Qt::FramelessWindowHint);//无边框 m_entityList->setAttribute(Qt::WA_TranslucentBackground, tru
阅读全文
posted @ 2023-06-16 17:23 雾枫
阅读(364)
评论(0)
推荐(0)
qt 通过ui设计控件在布局中的位置(靠左、居中、靠右)
摘要:
阅读全文
posted @ 2023-06-16 16:19 雾枫
阅读(1596)
评论(0)
推荐(0)
上一页
1
···
6
7
8
9
10
11
12
13
14
···
33
下一页
公告