Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Unsolved [Recommendation] Status/Message box for Qt (widgets) application

    General and Desktop
    qt5 message toast
    2
    6
    487
    Loading More Posts
    • 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.
    • CybeX
      CybeX last edited by

      Hi guys

      I am looking for a message box / status box popup similar to the Android toast but not as intrusive as the Windows toast nor does it require dismissal like QMessageBox.

      What I have in mind may be something similar to this image below from postman (but, this case, it has some action associated aswel):

      7ae215e8-648a-455a-8c4e-1eac0213e9b5-image.png

      Alternatively (and more) preferable a message displayed in e.g. the bottom right corner that us not intrusive. If I find an example, I will post it (I have seen it before but cannot remember where). I know QT does not offer this besides their QMessageBox which is not suitable for my purpose.

      I intend to use it on my QtWidgets application (not QML)

      Any suggestions?

      1 Reply Last reply Reply Quote 0
      • mrjj
        mrjj Lifetime Qt Champion last edited by

        Hi
        Are we talking showing it in app or like windows toasts outside app ?
        Also if IN app, will you make room for it in the UI design ?
        Or do you need it to be able to float on the actual form outside of
        of the design ?

        1 Reply Last reply Reply Quote 0
        • CybeX
          CybeX last edited by

          @mrjj
          I could have been more clear on that, my apologies.

          I want it as a component on the form. I will be using a vertical layout for these 'widgets'. I envision them to start from the bottom right, and post no more than 3 at a time.

          CybeX 1 Reply Last reply Reply Quote 0
          • CybeX
            CybeX @CybeX last edited by

            @mrjj

            actually, now that I saw the notification from the Qt website, that could be a very good representation of what I have in mind. It is not intrusive (i.e. requires attention immediately) and dismissed itself after X seconds.

            mrjj 1 Reply Last reply Reply Quote 0
            • mrjj
              mrjj Lifetime Qt Champion @CybeX last edited by

              @CybeX
              Ok :)
              But you want user to be able to click on it if they want so we cant use a true overlay ?

              You can come pretty far with a QLabel and some HTML as it can show both icon and allow hot linked text
              which you can get a signal when clicked on to do something in app and not open browser.
              Use timer to make it auto dismiss.

              Im not sure i see same Qt notification on Desktop :)

              CybeX 1 Reply Last reply Reply Quote 1
              • CybeX
                CybeX @mrjj last edited by

                @mrjj
                oh - that is a great idea.

                Will post a working solution soon.

                Thanks

                1 Reply Last reply Reply Quote 1
                • First post
                  Last post