I try to invoke root class in Qt project, but most of them failed.
by add some cmd in the .pro file
INCLUDEPATH += \
/usr/local/opt/root6/include
LIBS += \
-L/usr/local/opt/root6/lib
QMAKE_PRE_LINK += /usr/local/opt/root6/bin/root-config --cflags --libs
and source code
#include "TMath.h"
...
ui->label->setText(QString::number(TMath::Pi()+Int_t(32),10,10));

successfully, it works. But, that’s all. When I try to include other class, TString ,for example, it breakdown.
symbol(s) not found for architecture x86_64
linker command failded with exit code 1(use -v to see invocation)
Have you ever met this case? Thank you~
some codes attached below.
QtRoot.zip