![]() |
A start in coding
Hi,
So I decided I want to make an app, a very simple one. It would be a window, with buttons, and each button executes a command in xterm while in root. Commands that I will need will be wget, tar, cd, bzip2... Anybody's help? |
Re: A start in coding
Can be done easily in Qt. You're going to want to use QWidget (obviously), QPushButton, and QProcess. You'll also probably want any of the layout classes.
You could also do it in QML, but you'll need to integrate Qt/C++ in order to actually execute the commands. QML doesn't have a QProcess equivalent. |
Re: A start in coding
Quote:
|
Re: A start in coding
After installing Qt SDK, you will need add the Maemo target via the SDK Maintenance Tool. Then you have everything you need to create and deploy a Maemo Qt application. :)
|
Re: A start in coding
Congratulations to Marxypoos for his 1000th post \o/ ;-)
|
Re: A start in coding
I'd use python with pyQT no development environment needed and you can develop right on your phone
Code:
#!/usr/bin/python |
Re: A start in coding
why not python? I think it is simpler
|
Re: A start in coding
QT is good but you have other options too... a simpler one would be to use Python with Bash or a simple dialog like Zenity and Bash. If you are familiar with shell scripting that would be the easiest way. Neither Python nor bash would require an DE or SDK to be installed. You could make the Python UI with QT Designer though if you prefer wysiwyg.
The Zenity way would probably be the easiest but maybe not what you are after. |
Re: A start in coding
First do you know how to code? If not learn basics of some programming language. I recommend python or c++. Forget about GUI programming (Qt) and learn to make simple command line applications (Hello World and stuff). This may sound dull and you wanna make something cool but it will help you ALOT in the future. Start learning Qt when you have enought experience with some programming language.
|
All times are GMT. The time now is 10:40. |
vBulletin® Version 3.8.8