[Bug 246605] New: Application have no "close" event when set widget minimum size equal to maximum size

Sam Protsenko joe.skb7 at gmail.com
Tue Aug 3 12:46:21 BST 2010


https://bugs.kde.org/show_bug.cgi?id=246605

           Summary: Application have no "close" event when set widget
                    minimum size equal to maximum size
           Product: kde
           Version: unspecified
          Platform: Debian testing
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
        AssignedTo: unassigned-bugs at kde.org
        ReportedBy: joe.skb7 at gmail.com


Version:           unspecified (using KDE 4.4.5) 
OS:                Linux

Application have no "close" event when set widget minimum size equal to maximum
size (with using "Qt::FramelessWindowHint" flag).

See code below:

#include <QApplication>
#include <QWidget>

class Widget : public QWidget
{
public:
    explicit Widget(QWidget *parent = 0)
        : QWidget(parent)
    {
        setWindowFlags(Qt::FramelessWindowHint);
        setMinimumSize(800, 600);
        setMaximumSize(800, 600); // bug there
    }
};

int main(int argc, char *argv[])
{
    QApplication app(argc, argv);
    Widget *widget = new Widget;
    widget->show();
    return app.exec();
}

When running application I found "close" event is absent ( like at this
screenshot
http://omploader.org/vNTQ2bg/%D1%81%D0%BD%D0%B8%D0%BC%D0%BE%D0%BA3.png ). If
maximum size of window not equal to minimum size -- there are no bugs.

At first I knew this is a Qt bug, but under windows I don't saw this bug.

Reproducible: Didn't try

Steps to Reproduce:
1) Make application with window that have same minimum and maximum size
2) Run it and try to close
3) Make sure that application closed normally when minimum size of app window
not equal to maximum size


Expected Results:  
Application must closing fine when max and min size of window is same

It's very "secretive" bug. You don't see it until you don't try to make window
sizes like me. But it's very inconvenient when you have to make you window in
way like I described ahead

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the Unassigned-bugs mailing list