marcoduiker / qgis_quickprint Goto Github PK
View Code? Open in Web Editor NEWthe source for the quickprint plugin
License: Other
the source for the quickprint plugin
License: Other
Hi,
using QGis 2.99.0-Master 6c64c5a586 there is an error on line :
self.iface.messageBar().pushMessage("Info", "Saved as pdf: %s" % self.dlg.pdfFileNameBox.displayText() ,self.iface.messageBar().INFO)
QgsMessageBar' object has no attribute 'INFO'
It seems that message level is now defined in Qgis class :
void QgsMessageBar::pushMessage | ( | const QString & | text, Qgis::MessageLevel level = Qgis::Info,
int duration = 5 )
Great code, it is helping me come up with a print layout for my project.
One thing I am trying to do is align map items to the bottom of the map of my layout. In my case I would like to align the bottom of my legend with the bottom of the map border in my layout.
Do you have any idea how to do this? I have tried to set the reference point to the bottom left, but I cannot get it to to work for some reason. I also tried getting the height of my legend, ex: legend.sizeWithUnits().height()
but for some reason it only is able to print out the height after the map is exported. I was hoping to add the height of the legend item and add to it the margin between the bottom border of the map and the bottom of the page to set the correct height of the legend (assuming the reference point is the top left); but I cannot get this to work. Any help is appreciated.
Steps to reproduce
Traceback (most recent call last):
File "C:/Users/USER/.qgis2/python/plugins\QuickPrint\quickprint.py", line 216, in run
item.setStyle('Numeric')
NameError: global name 'item' is not defined
QuickPrint 0.4, QGIS 2.14.20-Essen on Windows 10
Very useful qgis plug-in !
It just misses the North arrow so that the map created respects all the cartography rules
A link to this repo will do.
Thanks.
It would be very useful to have a simple legend in the map that includes active layers (or a selection of them)
Working in QGIS 2.14.15 with Windows 10, I click on Help, and there is no response, no help page opens.
Steps to reproduce
Traceback (most recent call last):
File "/Users/florin/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/QuickPrint/quick_print3.py", line 533, in run
os.startfile(self.dlg.pdfFileNameBox.displayText())
AttributeError: module 'os' has no attribute 'startfile'
QuickPrint 3.6.0, QGIS 3.4.5-Madeira on Darwin 19.6.0
I'd love to be able to use this plugin with common/standard ANSI paper sizes, much like the two A_ paper sizes you've included.
Is this possible?
Thanks!
Under Linux things work fine
My project distance units are set to feet.
Is it possible to either turn off the scale bar or have the scale drawn in English rather than metric units?
When you upgrade the plugin the old actions/toolbars are not removed.
Seems like something is going wrong as the clean up of the plugins is being done in:
https://github.com/MarcoDuiker/QGIS_QuickPrint/blob/master/quick_print3.py#L200
via the actions in self.actions, but that only works when you CREATE those action via the add_action method:
https://github.com/MarcoDuiker/QGIS_QuickPrint/blob/master/quick_print3.py#L105
If you create your actions/toolbars yourself, you are also responsible for the cleanup.
After clicking the save button a wait cursor should appear.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.