Console input with Qt Creator

前端 未结 6 1136
执笔经年
执笔经年 2020-12-03 00:54

I\'m developping a very simple app on my Mac using QtCreator.

It\'s a console application and I want the user to enter its name, and then I display his name. Here is

6条回答
  •  长情又很酷
    2020-12-03 01:47

    I found a solution. With Qt Creator 1.3.0 (on Mac OS X), here is what I had to do :

    • Project->Run settings, check "Run in Terminal" (thanks Ropez)
    • Qt Creator->Preferences : Environnement : General : Terminal : I had to put the whole path to XTerm. For my config, I had to put /usr/x11/bin/xterm -e.

    Now, everything is working fine !

提交回复
热议问题