![]() Its result depends on the result of frameGeometry() and the capability of the window manager to do proper window placement, neither of which can be guaranteed. showMaximized() has to emulate the feature. Nor does X11 provide a way to maximize a window. Don’t be surprised if you find one where frameGeometry() returns wrong results though. Qt solves this problem with nifty heuristics and clever code that works on a wide range of window managers that exist today. X11 provides no standard or easy way to get the frame geometry once the window is decorated. Due to the partially unclear Inter-Client Communication Conventions Manual (ICCCM), window placement is handled quite differently in existing window managers. The window manager, a separate process, may either obey, ignore or misunderstand them. ![]() All Qt can do is to send certain hints to the window manager. So behaviour should be the same as the combobox or menu How this can be done Here is my example code: import QtQuick 2.3. But I'd like to close popup also when is clicked anywhere on screen but outside the popup. Basic rule: There’s always one user who uses a window manager that breaks your assumption, and who will complain to you.įurthermore, a toolkit cannot simply place windows on the screen. Popup is closed ok when mouse is clicked outside of popup in modal window. Thus you cannot make any safe assumption about the decoration frame your window will get. ![]() Bear in mind that X11 is policy-free (others call it flexible). This happens asynchronously at some point in time after calling show() and the first paint event the window receives, or it does not happen at all. On X11, a window does not have a frame until the window manager decorates it.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |