Hi

how to access and conrol QLable by ObjectName?

My code

Qt Code:
  1. void MakeAndShow_Objects::AnimatedObj_Show(QString Animated_objname)
  2. {
  3. Animated_label = new QLabel(this);
  4. Animated_label->[B]setObjectName(Animated_objname);[/B]
  5.  
  6. movie = new QMovie(Animated_label);
  7. movie->setObjectName(Animated_objname+"mv");
  8.  
  9. Animated_label->setGeometry(QString(ValuePostion_List[0]).toInt(),QString(ValuePostion_List[1]).toInt(),drawW,drawH);
  10. movie->setFileName(rsource+"Multimedia_Objects/Pic"+All_List.value(Animated_objname));
  11. Animated_label->setScaledContents(true);
  12. Animated_label->setMovie(movie);
  13. movie->start();
  14. qDebug()<<"animated"<<Animated_label->objectName();
  15. Animated_label->show();
  16. }
To copy to clipboard, switch view to plain text mode 

using This code and return true

this->findChild<QLabel *>(Animated_objname)

After big search not found any useful think and unknown to close, hide or ... QLable by objectname !