PDA

View Full Version : Methods to display received data



pupqt
18th April 2011, 05:29
Hello there,

I am developing embedded application, where am coming across a requirement to display received messages from other devices connected through COM ports.

am using QWidget as my base class. For to display which class I can include?
I was thinking to use textedit box, and display data in that box. Can I do like that???

Pls suggest me some ways to display data....

squidge
18th April 2011, 07:48
Well that depends on what data you are receiving, and how you want that data displayed.

A text edit box is certainly one way of display data. You can also use QListView, etc.

pupqt
18th April 2011, 08:22
Well that depends on what data you are receiving, and how you want that data displayed.

A text edit box is certainly one way of display data. You can also use QListView, etc.



Thank u
If example or snippet was given it would have been more better to understand.

nightghost
18th April 2011, 09:50
Well take the data from the COM-Port (via a lib or directly... I don't know how you get the data), translate it into a QString and use QTextEdit::append