QLineEdit 提示的两种方式

第一种,用toolTip的形式


            lineEdit->setToolTip("范围为0-220,2位小数");

第二种,用占位符的形式

 


            lineEdit->setPlaceholderText("范围为0-220,2位小数");

猜你喜欢

转载自blog.csdn.net/hss2799/article/details/113974280