OSD messages by means of Qt4?


Warning: count(): Parameter must be an array or an object that implements Countable in /home/styllloz/public_html/qa-theme/donut-theme/qa-donut-layer.php on line 274
0 like 0 dislike
11 views
There is a wonderful project XOSD (ignavus.net/software.html). Easy to use, simple, lightweight and would be perfect if not for one thing — it works only under Linux. For me it's not a problem, but a bunch of the target audience uses other OS. How to make the exact same tools Qt4? I need exactly the same thing, but cross-platform.
by | 11 views

4 Answers

0 like 0 dislike
Once saw in Windows is something that does not catch the mouse. However, by and large all implementations of notifications that I have seen under the wind to catch it.
As a variant — to use selectively different types of notifications depending on the platform. So many do.
by
0 like 0 dislike
The window attribute Qt::WA_TransparentForMouseEvents not helping?
by
0 like 0 dislike
Here he wrote everything, except that the mouse is caught:
\r
\r
#include "mainwindow.h" #include "ui_mainwindow.h" #include #include MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWindow) { ui->setupUi(this); this->setWindowFlags(Qt::Window | Qt::WindowStaysOnTopHint | Qt::X11BypassWindowManagerHint | Qt::FramelessWindowHint); setAttribute(Qt::WA_NoSystemBackground, true); setAttribute(Qt::WA_TranslucentBackground, true); setAttribute(Qt::WA_TransparentForMouseEvents, true); QGraphicsDropShadowEffect *effect = new QGraphicsDropShadowEffect(this); effect->setBlurRadius(0); effect->setColor(QColor("#000000")); effect->setOffset(1,1); ui->label->setGraphicsEffect(effect); QString fonttemplate = tr("%2"); ui->label->setText(fonttemplate.arg("#00FF00", "OSD Message")); } MainWindow::~MainWindow() { delete ui; } void MainWindow::keyPressEvent(QKeyEvent *event) { if (event->key() == Qt::Key_Escape) { qApp->quit(); } } void MainWindow::mousePressEvent ( QMouseEvent * event ) { if( event->button()) { qApp->quit(); } } 

\r
But there is method to some. As monitors draw on top of other Windows when the setup button is pressed?
by
0 like 0 dislike
by

Related questions

0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
asked Mar 23, 2019 by hhrhhr
0 like 0 dislike
3 answers
0 like 0 dislike
2 answers
110,608 questions
257,186 answers
0 comments
27,959 users