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. imagine style
Forum Updated to NodeBB v4.3 + New Features

imagine style

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
2 Posts 2 Posters 402 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.
  • R Offline
    R Offline
    Rohan123
    wrote on last edited by Rohan123
    #1

    In imagine style.can i create my own controls..?Like i there are two different types of button..,the image name for both will start with"button"..,so how we will show output using imagine style

    1 Reply Last reply
    0
    • jpnurmiJ Offline
      jpnurmiJ Offline
      jpnurmi
      wrote on last edited by jpnurmi
      #2

      There are several built-in button types (Button, CheckBox, DelayButton, RadioButton, RoundButton, Switch ToolButton...) and many of them have states that are purely visual (flat, highlighted). If these variants are not enough, for example, you want two different looking Button types that both support highlighted and flat states, you can do that by placing one set of image assets into a separate folder and using that as a path for the other button:

      Button {
          Imagine.path: ":/path/to/the/assets"
      }
      

      http://doc.qt.io/qt-5/qtquickcontrols2-imagine.html#imagine-path-attached-prop

      1 Reply Last reply
      1

      • Login

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