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

Application Modal

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 663 Views 2 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.
  • S Offline
    S Offline
    ShinSat
    wrote on last edited by
    #1

    Hi Gurus!

    I have an app where multiple widgets are working on ONE main widget.
    Now I want to implement modal pop-up window specific to each widget.

    I tried QMessageBox but it didn't work. For example, if I set it as WinModal, it went behind when I clicked another widget, this is not a modal window. If I set it to AppModal, I couldn't touch other widgets.
    Does anybody know how to achieve this??

    0_1519653242084_wgts.jpg

    Many thanks in advance for your help.
    Regards,
    Sat

    1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by mrjj
      #2

      Hi
      Modal is ment for not being able to touch other widgets.
      It sounds more like you want to be able to open 1 or or more of the widgets, but only one time each ( only one copy of each) ?
      I would add setWindowFlags(Qt::WindowStaysOnTopHint); to the widgets, and make a small check if already showning
      then set focus to it, else create new and show it.

      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