Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. View only part of image in QPixmap
Forum Updated to NodeBB v4.3 + New Features

View only part of image in QPixmap

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 629 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Misty River
    wrote on last edited by
    #1

    Hi,

    I have an image that's 280px by 75px and it can be split in 4 parts... what I wanna do is have a QPixmap that's 70px by 75px and dynamically slide the image to only see the part that I wanna see while the rest of the image is clipped... how can I do that??

    1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #2

      not 100% sure how it must look when you slide,
      but have you tried a scroll area with a QLabel inside?

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved