Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to implement pop from right side of the GUI

How to implement pop from right side of the GUI

Scheduled Pinned Locked Moved Unsolved General and Desktop
9 Posts 4 Posters 1.7k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Q Offline
    Q Offline
    Qt Enthusiast
    wrote on last edited by Qt Enthusiast
    #1

    HI
    When I search a website a recomedatation pop that
    basically

    how can I implement the yellow colored pop up in image below in qt 4.3.3

    http://winsupersite.com/site-files/winsupersite.com/files/archive/winsupersite.com/content/content/127285/reviews/office10_beta1_0009.gif

    raven-worxR 1 Reply Last reply
    0
    • VRoninV Offline
      VRoninV Offline
      VRonin
      wrote on last edited by
      #2

      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

      "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
      ~Napoleon Bonaparte

      On a crusade to banish setIndexWidget() from the holy land of Qt

      1 Reply Last reply
      0
      • Q Qt Enthusiast

        HI
        When I search a website a recomedatation pop that
        basically

        how can I implement the yellow colored pop up in image below in qt 4.3.3

        http://winsupersite.com/site-files/winsupersite.com/files/archive/winsupersite.com/content/content/127285/reviews/office10_beta1_0009.gif

        raven-worxR Offline
        raven-worxR Offline
        raven-worx
        Moderators
        wrote on last edited by
        #3

        @Qt-Enthusiast

        1. implement a custom widget
        2. set it's window flags to Qt::CustomizeWindowHint | Qt::Tool | Qt::FramelessWindowHint (instead of Qt::Tool you maybe want to use Qt::Popup)
        3. 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

        --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
        If you have a question please use the forum so others can benefit from the solution in the future

        Q 1 Reply Last reply
        0
        • Q Offline
          Q Offline
          Qt Enthusiast
          wrote on last edited by
          #4

          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

          1 Reply Last reply
          0
          • Q Offline
            Q Offline
            Qt Enthusiast
            wrote on last edited by
            #5

            Following is the example

            https://postimg.org/image/60zlq75r9/

            1 Reply Last reply
            0
            • Q Offline
              Q Offline
              Qt Enthusiast
              wrote on last edited by
              #6

              Any update how to implimen the same https://postimg.org/image/60zlq75r9/

              reply

              1 Reply Last reply
              0
              • mrjjM Offline
                mrjjM Offline
                mrjj
                Lifetime Qt Champion
                wrote on last edited by
                #7

                Hi
                its not super clear what you ask.
                You ask how ot make such window/widget ?
                alt text
                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.

                1 Reply Last reply
                0
                • raven-worxR raven-worx

                  @Qt-Enthusiast

                  1. implement a custom widget
                  2. set it's window flags to Qt::CustomizeWindowHint | Qt::Tool | Qt::FramelessWindowHint (instead of Qt::Tool you maybe want to use Qt::Popup)
                  3. 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
                  Q Offline
                  Q Offline
                  Qt Enthusiast
                  wrote on last edited by
                  #8

                  @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

                  mrjjM 1 Reply Last reply
                  0
                  • Q Qt Enthusiast

                    @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

                    mrjjM Offline
                    mrjjM Offline
                    mrjj
                    Lifetime Qt Champion
                    wrote on last edited by
                    #9

                    @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.

                    1 Reply Last reply
                    0

                    • Login

                    • Login or register to search.
                    • First post
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • Users
                    • Groups
                    • Search
                    • Get Qt Extensions
                    • Unsolved