How to implement pop from right side of the GUI
-
wrote on 11 Aug 2017, 09:19 last edited by Qt Enthusiast 8 Nov 2017, 09:31
HI
When I search a website a recomedatation pop that
basicallyhow can I implement the yellow colored pop up in image below in qt 4.3.3
-
wrote on 11 Aug 2017, 09:52 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
-
HI
When I search a website a recomedatation pop that
basicallyhow can I implement the yellow colored pop up in image below in qt 4.3.3
- implement a custom widget
- set it's window flags to
Qt::CustomizeWindowHint | Qt::Tool | Qt::FramelessWindowHint
(instead ofQt::Tool
you maybe want to useQt::Popup
) - you can use
QWidget::setMask()
for an arbitrary window shape. Alternatively you can setQWidget::setAttribute( Qt::WA_TranslucentBackground )
and simply paint the background shape in the widget
-
wrote on 11 Aug 2017, 12:27 last edited by
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)from sides
-
wrote on 11 Aug 2017, 22:15 last edited by
Following is the example
-
wrote on 12 Aug 2017, 09:45 last edited by
Any update how to implimen the same https://postimg.org/image/60zlq75r9/
reply
-
Hi
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. -
- implement a custom widget
- set it's window flags to
Qt::CustomizeWindowHint | Qt::Tool | Qt::FramelessWindowHint
(instead ofQt::Tool
you maybe want to useQt::Popup
) - you can use
QWidget::setMask()
for an arbitrary window shape. Alternatively you can setQWidget::setAttribute( Qt::WA_TranslucentBackground )
and simply paint the background shape in the widget
wrote on 14 Aug 2017, 04:41 last edited by@raven-worx said in How to implement pop from right side of the GUI:
mplement a custom widg
show the custom widget be of type QWidget
-
@raven-worx said in How to implement pop from right side of the GUI:
mplement a custom widg
show the custom widget be of type QWidget
@Qt-Enthusiast
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.
8/9