Hello all,
I feel very confused about printing.
Everywhere I went, it was too confusing figuring out where to start when to print out a simple document.
I wanted to print a document like this:
I press the print button, it opens up a dialog checking pdf or not.
I have this QStringList of all Items sorted in my inventory
QStringList items:
each element looked like this: "title,type,author,datePublished"
what I wanted to do was print out the report to a pdf in a way that looked like this:
LIBRARY ITEMS : DATE
items[0]
items[1]
items[2]
items[3]
items[4]
etc..
But all of this about QPainter, QTextdocuments, QPrintPreviewDialog/Widget (list goes on and on).... not to mention every attempt i have done ends saying the Qpainter hasn't started(isnt that what the begin method is for!?)
I sound like an idiot, I know.
But if anyone could help with this, it would be a great help.
I could use some help in how to tell when to go to the next page... i could never understand that from the docs
all i need is a general guideline on how to implement this simple list via printing out qstringlists to what seems to be either the painter directly or document or.... honestly i dont know. I'm so confused.
Thanks for those who help,
gamenovice
**let me know if i was not clear
Bookmarks