![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
qt
东莞某某某
这个作者很懒,什么都没留下…
展开
-
QT 简单仿写QQ界面
因为要写一个跨平台内网传输工具DKD,为了最大程度的代码复用,所以考虑使用QT,对QT不熟悉,10天的摸索,终于画出简易的仿QQ界面,开发环境为:qt creator+gcc,效果如下:主窗口的区域切割为三部分:主窗口类派生于QFrame,关键代码如下: //without system titlebar setWi原创 2014-03-19 21:51:57 · 3065 阅读 · 2 评论 -
qt的qpushbutton的基本qss 用法
效果:style sheet如下(按钮为flat格式): ui->pushButton->setStyleSheet( "QPushButton:hover:!pressed { background-image: url(://image/settings.png);border-style: outset;"原创 2014-03-28 14:59:38 · 6442 阅读 · 0 评论 -
QTextEdit的段落排版
相关结构就不多说了,排版使用Html属性。原创 2014-04-09 21:08:20 · 4282 阅读 · 0 评论 -
qt QToolBox tab 文字居中
背景:在利用QToolBox实现一个简单的抽屉控件 / 导航控件时,发现QToolBox::tab的标题总是居左。尝试使用text-align属性、subcontrol-xxx属性都不起作用。解决办法:利用padding属性进行"硬编码"。代码片段如下: //当前窗口的宽度,其中 // TOOLBOXWND_W原创 2015-09-07 14:33:33 · 5417 阅读 · 0 评论 -
Graphics View Framework 简介
Graphics View provides a surface for managing and interacting with a large number of custom-made 2D graphical items, and a view widget for visualizing the items, with support for zooming and rotation.翻译 2015-10-13 22:28:35 · 4420 阅读 · 0 评论 -
qt序列化 (二)
As I promised, today I will provide some more code. I will also start discussing various issues related to backward and forward compatibility of data files.For now I will focus on simple cases lik转载 2016-06-07 13:51:46 · 551 阅读 · 0 评论 -
qt序列化 (三)
In the previous post I already wrote about backward and forward compatibility when serializing and deserializing data into a binary stream. Let's summarize:backward compatibility - the ability转载 2016-06-07 13:53:20 · 872 阅读 · 0 评论 -
qt序列化 (四)
I the last few posts I wrote about serializing data in an extensible and effective binary format using QDataStream. So far it was focused on value types and simple structures that can be easily conver转载 2016-06-07 13:54:20 · 607 阅读 · 0 评论 -
qt序列化 (一)
Almost all applications need to store some data and be able to read it later, whether it's a document file or just some application settings. The data can be anything from a few integers to a complex转载 2016-06-07 13:49:10 · 1329 阅读 · 0 评论