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
Forum Updated to NodeBB v4.3 + New Features

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 4 Watching
  • 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 11 Aug 2017, 09:19 last edited by Qt Enthusiast 8 Nov 2017, 09:31
    #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

    R 1 Reply Last reply 11 Aug 2017, 09:55
    0
    • V Offline
      V Offline
      VRonin
      wrote on 11 Aug 2017, 09:52 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
        11 Aug 2017, 09:19

        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

        R Offline
        R Offline
        raven-worx
        Moderators
        wrote on 11 Aug 2017, 09:55 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 14 Aug 2017, 04:41
        0
        • Q Offline
          Q Offline
          Qt Enthusiast
          wrote on 11 Aug 2017, 12:27 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 11 Aug 2017, 22:15 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 12 Aug 2017, 09:45 last edited by
              #6

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

              reply

              1 Reply Last reply
              0
              • M Offline
                M Offline
                mrjj
                Lifetime Qt Champion
                wrote on 13 Aug 2017, 14:32 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
                • R raven-worx
                  11 Aug 2017, 09:55

                  @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 14 Aug 2017, 04:41 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

                  M 1 Reply Last reply 14 Aug 2017, 06:14
                  0
                  • Q Qt Enthusiast
                    14 Aug 2017, 04:41

                    @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

                    M Offline
                    M Offline
                    mrjj
                    Lifetime Qt Champion
                    wrote on 14 Aug 2017, 06:14 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

                    9/9

                    14 Aug 2017, 06:14

                    • Login

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