Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt WebKit
  4. Qt application could be minimized only once in Mac
Forum Updated to NodeBB v4.3 + New Features

Qt application could be minimized only once in Mac

Scheduled Pinned Locked Moved Qt WebKit
6 Posts 2 Posters 2.2k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    NitinRajan06
    wrote on last edited by
    #1

    Overview:
    The logic to minimize the application using 'window()->setWindowState(Qt::WindowMinimized)' is only working for the first time in Mac. Successive call to the same after maximizing the window does not have any action.

    Steps to Reproduce:
    A Qt application was created with a 'minimizeScreen' button which has the action to minimize the window using a call to "window()->setWindowState(Qt::WindowMinimized)" .

    [code]
    #include "mainwindow.h"
    #include "ui_mainwindow.h"

    MainWindow::MainWindow(QWidget *parent) :
    QMainWindow(parent),
    ui(new Ui::MainWindow)
    {
    ui->setupUi(this);
    connect(ui->minButton, SIGNAL(clicked()), this, SLOT(minimizeWindow()));
    }

    void MainWindow :: minimizeWindow()
    {
    window()->setWindowState(Qt::WindowMinimized);
    }
    [\code]

    Actual Results:
    The window minimizes for the first time. Successive call to minimize does not have any action.

    Expected Results:
    The window must be minimized every time when the user presses the 'minimizeScreen' button.

    Build Date & Platform:
    Tried with QT 5.0.2 and QT 5.0.1 . OS : MAC OSX 10.8.3

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      Since you might have found a bug, you should rather check and maybe report this on the "bug report system":http://bugreports.qt-project.org/issues/

      This forum is user oriented and generally not followed by Qt's developers. Your findings will probably get lost. You can also ask on the interest mailing list.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • N Offline
        N Offline
        NitinRajan06
        wrote on last edited by
        #3

        Thank you for the input. I had already raised a defect in https://bugs.webkit.org/show_bug.cgi?id=120005

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Why did you report a Qt bug on the WebKit bug report system ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • N Offline
            N Offline
            NitinRajan06
            wrote on last edited by
            #5

            The issue seems to be related to Webkit. Will it be good to move it to bugreports.qt-project.org ?

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              You're only showing Qt code so it's impossible to say whether the problem comes from webkit.

              Can you provide a complete minimal example that shows this behavior ?

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              0

              • Login

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved