The first reference blog link below
https://blog.csdn.net/czyt1988/article/details/42423613
A problem the code snippet below
for(i=0; i<8; I++)
{
GroupItem=m_pVarManagerAd - & gt; AddProperty (QtVariantPropertyManager: : groupTypeId (), QStringLiteral (" AD index ") + QString: : number (I + 1));
The item=m_pVarManagerAd - & gt; AddProperty (QVariant: : Int, QStringLiteral (" AD channel number: "));
AddAdPropertyMap (groupItem, item, index);
Item - & gt; SetValue (pChannel - & gt; Bind_road);
The item=m_pVarManagerAd - & gt; AddProperty (QVariant: : Double, QStringLiteral (" actual value: "));
AddAdPropertyMap (groupItem, item, index);
item - & gt; SetValue ((double) pChannel - & gt; Actual_val);
The UI - & gt; AdProperty - & gt; AddProperty (groupItem);
PChannel++;
}
Including addAdPropertyMap can need not reason, is adding an index map
Void MainWindow: : addAdPropertyMap (QtProperty * groupItem QtVariantProperty * item, int & amp; The index)
{
GroupItem - & gt; AddSubProperty (item);//add group
//m_id_property [index]=item;//the index - & gt; The item
M_adproperty_id [items]=index;//item - & gt; The index
index++;
}
In the item - the way & gt; SetValue ((double) pChannel - & gt; Actual_val); Here, the actual_val is communication of float data obtained, the interface display abnormal, debugging, it found that come with QtVariantPropertyManager valueChanged signal
Void valueChanged (QtProperty * property, const QVariant & amp; Value)
The value of the value range limit, see below, because of the scope, the original value has been changed for the minimum


Don't know which bosses have studied the scope? I record the first, now don't have time to dig into the