2020年12月16日

Windows Error Reporting, Mini dump 2, Full dump 1

摘要: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Windows Error Reporting\LocalDumps\xxx.exe DumpType Specify one of the following dump types: 0: Custom d 阅读全文

posted @ 2020-12-16 16:16 liujx2019 阅读(118) 评论(0) 推荐(0) 编辑

英语邮件结尾时常用的20个句子

摘要: 出处 https://www.linkedin.com/pulse/20140903131536-29650941-20-phrases-for-closing-an-email By Matt Schmid A common problem We often hear how writing em 阅读全文

posted @ 2020-12-16 14:03 liujx2019 阅读(811) 评论(0) 推荐(0) 编辑

QT 编译时 Warning: The name 'layoutWidget' (QWidget) is already in use, defaulting to 'layoutWidget1'.

摘要: 总之,是Qt Creator 的 bug. 只能用文本编辑器修改 .ui 文件来消除这个 warning. It means that inside the .ui XML file, the element named "layoutWidget" has already been used so 阅读全文

posted @ 2020-12-16 13:41 liujx2019 阅读(1363) 评论(0) 推荐(0) 编辑

QVBoxLayout 不能移动

摘要: QVBoxLayout 本身是不能移动的。 但如果把它放到另一个控件上面,例如一个 QWidget, 那么这个 QWidget 就可以像托盘一样托住 QVBoxLayout。 于是移动 QWidget 的同时,QVBoxLayout 就跟着一起移动了。 阅读全文

posted @ 2020-12-16 13:36 liujx2019 阅读(277) 评论(0) 推荐(0) 编辑

QTabWidget size depending on current Tab

摘要: https://stackoverflow.com/questions/29128936/qtabwidget-size-depending-on-current-tab 没看懂但是感觉好厉害 阅读全文

posted @ 2020-12-16 13:32 liujx2019 阅读(57) 评论(0) 推荐(0) 编辑

Qt QTabWidget stylesheet 的一个例子

摘要: https://stackoverflow.com/questions/38369015/customuzing-qtabwidget-with-style-sheets QTabWidget::pane { border: 1px solid lightgray; top:-1px; backgr 阅读全文

posted @ 2020-12-16 13:28 liujx2019 阅读(485) 评论(0) 推荐(0) 编辑

Qt QStyle 只改变容器控件本身,不改变容器里的控件

摘要: 例如最外层是 QMainWindow, 如果只写上 border: 1px solid gray; QMainWindow 里的控件,例如 QTabWidget 也会有同样的轮廓线。 如果写成 QMainWindow { border: 1px solid gray; } 就只有 QMainWind 阅读全文

posted @ 2020-12-16 13:24 liujx2019 阅读(177) 评论(0) 推荐(0) 编辑

Qt 不用记录鼠标是否按下的状态,就可实现左键按下拖动

摘要: 其中 mCurrentPos 是一个 QPoint 类型的成员变量,记录鼠标左键按下时,窗体的位置。 event->buttons() 是一个用 bit 表示move 是由哪个按键发起的。 所以按位与 Qt::LeftButton 如果不为零,就表示当前的 move 事件是由左键触发的。 所以无需记 阅读全文

posted @ 2020-12-16 13:19 liujx2019 阅读(786) 评论(0) 推荐(0) 编辑

QT Layout 的 Spaceing 调为0之后, 如果还有多余的留白,可以通过增大控件的 min size 来去掉留白

摘要: 如题 阅读全文

posted @ 2020-12-16 13:12 liujx2019 阅读(256) 评论(0) 推荐(0) 编辑

QT 用 border image 代替 background image, 图片大小会随控件大小自动缩放

摘要: 如题 阅读全文

posted @ 2020-12-16 13:10 liujx2019 阅读(592) 评论(0) 推荐(0) 编辑

QT 无边框的窗口,QCombBox 会变成扁平的

摘要: QCombBox 本身并没有办法让自己变成扁平的。 this->setWindowFlags(Qt::FramelessWindowHint); 阅读全文

posted @ 2020-12-16 13:09 liujx2019 阅读(162) 评论(0) 推荐(0) 编辑

导航