QPrinter Fehler LNK2019

Verschiedenes zu Qt
Antworten
mur
Beiträge: 1
Registriert: 23. März 2022 12:12

QPrinter Fehler LNK2019

Beitrag von mur »

Hallo zusammen,

ich wollte erste Erfahrungen bei Ausdruck unter Qt machen...

Es handelt sich um Qt5.

Die Quellcode:

#include "QtPrintSupport/qprinter.h"
#include "QtPrintSupport/qprintdialog.h"
#include "QtGui/qpainter.h"


QPrinter *printer = new QPrinter(QPrinter::ScreenResolution);
printer->setPrinterName("MyPrinter");
QPrintDialog *pdialog = new QPrintDialog(printer);
pdialog->setWindowTitle(tr("Print Document"));
if (pdialog->exec() == QDialog::Rejected) return;
myTextEdit->print(printer);

Bei kompilieren Fehlermeldungen:

Fehler LNK2019 Verweis auf nicht aufgelöstes externes Symbol ""__declspec(dllimport) public: __thiscall QPrinter::QPrinter(enum QPrinter::PrinterMode)" (__imp_??0QPrinter@@QAE@W4PrinterMode@0@@Z)" in Funktion ***

Fehler LNK2019 Verweis auf nicht aufgelöstes externes Symbol ""__declspec(dllimport) public: virtual __thiscall QPrinter::~QPrinter(void)" (__imp_??1QPrinter@@UAE@XZ)" in Funktion ""public: virtual void * __thiscall QPrinter::`scalar deleting destructor'(unsigned int)" (??_GQPrinter@@UAEPAXI@Z)". ***

Fehler LNK2019 Verweis auf nicht aufgelöstes externes Symbol ""__declspec(dllimport) public: __thiscall QPrintDialog::QPrintDialog(class QPrinter *,class QWidget *)" (__imp_??0QPrintDialog@@QAE@PAVQPrinter@@PAVQWidget@@@Z)" in Funktion ****

Fehler LNK2019 Verweis auf nicht aufgelöstes externes Symbol ""__declspec(dllimport) public: virtual __thiscall QPrintDialog::~QPrintDialog(void)" (__imp_??1QPrintDialog@@UAE@XZ)" in Funktion ***


Ich bedanke mich voraus.
wrollykey
Beiträge: 1
Registriert: 18. September 2022 09:57

Re: QPrinter Fehler LNK2019

Beitrag von wrollykey »

I accidentally saw on the platform that day that the total duration of my League of Legends game was 6447.5 hours.
My first reaction was to take a breath.
I have been in contact with cgame for 9 years, which is 269 days without sleep, accounting for 3% of my current life.
If you are a King of Glory player, click on the personal homepage to find out your game rounds, multiply it by 20 (minutes), you can get similar data.
These quantified data are chilling, for no other reason, just because the first word that flashed into my mind was "a waste of time."
Then I started to blame myself, closed the interface hastily, opened the ppt and conceived the non-existent plan in front of the blank screen, completely forgetting that it was already 2:00 in the morning.
Said it is a concept, but it is actually just knocking on a bunch of words that have no practical effect, as if as long as one page of A4 paper is filled, anxiety will be squeezed out.
"I have to do something, I have to do something, I have to do something."
My first reaction was to take a breath.
what is search engine optimization
Antworten