Navigation

    Qt Forum

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

    • UNSOLVED Possible infinite recursion during toolbar layout on macOS
      General and Desktop • layout macos toolbar • • __lehew  

      5
      0
      Votes
      5
      Posts
      187
      Views

      Indeed it is! :( It is something that we are looking into doing for certain this FY.
    • UNSOLVED Tool bar in Qt Design Studio
      QML and Qt Quick • toolbar • • GrahamLa  

      2
      0
      Votes
      2
      Posts
      336
      Views

      So i'm not entirely sure what you are trying to do, however i can confirm that Toolbar itself works. I used the code you provided here, just removed the instance of Screen01 so i could test the Toolbar item by itself, as you can see it loads in the live preview fine. You can also check the Application Output (seen here at the bottom of the screen) to look for any errors in your file. Best, Brook.
    • SOLVED Cannot resize image for ToolButton in qml
      General and Desktop • qml toolbar • • milan  

      7
      0
      Votes
      7
      Posts
      1900
      Views

      @milan you could try enabling mipmap for a smoother transformation, this will make the resizing a bit slower and is the reason why it's off by default. But if your image has a fixed size to begin with, than it doesn't matter much. //MyToolButton.qml ToolButton { property alias source: img.source property int size: 32 Image{ id: img width: size height: size mipmap: true } Layout.preferredHeight: size Layout.preferredWidth: size }
    • UNSOLVED Advanced drop-down menu
      General and Desktop • toolbar drop-down • • Justin Sayne  

      8
      0
      Votes
      8
      Posts
      3760
      Views

      That's how I would do it. As for the position, have a look at these: QMenu::exec(somewidget.mapToGlobal(QPoint(0, 0))); QMenu::popup(somewidget.mapToGlobal(QPoint(0, 0)));
    • UNSOLVED vertical Toolbar
      QML and Qt Quick • qml qt5 toolbar vertical vertical toolb • • neda  

      1
      0
      Votes
      1
      Posts
      1081
      Views

      No one has replied

    • UNSOLVED Show only icons in QMacToolBar
      General and Desktop • mac toolbar mac extras • • jimcad  

      3
      0
      Votes
      3
      Posts
      949
      Views

      @jsulm Well, texts are not displayed but height of toolbar is too large.
    • How to create a context menu or a custom floating toolbar for Qtcreator
      Tools • qtcreator plugin toolbar context menu snippet • • R2D5  

      1
      0
      Votes
      1
      Posts
      928
      Views

      No one has replied

    • QML: Change ToolBar color / one style property only
      QML and Qt Quick • qml style toolbar background colo • • Thomas  

      5
      0
      Votes
      5
      Posts
      5913
      Views

      I have a similar problem too. I want to change the font size and I get a fallback base style. I've already reported a bug against Qt. Maybe we could find another workaround in the meantime. All the android styling seems done by the AndroidStyle singleton object coming from QtQuick.Controls.Styles.Android 1.0 module. They do, for example Style { readonly property Button control: __control property Component panel: Item { id: panel readonly property var styleDef: control.checkable ? AndroidStyle.styleDef.buttonStyleToggle : AndroidStyle.styleDef.buttonStyle // some more code } see ButtonStyle.qml But, if we look further, styleDef seems specific to the Android drawables, see this commit And the Android Button.qml seems to use something like this for setting the style style: Settings.styleComponent(Settings.style, "ButtonStyle.qml", button) But I don't know where the settings come from See Button.qml Do you have any idea what to do with it? I don't see any other option that copying the Android Styles tree and adapting it to our needs. But it's awful.
    • ToolButton iconSource Size doesn't fill button Size on Android
      QML and Qt Quick • icon toolbar • • didu  

      1
      0
      Votes
      1
      Posts
      906
      Views

      No one has replied

    • QT 5.4 - Need to disable a button on Toolbar
      General and Desktop • button stackview toolbar qstackedwidgets • • Dragon123  

      2
      0
      Votes
      2
      Posts
      1245
      Views

      Hi and welcome to devnet, Add a slot in the widget containing the toolbar and connect QStackedWidget::currentChanged to it. In the slot check the index value and enable/disable the button. Hope it helps
    • Menu Button - Get rid of down arrow, anchor menu from top right corner
      General and Desktop • desktop menu toolbar material design • • mchouse  

      1
      0
      Votes
      1
      Posts
      819
      Views

      No one has replied

    • [SOLVED] ToolBar DropShadow - mellow shadow with colored borders
      General and Desktop • toolbar material design dropshadow transparentbord • • mchouse  

      1
      0
      Votes
      1
      Posts
      1239
      Views

      No one has replied