Close QGIS plugin window eventImport error when utilizing QGIS's Python Init functionRestart plugin from...
What makes the Forgotten Realms "forgotten"?
Issues with new Macs: hardware makes them difficult to use … what options might be available in the future?
Why did Jodrell Bank assist the Soviet Union to collect data from their spacecraft in the mid 1960's?
If I delete my router's history can my ISP still provide it to my parents?
Program that converts a number to a letter of the alphabet
Word or phrase for showing great skill at something without formal training in it
"On one hand" vs "on the one hand."
Is it safe to try charging my laptop with a USB-C PD charger that has less wattage than recommended?
Avoiding morning and evening handshakes
Every character has a name - does this lead to too many named characters?
Knowing when to use pictures over words
Does the "particle exchange" operator have any validity?
How can I deal with a significant flaw I found in my previous supervisor’s paper?
Jumping Numbers
Everyone is beautiful
Can we use the stored gravitational potential energy of a building to produce power?
It took me a lot of time to make this, pls like. (YouTube Comments #1)
Can pricing be copyrighted?
What is better: yes / no radio, or simple checkbox?
How to acknowledge an embarrassing job interview, now that I work directly with the interviewer?
Tikzing a circled star
Can I become debt free or should I file for bankruptcy? How do I manage my debt and finances?
Strange Sign on Lab Door
Why can a 352GB NumPy ndarray be used on an 8GB memory macOS computer?
Close QGIS plugin window event
Import error when utilizing QGIS's Python Init functionRestart plugin from PyQGISClose dialog when algorithm is finished (QGIS plugin)Why does openFeatureForm crash QGIS?Plugin Development “ignore close event”Can't render my own map canvas inside QGIS plugin windowHow to enable a keyboard shortcut for a pluginQGIS plugin fields will not resetQGIS plugin multithreading and loading memory layersQt folder browser opening more than once in QGIS plugin
I'm creating a QGIS Python plugin and i want to execute some code after hitting the close button 'X'.
I've added the code bellow to init function and the closeEvent function but still not working
self.dlg.closeEvent = self.closeEvent
qgis pyqgis
bumped to the homepage by Community♦ 14 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
add a comment |
I'm creating a QGIS Python plugin and i want to execute some code after hitting the close button 'X'.
I've added the code bellow to init function and the closeEvent function but still not working
self.dlg.closeEvent = self.closeEvent
qgis pyqgis
bumped to the homepage by Community♦ 14 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
This isn't really a QGIS question - you're better off asking on stackoverflow.com
– ndawson
Aug 19 '18 at 22:22
I think it is because the window is displayed in qgis so it's managed by qgis
– Anass Ayar
Aug 23 '18 at 11:10
add a comment |
I'm creating a QGIS Python plugin and i want to execute some code after hitting the close button 'X'.
I've added the code bellow to init function and the closeEvent function but still not working
self.dlg.closeEvent = self.closeEvent
qgis pyqgis
I'm creating a QGIS Python plugin and i want to execute some code after hitting the close button 'X'.
I've added the code bellow to init function and the closeEvent function but still not working
self.dlg.closeEvent = self.closeEvent
qgis pyqgis
qgis pyqgis
asked Aug 17 '18 at 10:57
Anass AyarAnass Ayar
1069
1069
bumped to the homepage by Community♦ 14 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
bumped to the homepage by Community♦ 14 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
This isn't really a QGIS question - you're better off asking on stackoverflow.com
– ndawson
Aug 19 '18 at 22:22
I think it is because the window is displayed in qgis so it's managed by qgis
– Anass Ayar
Aug 23 '18 at 11:10
add a comment |
This isn't really a QGIS question - you're better off asking on stackoverflow.com
– ndawson
Aug 19 '18 at 22:22
I think it is because the window is displayed in qgis so it's managed by qgis
– Anass Ayar
Aug 23 '18 at 11:10
This isn't really a QGIS question - you're better off asking on stackoverflow.com
– ndawson
Aug 19 '18 at 22:22
This isn't really a QGIS question - you're better off asking on stackoverflow.com
– ndawson
Aug 19 '18 at 22:22
I think it is because the window is displayed in qgis so it's managed by qgis
– Anass Ayar
Aug 23 '18 at 11:10
I think it is because the window is displayed in qgis so it's managed by qgis
– Anass Ayar
Aug 23 '18 at 11:10
add a comment |
1 Answer
1
active
oldest
votes
dialog.rejected.connect(self.some_function)
or (depends on what type of dialog you are working)
dialog.parent().rejected.connect(self.some_function)
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "79"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgis.stackexchange.com%2fquestions%2f293125%2fclose-qgis-plugin-window-event%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
dialog.rejected.connect(self.some_function)
or (depends on what type of dialog you are working)
dialog.parent().rejected.connect(self.some_function)
add a comment |
dialog.rejected.connect(self.some_function)
or (depends on what type of dialog you are working)
dialog.parent().rejected.connect(self.some_function)
add a comment |
dialog.rejected.connect(self.some_function)
or (depends on what type of dialog you are working)
dialog.parent().rejected.connect(self.some_function)
dialog.rejected.connect(self.some_function)
or (depends on what type of dialog you are working)
dialog.parent().rejected.connect(self.some_function)
answered Jan 31 at 20:19
ncicancica
1414
1414
add a comment |
add a comment |
Thanks for contributing an answer to Geographic Information Systems Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgis.stackexchange.com%2fquestions%2f293125%2fclose-qgis-plugin-window-event%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
This isn't really a QGIS question - you're better off asking on stackoverflow.com
– ndawson
Aug 19 '18 at 22:22
I think it is because the window is displayed in qgis so it's managed by qgis
– Anass Ayar
Aug 23 '18 at 11:10