Results 1 to 4 of 4

Thread: QAbstractTableModel for continuous pixel stream

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    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: QAbstractTableModel for continuous pixel stream

    Quote Originally Posted by Vikram.Saralaya View Post
    But why doesn't Qt suppor something like a "QImageView"!!
    There are many classes that can be a "QImageView", e.g. QLabel, QPixmapItem in a QGraphicsView, any custom widget using QPainter, etc.

    Quote Originally Posted by Vikram.Saralaya View Post
    I mean I wanted to use Qt's Model-View architecture for displaying pixel data from the data model to the GUI.
    Why, which of the model/view features do you need?

    Quote Originally Posted by Vikram.Saralaya View Post
    The processing in the GUI takes about 5-7 milliseconds depending on the size of the image since each pixel value is mapped to RGB:
    Just some ideas:
    - you seem to allocate a new image every time
    - you are using two nested loops instead of scanline() or bits() for direct data access
    - if you use the same value for red/green/blue, isn't that a grayscale image? In which case an image with a color table might be faster

    Cheers,
    _

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

    Vikram.Saralaya (31st July 2015)

Similar Threads

  1. Replies: 0
    Last Post: 1st February 2014, 16:35
  2. Filling a pie pixel by pixel
    By pradhan in forum Qt Programming
    Replies: 1
    Last Post: 10th December 2013, 08:33
  3. Replies: 2
    Last Post: 16th February 2012, 23:10
  4. Continuous Printing
    By Prabha in forum General Discussion
    Replies: 0
    Last Post: 28th July 2010, 11:01
  5. QPixmap pixel by pixel ?
    By tommy in forum Qt Programming
    Replies: 19
    Last Post: 3rd December 2007, 22:52

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.