Meanwhile i've included (imported) my python files into a "Qt Generic
project" ( "test.creator" ).
Now the example works on an "open" project.

  QString           qs_path;
  QString           qs_file;

  ProjectExplorer::Project *p_pro  =
ProjectExplorerPlugin::instance()->currentProject();

  if( p_pro == NULL ) {

    QMessageBox::information( Core::ICore::mainWindow(),
                              tr("Information"),
                              tr("There is no open project!") );
    return;
  }

  ProjectExplorer::Node    *p_nod  =
ProjectExplorerPlugin::instance()->currentNode();

  qs_path = p_nod->path();
  qs_file = qs_path.section( QLatin1String("/"),-1,-1);               
// get only file name

  f_dlg_conv *wdg_conv = new f_dlg_conv( qs_file );
  wdg_conv->exec();


It has also  now a more professional look to display all used files in
an open project tree,
though a wouldn't need it, because all my dependencies starts all from
one single file.


Thank you very much for answering,

Hermann
_______________________________________________
Qt-creator mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/qt-creator

Reply via email to