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

Different height of QDateEdit w/o popup enabled

    XMLWordPrintable

Details

    • All
    • bd288ab25 (6.9), be9b9ad44 (tqtc/lts-6.8)

    Description

      There is a layout problem when comparing two QDateEdit widgets—one with a calendar popup and the other without. The widget without the popup appears to be rendered approximately 2 pixels lower in height, while the widget with the calendar popup is about 1 pixel higher than a normal QLineEdit. This discrepancy in height between the two widgets affects the overall layout.

      Steps to reproduce the issue:

      1. Build and run the attached example project.
      2. Observe the difference between the two QLineEdits.

      Expected Behavior:
      Both QDateEdit widgets should have the same height or render consistently in terms of layout.

      I have attached a screenshot with red highlight lines indicating the issue, along with the example project for further investigation

      It is happening on Kubuntu 24.04.2 LTS and Ubuntu 22.04 LTS.

       

      Attachments

        Issue Links

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

          Activity

            People

              chehrlic Christian Ehrlicher
              chakib Chakib Boutaghane
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes