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

QDateTimeEdit with calender pop-up retains an invisible increment button

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 6.5
    • None
    • Windows

      A QDateTimeEdit or QDateEdit with calender pop-up enabled retains an invisible increment button.

      Clicking anywhere in the 2px high area between frame and text behaves as the same as clicking the increment button.

      Tested with windows-vista and fusion style.

      How to reproduce:

      1. Create a new widget in Qt Designer.
      2. Add a QDateTimeEdit to the widget and enable calendar pop-up.
      3. Preview the form in windows-vista or fusion style.
      4. Click anywhere in the area highlighted in the screenshot. (roughly 2px high space between text and border)

      No code required, but you can use this form:

      <?xml version="1.0" encoding="UTF-8"?>
      <ui version="4.0">
       <class>Form</class>
       <widget class="QWidget" name="Form">
        <property name="geometry">
         <rect>
          <x>0</x>
          <y>0</y>
          <width>400</width>
          <height>300</height>
         </rect>
        </property>
        <property name="windowTitle">
         <string>Form</string>
        </property>
        <layout class="QVBoxLayout" name="verticalLayout">
         <item>
          <widget class="QDateTimeEdit" name="dateTimeEdit">
           <property name="calendarPopup">
            <bool>true</bool>
           </property>
          </widget>
         </item>
        </layout>
       </widget>
       <resources/>
       <connections/>
      </ui> 

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

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            maxxpower Markus Fleischhacker
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                There is 1 open Gerrit change