PDA

View Full Version : Design Check



prady
20th June 2012, 11:52
Hi, I am new to Qt and designing an UI for my application like.. 7876.

To get a look like this, I am doing the following things..
- created a mydialog subclass from QDialog
- created vertical box layout and added menu bar & mytabwidget to it
- created mytabwidget -derived from QWidget
- created horizondal layout with two widgets added for treeview and other controls
- called mydialog subclass from main

just want to check the approach what I am doing for this design is correct.
let me know is there any better way to do this ?

Thx in advance.

sonulohani
20th June 2012, 12:06
If the picture above mention is the application rather than the dialog, then derive it from QMainWindow rather than QDialog. If the output that you're getting is what you want then every approach is good.

prady
29th June 2012, 10:56
Hi,

I changed QDialog to QMainWindow now, looks neat. In my application instead of "other controls" I need to call external application with parameters, and show the output. Is IPC is the way to achieve this ? if so I am not getting any help on this.. could anyone suggest me how to do this, even any links with example will help me.

Thx,

sonulohani
29th June 2012, 11:13
Hey, Use QProcess (doc.qt.nokia.com/4.7-snapshot/qprocess.html). It will call the other process.

prady
29th June 2012, 11:24
I want to use the called application as part for the main application, and want to work in both the application simultaneously. still I can use QProcess ?

sonulohani
29th June 2012, 11:47
yup that you can do it... use QProcess.....