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
Forum Update on Monday, May 27th 2025

Setting width for Components which get placed using anchors

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 150 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 15 Aug 2019, 08:40 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

    1/1

    15 Aug 2019, 08:40

    • Login

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