Results 1 to 11 of 11

Thread: Qt Data transfer

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Qt Data transfer

    Quote Originally Posted by Shibby284 View Post
    hello! I have 2 unrelated questions:
    1. Is there a way to hold the main in a wait mode?
    meaning the main will pass the return a.exec(); (a is a Qapplication) and enter a wait mode until his subprocesses will end(the gui for example).
    The GUI has ended after exec() returns.
    If you want to keep the event loop running until all event based jobs are finished, have a look at QEventLoopLocker.

    Quote Originally Posted by Shibby284 View Post
    The problem is that the video is really slow with a lot of lag.
    What is the best and fastest way in transferring data into a process?
    Well, obviously the best solution would involve not having to copy the data from one process to another.

    But you could try avoiding the continuous allocation and deallocation of memory.
    I.e. allocate a buffer once and then use it to read from the socket and write to the process using the read/write methods that take char* for the data.

    Cheers,
    _

  2. The following user says thank you to anda_skoa for this useful post:

    Shibby284 (18th July 2015)

Similar Threads

  1. Fastest way to transfer Data over tcp
    By Qiieha in forum General Programming
    Replies: 21
    Last Post: 29th July 2012, 18:11
  2. Data transfer using TCP Socket
    By rex in forum Qt Programming
    Replies: 0
    Last Post: 24th March 2011, 16:06
  3. Data transfer between QIODevice
    By benlau in forum Qt Programming
    Replies: 0
    Last Post: 24th February 2010, 05:59
  4. Transfer Data Between Dialogs
    By umulingu in forum Qt Programming
    Replies: 4
    Last Post: 19th February 2010, 08:35

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