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. [Spinbox] change font from value (Controls 2.0)
Forum Updated to NodeBB v4.3 + New Features

[Spinbox] change font from value (Controls 2.0)

Scheduled Pinned Locked Moved Solved QML and Qt Quick
2 Posts 2 Posters 682 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.
  • freaksddF Offline
    freaksddF Offline
    freaksdd
    wrote on last edited by freaksdd
    #1

    Hi,
    i created a Spinbox with QtQuick.Controls 2.0 an I want to change the font from the value.
    in the API there stand "font: ", but in anyway i could not change any thing like Bold letters.
    have anybody an idea?
    Thanks

    Update:
    I solved it alone:

    property font my_font: Qt.font({
    bold: true
    })

    ....thats all

    1 Reply Last reply
    0
    • jpnurmiJ Offline
      jpnurmiJ Offline
      jpnurmi
      wrote on last edited by jpnurmi
      #2
      SpinBox {
          font.bold: true
      }
      
      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