Results 1 to 2 of 2

Thread: how to read jpeg file from socket and show it on a widget

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Feb 2012
    Location
    Armenia/Yerevan
    Posts
    400
    Thanks
    15
    Thanked 16 Times in 15 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11

    Default how to read jpeg file from socket and show it on a widget

    I always showed a jpeg file within widget or label using their address in the local system. This time, I want to

    read a jpeg file from tcp socket and show the image, is there any functions for doing that?

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: how to read jpeg file from socket and show it on a widget

    read a jpeg file from tcp socket and show the image, is there any functions for doing that?
    Yes.
    QIODevice::readyRead(), QIODevice::read(), QByteArray, QPixmap::loadFromData().

Similar Threads

  1. Replies: 6
    Last Post: 7th October 2012, 16:42
  2. Replies: 2
    Last Post: 29th September 2012, 20:22
  3. Can't read from socket
    By marekdor in forum Newbie
    Replies: 6
    Last Post: 9th August 2012, 11:06
  4. QWebView doesn't show JPEG images on a clean XP machine
    By mentalmushroom in forum Qt Programming
    Replies: 46
    Last Post: 12th August 2011, 22:41
  5. Replies: 2
    Last Post: 22nd May 2011, 21:31

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
  •  
Qt is a trademark of The Qt Company.