The knee-jerk response many developers will have is to just hack their own QTextDocument derived class. After all, it wouldn’t take much to add a document name to the class, nor would it take much to hack a version of printPage() to place the current date and document name at the top of the page along with the page number. You might even customize the print() method where pageNumberPos is calculated to make it a … Qt – Printing – Taxes – Pt. 5Read more
Qt – Printing – Taxes – Pt. 4
Before I get into more coding on this topic, I need to cover some remedial information. The first is how we center a heading. Even when we had printer spacing charts we would write the text on scratch paper then put a slash every two characters, counting spaces as characters then we would count the slashes. When working with narrow form we would subtract the number of slashes from 40, with wide form it was … Qt – Printing – Taxes – Pt. 4Read more
Qt – Printing – Taxes – Pt. 3
Before I get too far with this post let me tell you the source which uses the lp command is now up on Sourceforge. It is in the xpnsqt_v3-o directory. Took a bit to get uploaded. Probably shouldn’t have tried during the window when most IT shops are performing system upgrades. Factories and offices may shut down Christmas to New Years, but IT departments tend to work overtime. That’s when you can roll out all … Qt – Printing – Taxes – Pt. 3Read more
Qt – Printing – Taxes — Pt. 2
Apple Screws The Known Universe For whatever reason Apple (AAPL) has been allowed to maintain the CUPS (Common Unix Printing System) software for Linux and other platforms. Despite what people may tell you Apple is not a technology company, it’s a cult. That’s how you get idiots to spend over $1000 on an iDiot Phone and a ludicrous $53K for a desktop computer. Apple has, on multiple occasions abandoned computer platforms and operating systems, yet … Qt – Printing – Taxes — Pt. 2Read more
Qt – Printing – Taxes — Pt. 1
Unlike many of my “journey” post series, I actually have to complete most of this. It’s not experimenting for the sake of experimenting. It’s a need which keeps coming around every year. Those of you who have read “The Minimum You Need to Know About Qt and Databases” ISBN-13: 978-0-9823580-5-4 have an inkling about this. Please allow a thumbnail sketch for those less well read. Whenever I’m experimenting with/trying to learn some new tools there … Qt – Printing – Taxes — Pt. 1Read more