{
setWindowFlags(Qt::Tool | Qt::FramelessWindowHint | Qt::WindowStaysOnTopHint);
setObjectName("FloatBar");
setStyleSheet(
"#FloatBar{background:qlineargradient(x1:0,y1:0,x2:0,y2:1,stop:0 #eee,stop:0.1 #fff,stop:0.9 #ccc,stop:1 #444);}"
"QToolButton{margin-right:2px;padding:1px;}"
"ZWordBox{padding:0;margin:0 3px;min-height:17px;border:1px solid gray;border-radius:3px;background:qlineargradient(x1:0,y1:0,x2:0,y2:1,stop:0 #eee,stop:1 #fff);}"
"ZWordBox *{padding:0;margin:0 3px;font-family:Tahoma;font-size:14px;color:#555;background:qlineargradient(x1:0,y1:0,x2:0,y2:1,stop:0 #eee,stop:1 #fff);}"
"ZWordBox QLineEdit{border:0px none;color:#07b;}"
);
}
FloatBar::FloatBar(QWidget *parent) : QFrame(parent)
{
setWindowFlags(Qt::Tool | Qt::FramelessWindowHint | Qt::WindowStaysOnTopHint);
setObjectName("FloatBar");
setStyleSheet(
"#FloatBar{background:qlineargradient(x1:0,y1:0,x2:0,y2:1,stop:0 #eee,stop:0.1 #fff,stop:0.9 #ccc,stop:1 #444);}"
"QToolButton{margin-right:2px;padding:1px;}"
"ZWordBox{padding:0;margin:0 3px;min-height:17px;border:1px solid gray;border-radius:3px;background:qlineargradient(x1:0,y1:0,x2:0,y2:1,stop:0 #eee,stop:1 #fff);}"
"ZWordBox *{padding:0;margin:0 3px;font-family:Tahoma;font-size:14px;color:#555;background:qlineargradient(x1:0,y1:0,x2:0,y2:1,stop:0 #eee,stop:1 #fff);}"
"ZWordBox QLineEdit{border:0px none;color:#07b;}"
);
}
To copy to clipboard, switch view to plain text mode
Bookmarks