Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. [SOLVED]How to select a part of the picture with Qml?
Forum Updated to NodeBB v4.3 + New Features

[SOLVED]How to select a part of the picture with Qml?

Scheduled Pinned Locked Moved QML and Qt Quick
4 Posts 2 Posters 2.6k 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.
  • I Offline
    I Offline
    itviewer
    wrote on last edited by
    #1

    just like css :

    background:url(images/123.gif) 50px 74px;

    now i use qml Image element can only load the whole picture,i want select a part of the picture start at some pixels with specified width,how can i make it ture?

    Any pointers whatsoever would be highly appreciated.
    thanks

    1 Reply Last reply
    0
    • L Offline
      L Offline
      leon.anavi
      wrote on last edited by
      #2

      Check the solution with a rectangle posted on 3 Oct 2011 at the thread "How to use qml to display a specified part of a picture":http://qt-project.org/forums/viewthread/10290

      http://anavi.org/

      1 Reply Last reply
      0
      • I Offline
        I Offline
        itviewer
        wrote on last edited by
        #3

        [quote author="leon.anavi" date="1357295980"]Check the solution with a rectangle posted on 3 Oct 2011 at the thread "How to use qml to display a specified part of a picture":http://qt-project.org/forums/viewthread/10290[/quote]

        ok,yes ,just it! thanks

        1 Reply Last reply
        0
        • L Offline
          L Offline
          leon.anavi
          wrote on last edited by
          #4

          [quote author="itviewer" date="1357360092"]
          ok,yes ,just it! thanks[/quote]

          You are welcome. Please add [SOLVED] prefix to the title of the thread.

          http://anavi.org/

          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