

NOTE: I have pretty much all of the qt dev packages installed on my machine. And to connect the output of the process to the text-browser, we will be using QT's signals and slots API's.Īt a minimum - this tutorial will require g++, make, qmake and the qtdeclarative5-dev package. In order to connect the button-click to a function that will start a terminal command. When we click the button - we will start a terminal program "ls -alh $HOME/Desktop/" in a separate process and display its output in the text-browser. A button (using QT's QPushButton class) In order to answer neo's other question about connecting a button to a terminal command, we'll be developing a small QT Widgets based GUI application.
#Qt creator tutorial software
It is developed and maintained by the same people who develop the QT libraries and is an excellent piece of software to use for quickly building QT based applications.īefore trying to build QT programs from the command-line, I would personally recommend using QTCreator for your first few projects, until you have built up a bit more of a working knowledge of the QT application framework, its components and features.Īnyway, neo wanted to know if it is possible to create a QT GUI without QTCreator - it is - and this tutorial will show you how. QTCreator is an IDE (Integrated Development Environment) for QT. We'll also address the button related question too. So the aim of this tutorial is to create a simple QT based GUI application from the command line without having to use QTCreator. Is it possible to create a QT based GUI application in the terminal without using QTCreator? How can I link a QT button to a terminal command?Ģ. The questions essentially boiled down to:ġ. I've put together a little tutorial, which hopefully answers his questions.īut I've decided to post it in it's own thread, as a piece of stand-alone content for the rest of the community. In this thread user asked a couple of QT related questions.
