1
Qt/Qtopia / My first application: Done. A few questions
« on: March 13, 2004, 09:45:11 pm »
I am new to Qt and C++ and only progran as a hobby. I got my Z one month ago. I just finished my first application thankx to some help from members of this board.
The app is just a Unit Conversion Program. Wrote it as a training exercise, not because anyone needed another conversion program! In any case I attached the source code to this message. (don\'t expect it to be pretty). I tested the file and it will compile and run under dev-x86-qpe environment, dev-arm-qpe and transferred to Z works fine; also under winXP envronment works fine. The program uses customizable text files as the conversion database. I included these data files in the attachment too. They should be in the same directory where you run the program from.
Here are my questions:
1) What is the best way to get the application to start full screen. What screen size should be used? My app seems to start a little bit less than full size and then I can maximize it.
2) I use a QLabel and a QLineedit. How can I set the color for those backgrounds?
3) The Lineedit accepts keyboard entry from the Sharp hardware. I tried to do a connect of the textChanged signal to a Slot in mysoftware but this never works. Maybe some one could look at that connect statement.
4) I used a setCaption, but the title doesn\'t appear in the title bar?
Sorry if some of these questions may be obvious, but I have spent hours searching and trying to resolve them.
I placed the files here too:
http://www.delferro.net/zaurus
Thankx\'JDF
The app is just a Unit Conversion Program. Wrote it as a training exercise, not because anyone needed another conversion program! In any case I attached the source code to this message. (don\'t expect it to be pretty). I tested the file and it will compile and run under dev-x86-qpe environment, dev-arm-qpe and transferred to Z works fine; also under winXP envronment works fine. The program uses customizable text files as the conversion database. I included these data files in the attachment too. They should be in the same directory where you run the program from.
Here are my questions:
1) What is the best way to get the application to start full screen. What screen size should be used? My app seems to start a little bit less than full size and then I can maximize it.
2) I use a QLabel and a QLineedit. How can I set the color for those backgrounds?
3) The Lineedit accepts keyboard entry from the Sharp hardware. I tried to do a connect of the textChanged signal to a Slot in mysoftware but this never works. Maybe some one could look at that connect statement.
4) I used a setCaption, but the title doesn\'t appear in the title bar?
Sorry if some of these questions may be obvious, but I have spent hours searching and trying to resolve them.
I placed the files here too:
http://www.delferro.net/zaurus
Thankx\'JDF