Salvando Arquivos em Pdf (Exemplo)
- caminho+="/DESKTOP/TESTE.PDF";
- printer->setOutputFileName(caminho);
- painter->drawText(30,150,"Alô Mundo do Pdf");
- painter->end();
No projeto esta bem maior , mais a base e essa . Quem quiser pode acrescentar algo !!!
6 replies
Completando a informação do txt, assim seria o modo de leitura:
- QString fileName = QFileDialog(this, Qt::Widget).getOpenFileName(this,"Abrir Arquivo Txt",getenv("HOME"),"Arquivos Txt(*.txt)");
- QStringList listaLinhasArquivos;
- while(!texto->atEnd()){
- listaLinhasArquivos << texto->readLine();
- }
- arquivo.close();
You must log in to post a reply. Not a member yet? Register here!

