I have spent so much time on this I'm at the point of giving up. All I want to do is be able to show the pointer value of existCards on a Qlabel. I'm new at C++ and QT. I have read and watched many videos/tutorials and still can't grasp the concept. Any help will be appreciated.
typedef short I16;
I16 existCards;
I16 CardNo=&existCards;
I16 _8134_initial(I16* existCards)
{
return* existCards;
}
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::MainWindow)
{
ui->setupUi(this);
}
MainWindow::~MainWindow()
{
delete ui;
}
void MainWindow::on_pushButton_clicked()
{
QString strForLabel = QString("0x") + QString::number(existCards, 16);
ui->label->setText(strForLabel);
}