m_widgetFrame
= new QWidget(0, Qt
::WindowStaysOnTopHint | Qt
::FramelessWindowHint);
m_widgetFrame->setGeometry(0, 0, 100, 100);
m_widgetFrame->setAttribute(Qt::WA_TranslucentBackground);
m_widgetContent
= new QWidget(m_widgetFrame
);
m_widgetContent
->setStyleSheet
(QString::fromUtf8("QWidget{background-color: qlineargradient(spread:reflect, x1:0, y1:1, x2:0,y2:0,stop:0 rgba(255, 255, 255, 255),stop:1 rgba(255, 255, 255, 0));}"));
m_widgetContent ->setGeometry(0,0,m_widgetFrame->width(),m_widgetFrame->height());
m_widgetFrame->show();
m_widgetFrame= new QWidget(0, Qt::WindowStaysOnTopHint | Qt::FramelessWindowHint);
m_widgetFrame->setGeometry(0, 0, 100, 100);
m_widgetFrame->setAttribute(Qt::WA_TranslucentBackground);
m_widgetContent = new QWidget(m_widgetFrame);
m_widgetContent ->setStyleSheet(QString::fromUtf8("QWidget{background-color: qlineargradient(spread:reflect, x1:0, y1:1, x2:0,y2:0,stop:0 rgba(255, 255, 255, 255),stop:1 rgba(255, 255, 255, 0));}"));
m_widgetContent ->setGeometry(0,0,m_widgetFrame->width(),m_widgetFrame->height());
m_widgetFrame->show();
To copy to clipboard, switch view to plain text mode
Bookmarks