Hi,
I got a debugging error "can't find linker symbol for virtual table for `QPixmap' value", what does it mean?
void GalleryTab::setupPuzzle()
{
....
puzzleWidget->drawPuzzleWidget(puzzleImage); // puzzleImage is a QPixmap
}
void PuzzleWidget
::drawPuzzleWidget(const QPixmap aPuzzleImage
){
clear();
QRect square
= QRect(0,
0, m_ImageSize, m_ImageSize
);
pieceLocations.append(location);
piecePixmaps.append(aPuzzleImage);
pieceRects.append(square);
update(square);
}
void GalleryTab::setupPuzzle()
{
....
puzzleWidget->drawPuzzleWidget(puzzleImage); // puzzleImage is a QPixmap
}
void PuzzleWidget::drawPuzzleWidget(const QPixmap aPuzzleImage){
clear();
QPoint location = QPoint(0,0);
QRect square = QRect(0,0, m_ImageSize, m_ImageSize);
pieceLocations.append(location);
piecePixmaps.append(aPuzzleImage);
pieceRects.append(square);
update(square);
}
To copy to clipboard, switch view to plain text mode
What did I do wrong? How do I rewrite drawPuzzleWidget() to display an image "aPuzzleImage"?
Your help is much appreciated!
Bookmarks