Comments (8)
The one generated by the system (the lower entry with icon) quits the program correctly. But it causes issue #45.
The one generated by QT-SESAM (the upper entry without icon) only closes the main window.
from qt-sesam.
As far as I can tell from the source code, the main menu entry File -> Exit
and the system tray icon menu entry Quit
are connected to the main window slot close()
. I.e. they only close the main window, but do not exit the application.
The system generated entry on the system tray icon menu causes this dialog:
which I can't find in the source code. So I assume this is a "force application" dialog from the system.
IMHO a real "exit" is missing in the Qt-SESAM code
from qt-sesam.
ah damn... wrong button. This is NOT closed :-(
from qt-sesam.
OK, somehow the PNG uploads got lost. Trying again:
from qt-sesam.
If close()
is called on the MainWindow
the main loop exits, thus ending the application. That's the theory and works on Windows in practice. Regarding the Qt docs this is the desired behavior of close()
and should be the same on other platforms. Should …
from qt-sesam.
I checked the documentation: your mainwindow code looks correct. Except maybe the QMainWindow::closeEvent()
calls.
I even connected the exit
with the closeAllWindows
slot on qApp
and it still doesn't work.
So my assumption is that the problem is in QApplication
, not your main window code. I.e. the application doesn't exit when the last window is closed.
from qt-sesam.
Regarding the extra "Quit" tray item: It doesn't appear on every Linux desktop. So it leads to nothing to #ifdef WIN32
the code section that inserts the "Quit" action :-(
from qt-sesam.
Obviously some Linux desktops add a quit button by themselves. Won't do anything about it. Thus closing this issue.
from qt-sesam.
Related Issues (20)
- Design OS X menu bar icon HOT 4
- web browser integration HOT 2
- Chrome integration HOT 2
- Shuffle a user name HOT 1
- Globally delete all domain settings marked as deleted locally
- Get rid of all v2 code HOT 2
- Automatic restart after language change doesn't work with Xubuntu 14.10 HOT 6
- Options are not saved HOT 5
- Compile error on debian jessie with QT 5.3.2 HOT 4
- Spurious 'KGK differs' warnings with portable version of Qt-SESAM
- Kaspersky alarm HOT 1
- Logging does not work HOT 3
- Options|Misc: Logging is always on HOT 8
- compilation failure on ubuntu 16.04: password.cpp:217:38: error: taking address of temporary [-fpermissive] HOT 3
- QtSESAM forgets Syncserver Settings HOT 1
- Unbundle cryptopp HOT 1
- Qt-SESAM sometimes forgets sync peer settings HOT 2
- Maximum password size resets to 40 on every launch
- Close modal windows before locking application
- Save button should be enabled with less input
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from qt-sesam.