Hi all
Please for support and help
Thanks in advance!
Qt Code:
  1. my list in .h file
  2.  
  3. QList < FilmDoc > * pDocList;
  4.  
  5. void FilmApp::openDocumentFile (const char *file)
  6. {
  7. statusBar ()->message (tr ("Opening file..."));
  8.  
  9. QList <FilmDoc> doc = *pDocList;
  10.  
  11. // if this might help function has to check if file is already opened
  12. // and if yes then setFocus to opened view
  13. for ( int i = 0; i < doc.size (); ++i ) {
  14. if ( doc.contains ( doc& ) == file ){// this line generate err
  15.  
  16. FilmView * view = doc->firstView ();
  17. view->setFocus ();
  18. return;
  19. }
  20. }
  21. ...
  22. }
To copy to clipboard, switch view to plain text mode