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. How to create a popup frame in the main window
Qt 6.11 is out! See what's new in the release blog

How to create a popup frame in the main window

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 1.0k 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.
  • W Offline
    W Offline
    wwylele
    wrote on last edited by
    #1

    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
    0
    • W wwylele

      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 Offline
      R Offline
      raf924
      wrote on last edited by
      #2

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

      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