Navigation

    Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    1. Home
    2. Tags
    3. modal dialog
    Log in to post

    • SOLVED QMessageBox dose not show the content
      General and Desktop • dialog event handling modal dialog messagebox • • dalishi  

      12
      0
      Votes
      12
      Posts
      458
      Views

      @jsulm actually, it doesn't work at all, from my quick test I made. I'm not entirely sure why...
    • UNSOLVED "Progress MessageBox"
      General and Desktop • progress bar modal dialog popup • • StringTheory  

      8
      0
      Votes
      8
      Posts
      2163
      Views

      @JonB said in "Progress MessageBox": OK. Forget about modeless for a moment, if you don't want to deal with threads. Take a look at http://doc.qt.io/qt-5/qdialog.html#open, and start from there instead of the normal QDialog::exec(). I'm thinking that may be all you are looking for. I still don't know what it is you think you are going to "show the progress against", but that's another issue..... Thanks for the recommendation. I will look into open(), etc. I will probably end up threading the heavy tasks, but I'm trying to avoid all the tedious synchronization for now. As for 'progress against': I realized why that may not have made sense. Individual time-consuming tasks will not be able to report on their progress mid-stream (no way to gauge how long to complete), but there is a series of them. Basically a chain of image processes--filters, denoising, etc. and each can take from 5 seconds to almost a minute. Awkward to just sit there looking at the barberpole progress bar, so I thought of setting up a timer in the progress dialog in order to monitor a 'status variable' back at the ranch. As each filter stage completes, the status variable would be updated. When the variable changes from "filter 1" to "filter 2", appropriate text could be displayed in the progress dialog. Or so I hope. :-)
    • UNSOLVED Modal from a modal (Mac)
      General and Desktop • desktop mac dialog modal dialog • • KevinD  

      5
      0
      Votes
      5
      Posts
      3533
      Views

      @KevinD said in Modal from a modal (Mac): Hi, Don't use these two: box.setModal(true); box.setWindowFlags(box.windowFlags() | Qt::Popup); You're calling QDialog::exec which is for modal-only dialogs, and Qt::Popup isn't for dialogs, leave the window flags be. If you prepare a MWE (the download-and-build type) I can test on Linux (I have no Mac, sorry). Also you might consider filing a bug report if everything else fails. Kind regards.
    • UNSOLVED QDialog position flickers with move command
      General and Desktop • qdialog modal dialog move problem • • sunil.nair  

      10
      0
      Votes
      10
      Posts
      2657
      Views

      Can you share a sample code that reproduce that ?
    • UNSOLVED Detect mouse click outside the modal window
      QML and Qt Quick • qml modal dialog popup • • jimcad  

      2
      0
      Votes
      2
      Posts
      1900
      Views

      A small clarification. Popup window should work the same way as menu or combobox, so it should be closed when you click anywhere outside popup.
    • Focus button is no longer in focus when you click outside of a modal dialog
      General and Desktop • button focus modal dialog setfocus • • Lynn  

      3
      0
      Votes
      3
      Posts
      1109
      Views

      Hi and welcome to devnet, To add to @mrjj What version of Qt and OS are you running ?
    • Focus of shortcut
      General and Desktop • shortcut modal dialog • • ling32945  

      3
      0
      Votes
      3
      Posts
      974
      Views

      Hi SGaist, Thanks for your reply. I don't think it caused by missing QWidget::addAction, because sometimes the shortcuts works well. I've used the default shortcuts of widget(copy, paste and cut). It's strange that after the child window lunched the shortcuts don't work, but after click the Main window's menu bar(even the button in menu is disabled), the shortcuts works well. So i suspected whether there is the shortcut focus.
    • Qt designer freezes after opening dialog [SOLVED]
      General and Desktop • qdialog designer freeze modal dialog • • predejtor  

      16
      0
      Votes
      16
      Posts
      5429
      Views

      @predejtor said: Ahh that way. Thank you.
    • Modal dialog over OpenGL widget: openGL surface doesn't get redrawn and a mess is left behind
      General and Desktop • opengl qglwidget modal dialog • • floatingWoods  

      5
      0
      Votes
      5
      Posts
      1473
      Views

      Thank you for your reply. Yes, that is probably the best to do. It will however require to switch to Qt5.4, and that is a larger endeavour. Will try that. Thanks again!