Qt Forum

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

    Popup Message

    General and Desktop
    3
    4
    3127
    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.
    • M
      MyQT last edited by

      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 Reply Quote 0
      • L
        lgeyer last edited by

        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 Reply Quote 0
        • M
          MyQT last edited by

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

          1 Reply Last reply Reply Quote 0
          • M
            mlong last edited by

            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 Reply Quote 0
            • First post
              Last post