#include <QApplication>
#include <QLabel>
int main(int argc, char** argv)
{
int variable = 2;
int* pointer = &variable;
label.setText("number="+num+"pointer="+p);
label.show();
return app.exec();
}
#include <QApplication>
#include <QLabel>
int main(int argc, char** argv)
{
QApplication app(argc,argv);
QLabel label;
int variable = 2;
int* pointer = &variable;
QString num=QString::number(variable);
QString p=QString::number(pointer,16);
label.setText("number="+num+"pointer="+p);
label.show();
return app.exec();
}
To copy to clipboard, switch view to plain text mode
Bookmarks