Maybe an example with Leiterbeschriftungen exportieren
https://github.com/qelectrotech/qelectr … export.cpp
https://github.com/qelectrotech/qelectr … r.cpp#L458
https://github.com/qelectrotech/qelectr … r.cpp#L835
https://github.com/qelectrotech/qelectr … .cpp#L1559
Tip:
//We must define if the connected terminal is a folio report, if it is the case
//we don't add the num to the hash because the terminal doesn't represent a real terminal.
if(!(c->terminal1->parentElement()->linkType() & Element::AllReport))
{
int value = m_hash.value(num, 0);
++value;
m_hash.insert(num, value);
}
if(!(c->terminal2->parentElement()->linkType() & Element::AllReport))
{
int value = m_hash.value(num, 0);
++value;
m_hash.insert(num, value);
}
















