Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved
    1. Home
    2. Tags
    3. toolbar

    Log in to post
    • All categories
    • M

      Solved Update QAction and QToolButton
      General and Desktop • menu toolbar qtoolbar qtoolbutton widgets • • Maluna34

      3
      0
      Votes
      3
      Posts
      265
      Views

      M

      @Christian-Ehrlicher Thanks a lot, it is exactly what I was missing!

    • B

      Unsolved How to do something while a QAction in the toolbar is kept pressed?
      General and Desktop • qaction pressed released toolbar • • BigBen

      5
      0
      Votes
      5
      Posts
      148
      Views

      A

      @BigBen Also check out eventFilter. Here's a link to the documentation.

    • _

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

      5
      0
      Votes
      5
      Posts
      291
      Views

      _

      Indeed it is! :( It is something that we are looking into doing for certain this FY.

    • G

      Unsolved Tool bar in Qt Design Studio
      QML and Qt Quick • toolbar • • GrahamLa

      2
      0
      Votes
      2
      Posts
      408
      Views

      B

      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.

      0_1546851760213_toolbar_small.jpg

      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.

    • M

      Solved Cannot resize image for ToolButton in qml
      General and Desktop • toolbar qml • • milan

      7
      0
      Votes
      7
      Posts
      2320
      Views

      J.Hilk

      @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 }
    • J

      Unsolved Advanced drop-down menu
      General and Desktop • toolbar drop-down • • Justin Sayne

      8
      0
      Votes
      8
      Posts
      4149
      Views

      J

      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)));
    • N

      Unsolved vertical Toolbar
      QML and Qt Quick • vertical toolb qml qt5 toolbar vertical • • neda

      1
      0
      Votes
      1
      Posts
      1159
      Views

      No one has replied

    • J

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

      3
      0
      Votes
      3
      Posts
      1063
      Views

      J

      @jsulm Well, texts are not displayed but height of toolbar is too large.

    • R

      How to create a context menu or a custom floating toolbar for Qtcreator
      Tools • plugin qtcreator toolbar context menu snippet • • R2D5

      1
      0
      Votes
      1
      Posts
      1021
      Views

      No one has replied

    • Thomas

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

      5
      0
      Votes
      5
      Posts
      6200
      Views

      M

      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.

    • didu

      ToolButton iconSource Size doesn't fill button Size on Android
      QML and Qt Quick • toolbar icon • • didu

      1
      0
      Votes
      1
      Posts
      964
      Views

      No one has replied

    • D

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

      2
      0
      Votes
      2
      Posts
      1396
      Views

      SGaist

      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

    • mchouse

      Menu Button - Get rid of down arrow, anchor menu from top right corner
      General and Desktop • material design desktop menu toolbar • • mchouse

      1
      0
      Votes
      1
      Posts
      886
      Views

      No one has replied

    • mchouse

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

      1
      0
      Votes
      1
      Posts
      1341
      Views

      No one has replied