Qt Forum

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

    Call for Presentations - Qt World Summit

    How to create a popup frame in the main window

    General and Desktop
    2
    2
    637
    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.
    • W
      wwylele last edited by

      I want to realize the following design:
      right-ckick on a certain area in the main window, then a small frame containing some widgets popup next to the cursor. Now user can do some operation in this frame, and if user clicks anywhere in the window but outside the small frame, it will disappear. It is like a popup menu, but with some buttons and text edis.
      How can I do that?

      R 1 Reply Last reply Reply Quote 0
      • R
        raf924 @wwylele last edited by

        @wwylele With a widget/dialog created with the window flag Qt::Popup

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