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

QDateEdit - Layout issues

XMLWordPrintable

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

      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.

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes