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

Impossible to control the size of dialogs.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.3.0 Alpha, 5.3.0 Beta1
    • Quick: Dialogs
    • Mac OS X 10.9
      Qt 5.3.0 Beta
    • Android
    • 44c2740e0ece7d58e1062d9e4a4420cb3e317cbc

    Description

      It is not possible to control the size of custom dialogs on android.
      1. This means we cannot use layouts, because everything will be squeezed.
      2. Setting explicit size does not work, the dialog appears square.

      To reproduce, you can edit and run the following example from Qt 5.3 Beta: quick>dialogs>systemdialogs

      Just edit the date dialog so it is like so:

      Dialog {
      id: dateDialog
      modality: dialogModal.checked ? Qt.WindowModal : Qt.NonModal
      title: customizeTitle.checked ? windowTitleField.text : "Choose a date"
      width: 900
      height: 600
      onButtonClicked: console.log("clicked button " + clickedButton)
      onAccepted:

      { if (clickedButton == StandardButton.Ok) lastChosen.text = "Accepted " + calendar.selectedDate.toLocaleDateString() else lastChosen.text = (clickedButton == StandardButton.Retry ? "(Retry)" : "(Ignore)") }

      Calendar

      { id: calendar width: 900 height: 600 onDoubleClicked: dateDialog.click(StandardButton.Ok) }

      }

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              srutledg Shawn Rutledge
              adrian5632 Adrian Lubik
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes