How about if use GUI class in QT CLI application?

113 views Asked by At

I am developing a Qt CLI application. I know that we should only use the class of CORE lib

QT       -= gui
CONFIG   += console

But I want to use QStandardItemModel for a tree view (show on console window). How about if I set Qt += gui and include QStandardItemModel in my code and develop a CLI application.

P/s: Could I create a standard tree model for developing both GUI and CLI application instead of QStandardItemModel (only work on GUI)?

0

There are 0 answers