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

Popup Message

Scheduled Pinned Locked Moved General and Desktop
4 Posts 3 Posters 3.4k Views 1 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.
  • M Offline
    M Offline
    MyQT
    wrote on last edited by
    #1

    What is the best way to show popup message like tool tip.
    I want to show message for longer period(10 Sec) in my Application.
    Message box should be frameless and without buttons.

    1 Reply Last reply
    0
    • L Offline
      L Offline
      lgeyer
      wrote on last edited by
      #2

      The obvious reason is QToolTip::showText().

      Alternatives might be a simple QLabel (probably manually positioned within the parent widget), a non-modal / modal Qt::FramelessWindowHint Qt::WindowStaysOnTopHint dialog or a QStatusBar.

      1 Reply Last reply
      0
      • M Offline
        M Offline
        MyQT
        wrote on last edited by
        #3

        Thanks for the reply. I used QtoolTip::showtext() function.
        But message was disappearing very soon. how that can be avoided?

        1 Reply Last reply
        0
        • M Offline
          M Offline
          mlong
          wrote on last edited by
          #4

          You can create a frameless QWidget and show it yourself. A quick search should point you in the right direction.

          Software Engineer
          My views and opinions do not necessarily reflect those of anyone -- living or dead, real or fictional -- in this universe or any other similar multiverse node. Void where prohibited. Your mileage may vary. Caveat emptor.

          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