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. [Recommendation] Status/Message box for Qt (widgets) application

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

Scheduled Pinned Locked Moved Unsolved General and Desktop
qt5messagetoast
6 Posts 2 Posters 1.0k 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.
  • C Offline
    C Offline
    CybeX
    wrote on 7 Jun 2020, 09:45 last edited by
    #1

    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
    0
    • M Offline
      M Offline
      mrjj
      Lifetime Qt Champion
      wrote on 7 Jun 2020, 10:22 last edited by
      #2

      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
      0
      • C Offline
        C Offline
        CybeX
        wrote on 7 Jun 2020, 10:25 last edited by
        #3

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

        C 1 Reply Last reply 7 Jun 2020, 10:27
        0
        • C CybeX
          7 Jun 2020, 10:25

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

          C Offline
          C Offline
          CybeX
          wrote on 7 Jun 2020, 10:27 last edited by
          #4

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

          M 1 Reply Last reply 7 Jun 2020, 10:32
          0
          • C CybeX
            7 Jun 2020, 10:27

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

            M Offline
            M Offline
            mrjj
            Lifetime Qt Champion
            wrote on 7 Jun 2020, 10:32 last edited by
            #5

            @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 :)

            C 1 Reply Last reply 7 Jun 2020, 10:37
            1
            • M mrjj
              7 Jun 2020, 10:32

              @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 :)

              C Offline
              C Offline
              CybeX
              wrote on 7 Jun 2020, 10:37 last edited by
              #6

              @mrjj
              oh - that is a great idea.

              Will post a working solution soon.

              Thanks

              1 Reply Last reply
              1

              6/6

              7 Jun 2020, 10:37

              • Login

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