Thank you! I changed it, changed my pathname, and got it to build without any warning messages....... but nothing shows up.
QString qindex
= itoa
(index, buffer,
10);
filename += qindex;
filename += ".png";
if (!qimg.load(filename))
qWarning("Failed to load target image");
if (qimg.isNull())
qWarning("Failed to load target image");
img_board[j][i]->setPixmap(qimg);
if (img_board[j][i] == NULL)
qWarning("Failed to load target image");
QString qindex = itoa(index, buffer, 10);
QString filename("img/");
filename += qindex;
filename += ".png";
if (!qimg.load(filename))
qWarning("Failed to load target image");
if (qimg.isNull())
qWarning("Failed to load target image");
img_board[j][i] = new QLabel;
img_board[j][i]->setPixmap(qimg);
if (img_board[j][i] == NULL)
qWarning("Failed to load target image");
To copy to clipboard, switch view to plain text mode
...where, in the .h file, I define...
vector<vector<QLabel*> > img_board;
vector<vector<QLabel*> > img_board;
To copy to clipboard, switch view to plain text mode
Compile message is
Starting C:\Qt\qt\examples\widgets\tetrix-build-desktop\debug\tetrix.exe...
BLANK WINDOW APPEARS
I close it...
C:\Qt\qt\examples\widgets\tetrix-build-desktop\debug\tetrix.exe exited with code 0
Bookmarks