How to use QGSFileWidget to save file?No file is created when I choose 'Save style …' in layer...
Sometimes a banana is just a banana
Book where the good guy lives backwards through time and the bad guy lives forward
What's the purpose of these copper coils with resistors inside them in A Yamaha RX-V396RDS amplifier?
Did 5.25" floppies undergo a change in magnetic coating?
How do I implement simple JS code to deploy a compiled smart contract to ganache-cli?
How to speed up a process
Is there a German word for “analytics”?
You'll find me clean when something is full
How to deny access to SQL Server to certain login over SSMS, but allow over .Net SqlClient Data Provider
Multiplication via squaring and addition
How do ISS astronauts "get their stripes"?
Exponential growth/decay formula: what happened to the other constant of integration?
Whom do I have to contact for a ticket refund in case of denied boarding (in the EU)?
What is the wife of a henpecked husband called?
Can I become debt free or should I file for bankruptcy? How do I manage my debt and finances?
Called into a meeting and told we are being made redundant (laid off) and "not to share outside". Can I tell my partner?
Where is this triangular-shaped space station from?
Can you use a beast's innate abilities while polymorphed?
Make me a metasequence
Can chords be played on the flute?
What type of postprocessing gives the effect of people standing out
Must a tritone substitution use a dominant seventh chord?
Waiting for the gravy at a dinner table
What is a term for a function that when called repeatedly, has the same effect as calling once?
How to use QGSFileWidget to save file?
No file is created when I choose 'Save style …' in layer propertiesHow to fix Error 14 — Unable to open ~/.qgis//qgis.db?Saving/Loading QGIS style .qml and avoid specified symbologyQGIS : How to add points from GPS stream dataHow to incorporate QGIS custom widgets into plugin?How to filter out layers with QgsMapLayerComboBox?Bulk file convertor QGIS plugin/programUsing file path in QgsVectorLayer?QGIS on Ubuntu hanging at 'save file' dialogueQGIS tools fail with spaces in output file names
I am writing a QGis 2.18 plugin.
I am designing the plugin with QT, using QGis widgets. I can use QgsFileWidget to open file, but I did not find how to use it to save file.
If I try to define an output filename from my plugin, I read an error saying the file could not be found, which I believe means that the widget is in 'read' mode not in 'save' mode.
How can I set, from my python code, the QgsFileWidget to operate in save mode, and therefore let me define a filename for saving my output?
qgis python save qgis-custom-widgets
add a comment |
I am writing a QGis 2.18 plugin.
I am designing the plugin with QT, using QGis widgets. I can use QgsFileWidget to open file, but I did not find how to use it to save file.
If I try to define an output filename from my plugin, I read an error saying the file could not be found, which I believe means that the widget is in 'read' mode not in 'save' mode.
How can I set, from my python code, the QgsFileWidget to operate in save mode, and therefore let me define a filename for saving my output?
qgis python save qgis-custom-widgets
add a comment |
I am writing a QGis 2.18 plugin.
I am designing the plugin with QT, using QGis widgets. I can use QgsFileWidget to open file, but I did not find how to use it to save file.
If I try to define an output filename from my plugin, I read an error saying the file could not be found, which I believe means that the widget is in 'read' mode not in 'save' mode.
How can I set, from my python code, the QgsFileWidget to operate in save mode, and therefore let me define a filename for saving my output?
qgis python save qgis-custom-widgets
I am writing a QGis 2.18 plugin.
I am designing the plugin with QT, using QGis widgets. I can use QgsFileWidget to open file, but I did not find how to use it to save file.
If I try to define an output filename from my plugin, I read an error saying the file could not be found, which I believe means that the widget is in 'read' mode not in 'save' mode.
How can I set, from my python code, the QgsFileWidget to operate in save mode, and therefore let me define a filename for saving my output?
qgis python save qgis-custom-widgets
qgis python save qgis-custom-widgets
asked Apr 10 '18 at 7:50
Bruno von ParisBruno von Paris
426520
426520
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
That's not possible in 2.18 - the file save mode was not added until 3.0
add a comment |
I know the question is regarding QGIS 2.18, however for anyone viewing for QGIS 3.x, you can use:
QgsFileWidget.setStorageMode(QgsFileWidget.SaveFile)
(which is the equivalent of QgsFileWidget.setStorageMode(3) as QgsFileWidget.SaveFile returns 3)
New contributor
cauders is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
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%2f278828%2fhow-to-use-qgsfilewidget-to-save-file%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
That's not possible in 2.18 - the file save mode was not added until 3.0
add a comment |
That's not possible in 2.18 - the file save mode was not added until 3.0
add a comment |
That's not possible in 2.18 - the file save mode was not added until 3.0
That's not possible in 2.18 - the file save mode was not added until 3.0
answered Apr 10 '18 at 9:41
ndawsonndawson
19.8k22743
19.8k22743
add a comment |
add a comment |
I know the question is regarding QGIS 2.18, however for anyone viewing for QGIS 3.x, you can use:
QgsFileWidget.setStorageMode(QgsFileWidget.SaveFile)
(which is the equivalent of QgsFileWidget.setStorageMode(3) as QgsFileWidget.SaveFile returns 3)
New contributor
cauders is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
I know the question is regarding QGIS 2.18, however for anyone viewing for QGIS 3.x, you can use:
QgsFileWidget.setStorageMode(QgsFileWidget.SaveFile)
(which is the equivalent of QgsFileWidget.setStorageMode(3) as QgsFileWidget.SaveFile returns 3)
New contributor
cauders is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
I know the question is regarding QGIS 2.18, however for anyone viewing for QGIS 3.x, you can use:
QgsFileWidget.setStorageMode(QgsFileWidget.SaveFile)
(which is the equivalent of QgsFileWidget.setStorageMode(3) as QgsFileWidget.SaveFile returns 3)
New contributor
cauders is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
I know the question is regarding QGIS 2.18, however for anyone viewing for QGIS 3.x, you can use:
QgsFileWidget.setStorageMode(QgsFileWidget.SaveFile)
(which is the equivalent of QgsFileWidget.setStorageMode(3) as QgsFileWidget.SaveFile returns 3)
New contributor
cauders is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
cauders is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
answered 2 mins ago
cauderscauders
11
11
New contributor
cauders is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
cauders is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
cauders is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
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%2f278828%2fhow-to-use-qgsfilewidget-to-save-file%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