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

QDateEdit - Layout issues

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 4.7.1
    • 4.7.0
    • None
    • None
    • Nokia N97 mini and Qt 4.7.0
    • b3f895fd97deda0c7c5bfd704c04450e7afee748

    Description

      QDateEdit popup is broken
      This is an update to the issue which I have
      reported previously.

      I generate the QDateEdit like this:
      [code]
      QDateEdit * bottomLabel = globDataItems[item].myFieldStorage->myFields[i].setDateEdit(new QDateEdit(this));
      bottomLabel->setCalendarPopup(true);
      bottomLabel->setDate(globDataItems[item].myFieldStorage->myFields[i].myFieldDate);
      bottomLabel->setMinimumHeight(30);
      neededHeight+=30;
      if(globDataItems[item].myFieldStorage->myFields[i].modalFlag() && false==globDataItems[item].myFieldStorage->myFields[i].isEditedFieldStorable())

      { bottomLabel->setStyleSheet("background-color: rgb(255, 0, 0);"); }

      //THIS IS LIFE ESSENTIAL OR THE PROGRAM DIES. DO NOT ASK ME WHY THOUGH
      globDataItems[item].myFieldStorage->myFields[i].myFieldHelper->myMotherField=&globDataItems[item].myFieldStorage->myFields[i];
      connect(bottomLabel,SIGNAL(dateChanged(const QDate &)),globDataItems[item].myFieldStorage->myFields[i].myFieldHelper,SLOT(dateChanged(const QDate &)));
      bottomLayout->addSpacing(20);
      bottomLayout->addWidget(bottomLabel);
      myWidgetList.append(bottomLabel);
      [/code]

      When it then comes to the popup, various odditied occur.

      Fitrst of all, in portrasit mode, not all of the popup fits on the screen.

      In landscape mode, depending on the position of the control on the screen,
      the popup is shown incomplete.

      Attachments

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

        Activity

          People

            samimeri Sami Merila (Inactive)
            tamhanna Tam Hanna
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes