Qt Console with Bash

后端 未结 2 1532
长发绾君心
长发绾君心 2021-01-25 04:27

I am writing a program using the Qt framework. I would like the user to be able to have access to a console/terminal from within the application itself.

In other words,

2条回答
  •  青春惊慌失措
    2021-01-25 05:19

    There is really not much tutorial needed for QTermWidget, although there is one here.

    The purpose of the widget is that it does not require any complication. The code would be something like this without the extra settings:

    QTermWidget *console = new QTermWidget();
    QMainWindow *mainWindow = new QMainWindow();
    mainWindow->setCentralWidget(console);
    

    It is also not necessarily true that it is not up-to-date. It was recently updated to build against Qt 5 properly. If you lack anything, please use the issue tracker on github.

    It should be more or less in mature and "complete" state, that is why you may not see heavy progress. It is just a widget after all, not a big framework.

提交回复
热议问题