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. Setting width for Components which get placed using anchors
Qt 6.11 is out! See what's new in the release blog

Setting width for Components which get placed using anchors

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 291 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
    maxwell31
    wrote on last edited by
    #1

    Hi,

    I often find, that I am trying to make a QML component, e.g. one screen in my application, which is usually displayed using anchors in the main application window, usually via. anchors.fill: parent

    Often I want to use the design view in QtCreator, which needs me to specify a width and height. If the width and height will later be set via the anchors to the parent, what values should I use for width and height?

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved