PDA

View Full Version : QT Never used! GUI and Comand line Program



kurt-hardy
2nd September 2010, 10:55
Hello
i am currently installing QT.
Firstly i have a comand line program to read a video file and edit this. (this is on linux)
i want to create a GUI so this program can run on windows too.

the problem is that im not sure whether i can have the comand line and GUI in the same file and if i can how?

also are there any beginners tutorials on using QT. i usually use java,C# and C
thanks
kurt

wysota
2nd September 2010, 12:37
This is a C++ question and not a Qt question. I suggest you learn C++ before taking on Qt, you will save yourself a lot of trouble later on.

marcvanriet
2nd September 2010, 14:10
Hi Kurt,

In the main() of the program you write, an application class and QDialog or QMainWindow class are created. For a gui application, the QDialog or QMainWindow are shown.

You could examine the command line arguments in your main() function, and choose not to show the Dialog or Mainwindow, but instead do things with your video file and exit.

Best regards,
Marc