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

a bug for setContentsMargins()

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • Not Evaluated
    • None
    • 4.8.5
    • GUI: Window management
    • None
    • QtCreator3.0
      Qt4.8.5

    Description

      I make a qt gui application using the wizard.

      #include <QLabel>
      #include <QStatusBar>

      MainWindow::MainWindow(QWidget *parent) :
      QMainWindow(parent),
      ui(new Ui::MainWindow)
      {
      ui->setupUi(this);

      setContentsMargins(20, 0, 60, 0);

      QLabel *lable1 = new QLabel(tr("abc"));
      statusBar()->addWidget(lable1);
      }

      And you will see the layout of the statusbar is not correct.

      Attachments

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

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            electri zhouliqiu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes