摘要:
1、设置不可编辑四种方法: setReadOnly(false); setEnabled(false); setFocusPolicy(Qt::NoFocus);//无法获得焦点,自然无法输入,其他文本控件类似 hasAcceptableInput(false); 参考:https://www.cn 阅读全文
摘要:
http://qt-project.org/doc/qt-4.8/stylesheet-examples.html Qt中设置按钮或QWidget的外观是,可以使用QT Style Sheets来进行设置,非常方便。可以用setStyleSheet("font: bold; font-size:20 阅读全文