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. toolBar at the bottom
Forum Updated to NodeBB v4.3 + New Features

toolBar at the bottom

Scheduled Pinned Locked Moved QML and Qt Quick
4 Posts 2 Posters 1.1k Views
  • 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.
  • M Offline
    M Offline
    MilloMille
    wrote on last edited by
    #1

    I'm sorry I have to ask this because I'm sure there is a simple solution to this:
    I want to have a tool bar, but at the bottom of my application window. I'm working with Qt 5.3.2,s o the footer for the ApplicationWindow has not yet been introduced.

    anchors.horizontalCenter: parent.bottom 
    

    also doesn't seem to work. I tried the statusBar but items in the statusBar are not clickable.

    E 1 Reply Last reply
    0
    • M MilloMille

      I'm sorry I have to ask this because I'm sure there is a simple solution to this:
      I want to have a tool bar, but at the bottom of my application window. I'm working with Qt 5.3.2,s o the footer for the ApplicationWindow has not yet been introduced.

      anchors.horizontalCenter: parent.bottom 
      

      also doesn't seem to work. I tried the statusBar but items in the statusBar are not clickable.

      E Offline
      E Offline
      Eeli K
      wrote on last edited by
      #2

      anchors.bottom: parent.bottom

      1 Reply Last reply
      0
      • M Offline
        M Offline
        MilloMille
        wrote on last edited by
        #3

        I just tried your code and it would work with a normal toolbar. However, I copied the code of a ToolBar from an example which I don't fully understand. My Code looks like this:

        toolBar:  BorderImage {
        source: "images/toolbar"
        .... 
        }
        

        Can you explain to me why the t of toolBar has to be a lower case t? Does the colon mean that toolBar is a property? And why can't I anchor the BorderImage to the bottom?

        1 Reply Last reply
        0
        • E Offline
          E Offline
          Eeli K
          wrote on last edited by
          #4

          I haven't used older Quick Controls, on 2, but it looks like the toolBar is the property of ApplicationWindow as you said, and it's always located automatically. You can leave out the ApplicationWindow *Bar properties and create a main layout (ColumnLayout) where you put your items, the toolbar in the bottom and everything else above it.

          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