Results 1 to 4 of 4

Thread: Opening Serial Port in ui

  1. #1
    Join Date
    Jan 2017
    Posts
    2
    Qt products
    Qt5
    Platforms
    Windows

    Default Opening Serial Port in ui

    Hi,
    I am so new in qt,
    I am designing a ui which controls hardware,
    So I need to reach serial port,
    I use the example code exactly, but when I compile it, there is an error :
    QIODevice::write (QSerialPort) : device not open

    I already check the hardware with Control Panel and it seems everything is ok.
    Thanks for help.

  2. #2
    Join Date
    Jun 2012
    Posts
    41
    Thanks
    4
    Thanked 1 Time in 1 Post
    Qt products
    Qt4 Qt/Embedded Qt Jambi
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Opening Serial Port in ui

    Hi, Reg.

    What OS do you use Linux, Windows ...?

  3. #3
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,230
    Thanks
    302
    Thanked 864 Times in 851 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: Opening Serial Port in ui

    @marcos: Big hint here:

    I already check the hardware with Control Panel
    <=== The Great Pumpkin says ===>
    Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.

  4. #4
    Join Date
    Jun 2012
    Posts
    41
    Thanks
    4
    Thanked 1 Time in 1 Post
    Qt products
    Qt4 Qt/Embedded Qt Jambi
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Talking Re: Opening Serial Port in ui

    Of course D_Stranz, you right, Windows to here in the post.

    Sorry for not replying soon.
    Follow the link with information that can help you.

    https://www.youtube.com/watch?v=AX-HhBXBzGg

Similar Threads

  1. Serial read misses to read data from the serial port
    By mania in forum Qt for Embedded and Mobile
    Replies: 11
    Last Post: 18th August 2014, 09:49
  2. Replies: 5
    Last Post: 27th February 2014, 10:01
  3. qt serial port
    By saman_artorious in forum Newbie
    Replies: 9
    Last Post: 24th April 2013, 17:19
  4. Best serial port library?
    By Momergil in forum Qt Programming
    Replies: 4
    Last Post: 24th January 2013, 07:38
  5. Serial Port
    By b1 in forum Qt Programming
    Replies: 2
    Last Post: 18th January 2007, 03:05

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.