Quantcast
Channel: Jobs
Viewing all articles
Browse latest Browse all 18427

[Solved} Qt5 and QVariant

$
0
0
These codes are working fine with previous Qt version. But, Qt5 gives me this error : Qt5.0.0/5.0.0/gcc_64/include/QtCore/qvariant.h:472: error: ‘QVariant::QVariant(Qt::PenStyle)’ is private What is the correct way for these codes?   ui->comboBox_Pen->addItem(tr("SolidLine"),static_cast<int>(Qt::SolidLine));        ui->comboBox_Pen->addItem(tr("DashLine"),Qt::DashLine);      ui->comboBox_Pen->addItem(tr("DotLine"),Qt::DotLine);      ui->comboBox_Pen->addItem(tr("DashDotLine"),Qt::DashDotLine);      ui->comboBox_Pen->addItem(tr("DashDotDotLine"),Qt::DashDotDotLine);      ui->comboBox_Pen->addItem(tr("CustomDashLine"),Qt::CustomDashLine);

Viewing all articles
Browse latest Browse all 18427

Trending Articles