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. How to resize custom QQuickItem component on QML?

How to resize custom QQuickItem component on QML?

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
2 Posts 2 Posters 274 Views 1 Watching
  • 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.
  • W Offline
    W Offline
    WangYc
    wrote on last edited by
    #1

    I'm drawing with OpenGL on QQuickItem,but no matter what size I put on my custom QQuickItem component on QML, it always occupies the entire space of the window. I want to be able to control its size, for example, 1/4 of the window, how can i do it?

    ODБOïO 1 Reply Last reply
    0
    • W WangYc

      I'm drawing with OpenGL on QQuickItem,but no matter what size I put on my custom QQuickItem component on QML, it always occupies the entire space of the window. I want to be able to control its size, for example, 1/4 of the window, how can i do it?

      ODБOïO Offline
      ODБOïO Offline
      ODБOï
      wrote on last edited by
      #2

      @WangYc said in How to resize custom QQuickItem component on QML?:

      I want to be able to control its size

      It depends on your custom QQuickItem implementation
      you can see this example

      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