Results 1 to 3 of 3

Thread: Serial port and Qtextedit or Qtlinedit

  1. #1
    Join Date
    Jan 2010
    Posts
    39
    Qt products
    Qt/Embedded
    Platforms
    Unix/X11

    Default Serial port and Qtextedit or Qtlinedit

    Hi all,

    I am currently working on a project on an arm9 board with touchscreen (w/o keyboard attracted). However, I need to communicate the board with 'minicom' hyperterminal running on my laptop via serial cable.

    What I need is whenever I press a button on my laptop, will be reflected on the Qtextedit or Qtlinedit widget. How can I proceed in doing this?

    I was hoping to just use linux serial communication files ie termios to aid with the serial communication instead of Qextserial. (as my ram is very limited).

    I am using qt-embedded-linux-opensource-src-4.5.2.

    Thanks.

    Regards,
    Stanley
    Last edited by eva2002; 8th January 2010 at 04:15.

  2. #2
    Join Date
    Jan 2006
    Location
    Frankfurt
    Posts
    500
    Thanks
    1
    Thanked 52 Times in 52 Posts
    Platforms
    MacOS X Unix/X11

    Default Re: Serial port and Qtextedit or Qtlinedit

    What is the concrete problem you are facing? This should work pretty much out of the box: Use QFile to open the serial port and as soon as data arrives, put it in the QTextEdit.
    It's nice to be important but it's more important to be nice.

  3. #3
    Join Date
    Jan 2010
    Posts
    39
    Qt products
    Qt/Embedded
    Platforms
    Unix/X11

    Default Re: Serial port and Qtextedit or Qtlinedit

    Thanks for the reply. Its not really a problem. Its just that I don't know how to start.

    I am still new to QT. is there any examples for reference where I can read up?

Similar Threads

  1. data from serial port
    By bhe in forum Newbie
    Replies: 4
    Last Post: 3rd May 2009, 11:19
  2. serial port programming
    By sujatashooter in forum Qt Programming
    Replies: 1
    Last Post: 29th November 2008, 16:51
  3. serial port programming in qt
    By sar_van81 in forum Qt Programming
    Replies: 46
    Last Post: 13th June 2007, 13:27
  4. Serial Port
    By b1 in forum Qt Programming
    Replies: 2
    Last Post: 18th January 2007, 03:05
  5. serial port and USB communication
    By shamik in forum Qt Programming
    Replies: 5
    Last Post: 4th December 2006, 11:40

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.