Qt qgroupbox StyleSheet Border settings

Source: Internet
Author: User

/**************************************************************************** * Qt QGroupBox StyleShe ET border Settings * declaration: * Before Chen Yingchi asked how this effect to do out, checked the information directly to him, he did not * to carry out related tests, now seems to use this function, so again check the data and verify its function * effect. * 2015-12-25 Shenzhen Nanshan Ping Shan village Zengjianfeng ******************************************************* ********************/First, reference documents:1. Qt Style Sheets Examples http://doc.qt.io/qt-4.8/stylesheet-examples.html    2Fix the QT groupbox border in Linux environment does not display the problem http://www.bubuko.com/infodetail-309027.htmlSecond, the solution:1. In the Qgroupbox control right-click;2. Select Change StyleSheet ... tab;3. Enter in the text box (you can quickly add attributes via the Add Resource, add Gradient, add Color, add font above the dialog box): Qgroupbox {border
    -color:rgb (156,156,156); Border-width:1px; Border-Style:solid; Margin-top:0. 5ex; } qgroupbox::title {Subcontrol-Origin:margin; Subcontrol-Position:top left;            left:10px; Margin-left:2px; padding:00px; }    4. Click the OK button;5. Confirm the effect.

Qt qgroupbox StyleSheet Border settings

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.