After including  following line

 "#include <projectexplorer/projectnodes.h>"

i was able to compile.

ProjectExplorerPlugin *plug = ProjectExplorerPlugin::instance(); // OK
ProjectExplorer::Node *nod  = plug>currentNode();                // OK
QString qs_path = nod->path();                                   // OK

Now it compiles all, but crashes, because "nod" is NULL.

So i think i made a wrong assumption. I 've not an open project,
because i deal with python3.

What i have to do, is to extract the path and filename from
the "Filesystem" navigation widget and not from the "Project"
navigation widget.

But however, can anybody show up some code, how to extract these values?



regards, Hermann



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

Reply via email to