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. Templates in QML
Forum Updated to NodeBB v4.3 + New Features

Templates in QML

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

    My thought is to create various templates in QML, thus user can freely reuse the component that has been created. Can this re-usability features created in QML?

    can anyone direct me to a link or give some direction, pointers?

    1 Reply Last reply
    0
    • T Offline
      T Offline
      Tân Ngọc Đỗ
      wrote on last edited by
      #2

      Hi,
      Could you please be clearer ?
      Is it similar to css stylesheet for html ?

      1 Reply Last reply
      0
      • H Offline
        H Offline
        houmingc
        wrote on last edited by
        #3

        Yes. Cascading Style Sheets equivalent.

        1 Reply Last reply
        0
        • T Offline
          T Offline
          Tân Ngọc Đỗ
          wrote on last edited by
          #4

          I saw a wiki article : http://qt-project.org/wiki/QmlStyling

          Though I haven't tried it before, but It's worth trying.

          Futhermore, Qt Quick Control defined styles component .
          For example: Button Style : http://qt-project.org/doc/qt-5/qml-qtquick-controls-styles-buttonstyle.html

          This is source code to implement button style above :
          https://qt.gitorious.org/qt/qtquickcontrols/source/d0eadc7b164d2f00cd19885907d57a4e1aa02d4b:src/styles/Base/ButtonStyle.qml

          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