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. [Solved]Backgournd image with scale 9-grid
Qt 6.11 is out! See what's new in the release blog

[Solved]Backgournd image with scale 9-grid

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 1.5k 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
    Madon
    wrote on last edited by
    #1

    Hello everyone.
    I need support for scaling background images using a 9-grid. "Explanation of the concept":http://code.google.com/p/scale9grid/

    I wouldn’t reinventing the wheel.
    So my question is : There already kind of concept in Qt ? If yes, how can I use it ?

    Thanks you for your interest,
    Regards

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mlong
      wrote on last edited by
      #2

      You can use a "border-image":http://doc.qt.digia.com/stable/stylesheet-reference.html#border-image in a stylesheet for QWidget-based displays, or you can use the "BorderImage":http://doc.qt.digia.com/stable/qml-borderimage.html element in QML.

      Software Engineer
      My views and opinions do not necessarily reflect those of anyone -- living or dead, real or fictional -- in this universe or any other similar multiverse node. Void where prohibited. Your mileage may vary. Caveat emptor.

      1 Reply Last reply
      0
      • M Offline
        M Offline
        Madon
        wrote on last edited by
        #3

        Really great!

        Thank you for your answer

        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