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. Make QColor Q_PROPERTY show in designer identical to QQuickText (color, linkColor, styleColor) QColor.

Make QColor Q_PROPERTY show in designer identical to QQuickText (color, linkColor, styleColor) QColor.

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 285 Views
  • 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.
  • Y Offline
    Y Offline
    yakumoklesk
    wrote on last edited by
    #1

    Hi. I have a QML module that exports a QML type that exposes a property using Q_PROPERTY macro. That property is of type color, but the designer shows it like just a textBox with hexadecimal value.

    Text component has many QColor properties, but they are shown like a textBox plus some other buttons, one of them is a color picker. Is there something I need to do to allow this behaviour?

    Thanks in advance,

    David.

    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