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

Under Android, setting a QMenuBar to a QMainWindow prevent futur resize call to succeed

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.3.0
    • 5.1.1
    • Widgets: Main Window
    • None
    • QTCreator 2.8.1 - Toolchain : Android for arm / GCC 4.6 / Qt5.1.1 / Debug - Fedora 19 - arch X86_64
    • Android

    Description

      In following code, MainWindow is a QMainWindow descendant instance.
      Last resize() call (after setMenuBar() call) has no effect under Android but works under Desktop platforms.

              MainWindow->resize(1280, 800);
              menuBar = new QMenuBar(MainVisionneuse);
              menuBar->setObjectName(QStringLiteral("menuBar"));
              menuBar->setGeometry(QRect(0, 0, 1280, 25));
              MainWindow->setMenuBar(menuBar);
              MainWindow->resize(1280, 760);
      

      Attachments

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

        Activity

          People

            tvete Paul Olav Tvete
            franck.bonin franck bonin
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes