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. Qt 5.7 RC and Material design

Qt 5.7 RC and Material design

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

    I'm running Qt 5.7 RC on a Kubuntu 16.04 on a desktop computer. I tried the example found here:
    https://doc-snapshots.qt.io/qt5-5.7/qtquickcontrols2-material.html

    import QtQuick 2.0
    import QtQuick.Controls 2.0
    import QtQuick.Controls.Material 2.0
    
    ApplicationWindow {
        visible: true
    
        Material.theme: Material.Dark
        Material.accent: Material.Purple
    
        Column {
            anchors.centerIn: parent
    
            RadioButton { text: qsTr("Small") }
            RadioButton { text: qsTr("Medium");  checked: true }
            RadioButton { text: qsTr("Large") }
        }
    }
    
    

    My window looks like this:
    http://imgur.com/fmNkZBo
    and not like the one in the official page. Anyone know what might be the problem?

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

      Pass "-style material" command line arguments, set QT_QUICK_CONTROLS_STYLE=material environment variable, or use :/qtquickcontrols2.conf: https://doc-snapshots.qt.io/qt5-5.7/qtquickcontrols2-styles.html

      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