首页 > 编程知识 正文

qt透明窗体(qt在同一窗体显示多界面)

时间:2023-05-03 16:09:32 阅读:66899 作者:1488

目录

1、q菜单

2、QMenuBar菜单栏

3、QToolBar工具栏

4、QStatusBar状态栏

1、QMenu菜单

q menu { background-color : white; /*设置整个菜单区域的背景颜色*/border : 1px固态white; /*整个菜单区域的边框粗细、样式、颜色*/} q menu :3360 item { background-color : transparent; padding:5px 32px; /*通过设置菜单项文字的上下和左右内侧边距,可以在菜单项的左右上下间隔开。 */margin:0px 8px; //border-bottom 33601 px solid # dbdbdb; /*在菜单项之间添加水平线间距*/} q menu :3360 item : selected {/* whenuserselectsitemusingmouseorkeyboard */background-color : */} q menu {背景色3360 white; margin: 2px;/* somespacingaroundthemenu */} q menu :3360 item { padding 33602 p x25 px2px 20 px; border : 1px固态传输;/* reservespaceforselectionborder */} q menu :3360 item : selected { border-color :暗蓝; 背景: rgba (100、100、100、150 ); } q menu :3360 icon : checked {/* appearance ofa ' checked ' icon */background 3360 gray; border : 1px插入灰色; 位置: absolute; top: 1px; right: 1px; bottom: 1px; left: 1px; } q menu :3360 separator { height :2 px; 后台:轻型蓝色; 玛格琳- left : 10px; margin-right: 5px; } q menu :3360 indicator { width :13 px; 高清: 13px; }/* non-exclusive indicator=checkboxstyleindicator (seeqactiongroup :3360 set exclusive )/q menu :3360 indicator : } q menu : indicator : non-exclusive : unchecked : selected { image : URL (:/images/checkbox _nchox ) q menu :3360 indicator : non-exclusive : checked (image : URL ) :/images/checkbox _ checked.png; } q menu : indicator : non-exclusive : checked : selected { image : URL 653:/images/checkbox _ checked exclusive indicator=radiobuttonstyleindicator (seeqactiongroup :3360 set exclusive )/q menu :3360 indicator : exclusivive } q menu : indicator : exclusive : unchecked : selected { image : URL 65:/images/radio button _ u unchecheckeckecked q menu :3360 indicator : exclusive : checked { image : URL (:/images/radio button _ checked.png }; } q menu : indicator : exclusive : checked : selected { image : URL } :/images/radio button _ checked _rl qmenubar { background-color : qlineargradient (x 1:0,y1:0,x2:0,y2:1,stop ) qmenubar :3360 item {/* spacingbetweenmenubaritems */padding :1 px4 px; 后台:传输; border-radius: 4px; } qmenubar :3360 item : selected {/* whenselectedusingmouseorkeyboard */background : # a8a8a 8; } qmenubar :3360 item : pressed { background : # 888888; } 3、QToolBar工具栏QToolBar { background: red; spacing: 3px;/* spacingbetweenitemsinthetoolbar */} qtoolbar :3360 handle { image : URL (handle.png ); (4、QStatusBar状态栏QStatusBar )后台: brown; } qstatusbar :3360 item { border :1 pxsolidred; border-radius: 3px; qstatusbarqlabel { border :3 px固态白色; }

等待完美!

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。