c++ - 如何更改 QTextEdit 的设计?

标签 c++ qt

<分区>

我需要设置QTextEdit slider 的宽度。 怎么变大? 我在 Windows 上使用最新版本的 qt。

最佳答案

使用StyleSheets .

myTextEdit->setStyleSheet("QScrollBar:vertical {width: 20px;}")

关于c++ - 如何更改 QTextEdit 的设计?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19248451/

相关文章:

c++ - 使用代理向 Qt SQL 模型添加虚拟列

c++ - CUDA C++11,lambda 数组,按索引函数,不工作

c++ - std::remove_if 使用其他类方法

c++ - 从 XBM 创建 QImage

c++ - 如何从 Qt 中的 JSON 数据中检索整数值

Qt Stream 网络摄像机视频

c++ - 当/MT 和/MD 都需要时怎么办?

c++ - uninit_member : Non-static class member m_wszParams is not initialized in this constructor nor in any functions that it calls in C++

c++ - 如何修复C++中的 “expected”错误

c++ - 对象指针 vector ,一般帮助和混淆