上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 41 下一页

2020年12月18日

QGroupBox 的派生类,在构造函数中 setStyleSheet 不起作用

摘要: 打开 ui_xxx.h 可以看到,在 Qt Creator 中创建的对象,会在构造函数之后 setStyleSheet. 所以会覆盖构造函数中设定的 QSS. 所以,必须由上层显式的设置 QSS. QtExtGroupBox_1 = new QtExtGroupBox(tabWidget_1); Q 阅读全文

posted @ 2020-12-18 15:27 liujx2019 阅读(321) 评论(0) 推荐(0)

2020年12月17日

GUI 数字要右对齐,有小数点的要对齐小数点

摘要: https://ux.stackexchange.com/questions/13795/is-there-a-standard-to-left-justify-text-and-right-justify-numeric-values 简而言之,这样可以对齐数位,易于肉眼比较大小 English 阅读全文

posted @ 2020-12-17 16:01 liujx2019 阅读(121) 评论(0) 推荐(0)

Openstack Swift 添加和删除 custom metadata name,通过 libcurl

摘要: X-Container-Meta-name,其中 name 可以随便写,name 之前的部分不能改动。 对应的,删除使用 X-Remove-Container-Meta-name,删除时要写个string,内容随意,但不能是0个字符,也不能是空格。并且注意“Meta”不能少。 int add_hea 阅读全文

posted @ 2020-12-17 11:11 liujx2019 阅读(177) 评论(0) 推荐(0)

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 阅读(131) 评论(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 阅读(910) 评论(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 阅读(1624) 评论(0) 推荐(0)

QVBoxLayout 不能移动

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

posted @ 2020-12-16 13:36 liujx2019 阅读(300) 评论(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 阅读(64) 评论(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 阅读(517) 评论(0) 推荐(0)

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

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

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

上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 41 下一页

导航