Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-33305

qmlformat config panel: Provide better guidance for users

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Unresolved
    • Icon: Not Evaluated Not Evaluated
    • None
    • None
    • Quick / QML Support
    • None

      When users open the qmlformat configuration panel for the first time, they are greeted with a blank text editor. There is no indication of what can go into the editor, or where to find information.

      Although more documentation is now available (see QTCREATORBUG-32964 ), this is still insufficient for a decent UX. The GUI itself should guide the user to configure qmlformat correctly.

      Below are some ideas on how to improve the UX.

       

      Preferred approach: The GUI shows all possibilities and restricts the user's ability to enter invalid input

      Even if the configuration data is stored as an INI file, the GUI really shouldn't present itself as a raw INI editor. Rather, it should present a table of all possible options, and let the user set the desired value via (check|spin|combo)boxes, just like the Qt Designer's property editor.

      Default values can be obtained via the output of qmlformat --write-detaults


      (This is a quick mockup made via Qt Designer; (check|spin|combo)boxes would be nicer)

       

      Alternative approach: The GUI provides assistance for using the raw text editor
      If we keep the raw text editor, then we need to provide assistive tools:

       

      Bonus

      Ideally, the IDE would also gracefully handle differences between qmlformat versions, and be able to automatically adapt to new options added to future versions of qmlformat (without requiring any modifications to the IDE itself). For example:

      • The IDE should query qmlformat itself to find out what options are supported
      • The IDE should avoid problems related to passing newer options to older versions of qmlformat (e.g. when a project uses an older LTS kit)

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

            qtqmlteam Qt Qml Team User
            skoh-qt Sze Howe Koh
            Votes:
            2 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes