Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-100938

MessageDialog layout is rather "spacy"

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 6.3.0 Beta2, 6.4.0 FF
    • Quick: Dialogs
    • None

    Description

      In QtPdf examples I have two dialogs: a password dialog (which must be a Dialog because we don't have a dialog for asking the user a question with a text entry field in QtQuick.Dialogs yet), and a dialog to show the error message if something goes wrong during loading.  Since I'm trying to "be declarative" and show the error dialog whenever there is an error, the result is when the document cannot be opened because the password is not yet given, that's an error, and the error dialog is shown.  On top, there is a password dialog at startup.  When the user enters the correct password, the error is gone and the error dialog disappears.

      That's OK as long as they are plain Dialogs, the same size and with deterministic z-order: one covers up the other.  But MessageDialog is unnecesarily large, so if I switch https://codereview.qt-project.org/c/qt/qtwebengine/+/396319 , it doesn't look good.  Which makes me wonder: why is it that large?  Even on its own, it looks abnormal.

      Even if I want to standardize it to make them both look that way (ugh), should we share the numbers for "standard" margins and spacings somewhere instead of just hard-coding 16's and 20's?

      Attachments

        For Gerrit Dashboard: QTBUG-100938
        # Subject Branch Project Status CR V

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            srutledg Shawn Rutledge
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There is 1 open Gerrit change