QComboBox of check boxes not rendering check boxes on linux but works properly on windows
Unsolved
General and Desktop
-
I have the following function that creates a QComboBox of checkboxes :
this->Model = new QStandardItemModel; for(int i=0;i<SLIderbars->size();i++){ this->Item1 = new QStandardItem; this->Item1->setText(m_sliderNames->itemText(i)); this->Item1->setFlags(Qt::ItemIsUserCheckable | Qt::ItemIsEnabled); this->Item1->setData(Qt::Unchecked, Qt::CheckStateRole); this->Model->insertRow(i, this->Item1); this->Items.push_back(this->Item1); } connect(this->Model, SIGNAL(dataChanged ( const QModelIndex&, const QModelIndex&)), this, SLOT(slot_changed(const QModelIndex&, const QModelIndex&))); this->comboBox->setModel(this->Model);
The code works how it supposed to work on windows but when I try to compile it on Linux the checkboxes are not visible.
Can someone help me make the checkboxes render on Linux version?
-
@Zetsil said in QComboBox of check boxes not rendering check boxes on linux but works properly on windows:
SLIderbars->size()
What does it return on Linux?
-
@Zetsil said in QComboBox of check boxes not rendering check boxes on linux but works properly on windows:
So it returns the size correctly
Did you really check that?
LikeqDebug() << SLIderbars->size(); for(int i=0;i<SLIderbars->size();i++){