Navigation

    Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    1. Home
    2. Tags
    3. styles
    Log in to post

    • UNSOLVED Completely customizing charts
      General and Desktop • qml charts styles • • raketmus  

      7
      0
      Votes
      7
      Posts
      32
      Views

      Found this https://github.com/milosolutions/mcharts it might be what i need as chart.js seems to be very customizable.
    • UNSOLVED QTreeView: specify distance between branch image and text/decoration
      General and Desktop • c++ qtreeview styles • • hoafaloaf  

      3
      0
      Votes
      3
      Posts
      54
      Views

      @JonB Thanks for the suggestion, but I did check that out -- it looks like setIndentation()/indentation() only deals with the space to right of the expand/collapse arrow (i.e., the ::branch subcontrol). Any other ideas? :)
    • UNSOLVED How do I change the colors of Quick Controls 2 default style?
      QML and Qt Quick • qml styles controls 2 quick controls quick2 • • ivarec  

      1
      0
      Votes
      1
      Posts
      216
      Views

      No one has replied

    • SOLVED Help to understand the necessity of this "import" statement in modified flatstyle example
      QML and Qt Quick • qml styles import flatstyle • • markugra  

      7
      0
      Votes
      7
      Posts
      1134
      Views

      @jpnurmi Great, thanks for your help!
    • UNSOLVED Application wide stylesheet with different styles for menu and context menu?
      General and Desktop • stylesheet css qmenu styles • • dentist  

      6
      0
      Votes
      6
      Posts
      3873
      Views

      You can define an accessibleName for your objects and distribute different StyleSheets. either via the designer or QWidget::setAccessibleName(const QString &name); e.g. QPushButton{ background-color: blue; } QPushButton[accessibleName="SpecialButton1"] { background-color: red; }
    • UNSOLVED Qt Creator Material Styles
      The Lounge • qt creator styles • • vladvesa  

      3
      1
      Votes
      3
      Posts
      1427
      Views

      Thanks, I hope you like it!
    • UNSOLVED How to change style of root menu bar
      General and Desktop • stylesheet gui styles qmenubar • • Chase  

      1
      0
      Votes
      1
      Posts
      530
      Views

      No one has replied

    • SOLVED Reload/change Icons on style change
      General and Desktop • styles resources icons • • Imunar  

      7
      0
      Votes
      7
      Posts
      3688
      Views

      thanks @raven-worx I've got the point and mark this one as solved thanks for your support!
    • UNSOLVED Why does refferencing by ID kill everything
      QML and Qt Quick • qml style styles scope refference • • Kofr  

      1
      0
      Votes
      1
      Posts
      408
      Views

      No one has replied

    • UNSOLVED How to style QTreeView items by role with CSS ?
      General and Desktop • qtreeview model-view css qtwidgets styles • • Zylann  

      9
      0
      Votes
      9
      Posts
      6804
      Views

      I finally managed to get custom colors. I gave my QTreeView an object name to be able to write this in CSS: m_treeView->setObjectName("MyTreeView"); m_treeView->setStyleSheet("QTreeView#MyTreeView::item {color: none;}"); basically now my model controls text color through Qt::ForegroundRole regardless of the application's CSS. I feel like it's the wrong place to put theming, but it works for me at the moment. Well... until we decide to have different themes :-°
    • [Solved] Problem with customized ButtonStyle - Text shows &
      QML and Qt Quick • qml button styles • • hpollak  

      2
      0
      Votes
      2
      Posts
      1708
      Views

      I have found a solution myself in the QT-Sourcecode of ButtonStyle.qml. I have to : import QtQuick.Controls.Private 1.0 in myButtonStyle.qml and in the LabelSection I use The StyleHelpers.stylizeMnemonics, so my ButtonStyle.qml looks like: import QtQuick 2.4 import QtQuick.Controls 1.3 import QtQuick.Controls.Styles 1.3 import QtQuick.Controls.Private 1.0 ButtonStyle { id: myButtonStyle background: Rectangle { implicitWidth: 100 implicitHeight: 25 border.width: control.activeFocus ? 2 : 1 border.color: "#888" radius: 4 gradient: Gradient { GradientStop { position: 0 ; color: control.pressed ? appPalette.button_clicked_gradient_start : appPalette.button_gradient_start } GradientStop { position: 1 ; color: control.pressed ? appPalette.button_clicked_gradient_stop : appPalette.button_gradient_stop } } } label: Component{ id:labelCompoent Row{ anchors.left: parent.left anchors.leftMargin: (parent.width - (text.width + image.width))/2 anchors.top: parent.top anchors.topMargin: 2 spacing: 0 Image{ id:image ;source: control.iconSource} Label{ id: text height: image.height width:100 horizontalAlignment:Text.AlignHCenter verticalAlignment: Text.AlignVCenter color: control.enabled ? appPalette.text_color : appPalette.text_color_disabled text: StyleHelpers.stylizeMnemonics(control.text) } } } }
    • Qt 5.5 RC cannot set flat style
      QML and Qt Quick • qtquick styles 5.5 • • liuck  

      3
      0
      Votes
      3
      Posts
      1706
      Views

      I was missing import QtQuick.Extras 1.0 On android and Windows now it works fine, it does not work with winrt
    • ButtonStyle in sepperate QML File
      QML and Qt Quick • qml qtquick styles qtquick control • • hpollak  

      7
      0
      Votes
      7
      Posts
      4946
      Views

      Thanks - The code from RamK is the solution. control. ... is the crux. Best regards Harry
    • Qt CSS :!hover seems to override defaults
      General and Desktop • stylesheet css styles styling hover negation • • Huulivoide  

      1
      0
      Votes
      1
      Posts
      1118
      Views

      No one has replied

    • Styles for Various Operating Systems Documentation & Source
      General and Desktop • gui styles look and feel • • abigdreamer245  

      2
      0
      Votes
      2
      Posts
      683
      Views

      Hi and welcome to devnet, You can find the design guidelines on the respective developers site e.g. developer.apple.com for OS X
    • How do you style qt Quick (controls) applications?
      QML and Qt Quick • styles • • RudolfVonKrugstein  

      3
      0
      Votes
      3
      Posts
      812
      Views

      Ok, thanks!
    • QStyle centralized Manager
      General and Desktop • styles qstyle • • Suths  

      2
      0
      Votes
      2
      Posts
      745
      Views

      Hi, Do you mean something like KDE's themes ? Or maybe the aqt-stylesheets project ?
    • QtQuick controls styles
      QML and Qt Quick • styles controls • • Vasily I.Kolesnikov  

      1
      0
      Votes
      1
      Posts
      440
      Views

      No one has replied