Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
How to implement pop from right side of the GUI
Qt Enthusiast last edited by Qt Enthusiast
When I search a website a recomedatation pop that
how can I implement the yellow colored pop up in image below in qt 4.3.3
VRonin last edited by
There is a private class inside QSystemTrayIcon you could use for that, it's called QBaloonTip https://code.woboq.org/qt5/qtbase/src/widgets/util/qsystemtrayicon_p.h.html#QBalloonTip of course it might need some adaptation if you want it to work in such an old version of Qt
- implement a custom widget
- set it's window flags to
Qt::CustomizeWindowHint | Qt::Tool | Qt::FramelessWindowHint(instead of
Qt::Toolyou maybe want to use
- you can use
QWidget::setMask()for an arbitrary window shape. Alternatively you can set
QWidget::setAttribute( Qt::WA_TranslucentBackground )and simply paint the background shape in the widget
can u write a sample
how do get pop like we get we get side pop which we get websites
we get ads (Buy Domino pizzas)
Following is the example
Any update how to implimen the same https://postimg.org/image/60zlq75r9/
its not super clear what you ask.
You ask how ot make such window/widget ?
To have such widgets, you must program it from scratch.
There is no premade one to use.
so as @raven-worx suggest should be best way.
Draw the images and text in the paintEvent.
mplement a custom widg
show the custom widget be of type QWidget
Yes, you should derive from QWidget and paint the look you want.
I guess that you mean this notifications come inside your app , and you do not mean the ones
the OS is showing.