Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. International
  3. German
  4. background: QLinearGradient Color

background: QLinearGradient Color

Scheduled Pinned Locked Moved Solved German
3 Posts 2 Posters 1.2k 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.
  • G Offline
    G Offline
    Galilio
    wrote on last edited by
    #1

    Hallo zusammen,

    ich wollte in MyWindows.ui mittels designer den Stylsheet ändern.
    Ich habe im internet folgende Tutorial:

    http://thesmithfam.org/blog/2009/09/10/qt-stylesheets-tutorial/#

    Was ich in dieses Tutorial nicht verstehe ist folgende:
    background: QLinearGradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #eef, stop: 1 #ccf);

    In Qt Reference Class ist :
    QLinearGradient::QLinearGradient(const QPointF & start, const QPointF & finalStop)

    Aber trotzdem bin ich nicht schlauer geworden :-(

    Was ist :... stop: 0 #eef, stop: 1 #ccf

    Wo finde ich diese Farbenkodiereung?
    Danke in voraus

    raven-worxR 1 Reply Last reply
    0
    • G Galilio

      Hallo zusammen,

      ich wollte in MyWindows.ui mittels designer den Stylsheet ändern.
      Ich habe im internet folgende Tutorial:

      http://thesmithfam.org/blog/2009/09/10/qt-stylesheets-tutorial/#

      Was ich in dieses Tutorial nicht verstehe ist folgende:
      background: QLinearGradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #eef, stop: 1 #ccf);

      In Qt Reference Class ist :
      QLinearGradient::QLinearGradient(const QPointF & start, const QPointF & finalStop)

      Aber trotzdem bin ich nicht schlauer geworden :-(

      Was ist :... stop: 0 #eef, stop: 1 #ccf

      Wo finde ich diese Farbenkodiereung?
      Danke in voraus

      raven-worxR Offline
      raven-worxR Offline
      raven-worx
      Moderators
      wrote on last edited by raven-worx
      #2

      @Galilio said in background: QLinearGradient Color:

      Was ich in dieses Tutorial nicht verstehe ist folgende:
      background: QLinearGradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #eef, stop: 1 #ccf);

      In Qt Reference Class ist :
      QLinearGradient::QLinearGradient(const QPointF & start, const QPointF & finalStop)

      In CSS ist qlineargradient() nicht als Konstruktor zu verstehen!
      Die function wird nur geparst und dann intern als QlinearGradient erstellt.

      Was ist :... stop: 0 #eef, stop: 1 #ccf
      Wo finde ich diese Farbenkodiereung?

      Das sind einfach abgekürzte Schreibweisen: #eef => #eeeeff
      Siehe hier

      --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
      If you have a question please use the forum so others can benefit from the solution in the future

      1 Reply Last reply
      0
      • G Offline
        G Offline
        Galilio
        wrote on last edited by
        #3

        ich danke es dir.

        Für die jenigen die Farbenkodierung benutzen:
        http://www.colorhexa.com

        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