Results 1 to 2 of 2

Thread: qt way of having a ring or circular buffer set

  1. #1
    Join Date
    Jul 2016
    Posts
    18
    Thanks
    3
    Qt products
    Qt5 Qt/Embedded
    Platforms
    Unix/X11

    Default qt way of having a ring or circular buffer set

    I have two reasons for a ring or circular buffer; processing incoming video frames and an in-app communication between threads mailbox system. In looking around, I found mention of QRingBuffer and QCircularBuffer but both are in the private area. This concerns me as to me this means it is not consumer ready for me/us developers. I also saw that Boost has such a thing as well. So my question is, what are people using? Is it safe to use the private stuff? Is it hard to get Boost into a Qt build environment?

    Thanks for your time.

    Cheers,
    Pete

  2. #2
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,327
    Thanks
    317
    Thanked 871 Times in 858 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: qt way of having a ring or circular buffer set

    Is it safe to use the private stuff?
    I wouldn't use it. There's a reason why there are things in private areas of Qt - they are either not intended to be part of the public interface or are subject to change in later versions.

    Is it hard to get Boost into a Qt build environment?
    Not at all. Until most of what I use got put into c++ 11, I used it extensively. I still use boost graph occasionally. Since boost is nearly all c++ templates only, all you need is to set your library include path to point to the top-level boost directory, then include boost files as "<circular_buffer.hpp>" (or "<boost/circular_buffer.hpp>" if you unzipped it to a version-named top level directory), etc.
    <=== 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.

  3. The following user says thank you to d_stranz for this useful post:

    PeterVE (28th July 2016)

Similar Threads

  1. Problem related to Out Side the Round Ring Button
    By Sambu in forum Qt Programming
    Replies: 2
    Last Post: 3rd November 2011, 11:06
  2. Qt and boost circular buffer
    By Talguy in forum Newbie
    Replies: 1
    Last Post: 7th January 2011, 23:37
  3. Producuer Consumers GUI app with circular buffer
    By splurgeola in forum Newbie
    Replies: 1
    Last Post: 29th December 2010, 20:01
  4. Circular QLinkedList
    By dyngoman in forum Qt Programming
    Replies: 1
    Last Post: 24th March 2010, 08:57
  5. Is there a circular reference here?
    By rh in forum General Programming
    Replies: 3
    Last Post: 22nd January 2006, 21:51

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.