Results 1 to 2 of 2

Thread: Split view for two images with the images beeing fixed and occupying the same space

  1. #1
    Join Date
    Feb 2016
    Posts
    1
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows

    Default Split view for two images with the images beeing fixed and occupying the same space

    Is it possible in Qt using QSplitter and QGraphicsview achieve something like that.
    I mean two images should be shown but a slider which shows only one image.
    I need to compare images with the same dimensions.

    I tried to do it with QSplitter but if I move the slider the images within QGraphicsView are moved as well.
    Something like this: https://www.mapbox.com/blog/compare-...mapbox-studio/

    I think it would be really if this is possible

  2. #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: Split view for two images with the images beeing fixed and occupying the same spa

    That's really not what a splitter is for, it separates widgets.

    What you could try is to create the slider as a graphics item on top of your custom item and update the threshold value in that item when the slider moves.

    Or implementing a custom widget that draws the content and the slider

    Cheers,
    _

Similar Threads

  1. Replies: 1
    Last Post: 20th January 2011, 10:26
  2. How to view images ???
    By prajnaranjan.das in forum Newbie
    Replies: 8
    Last Post: 17th December 2010, 13:24
  3. Replies: 1
    Last Post: 16th November 2010, 17:45
  4. Replies: 4
    Last Post: 27th July 2009, 15:45
  5. How to view images using QT
    By Pitso in forum Newbie
    Replies: 1
    Last Post: 16th April 2007, 14:00

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.