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

a bug for setContentsMargins()

XMLWordPrintable

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

      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.

        1. pic1.JPG
          11 kB
          zhouliqiu
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes