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. Qt Quick GridLayout how to set item to column and row like qt widgets?
QtWS25 Last Chance

Qt Quick GridLayout how to set item to column and row like qt widgets?

Scheduled Pinned Locked Moved QML and Qt Quick
2 Posts 2 Posters 739 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.
  • G Offline
    G Offline
    glararan
    wrote on last edited by
    #1

    Hi,

    Im newbie to Qt Quick, I choosed it because it have animations, scalability and easy porting to mobile devices.

    But Im very confused how works layouts. Its not like Qt widgets.

    I'm trying to make Grid with 2 columns and few rows. First column used by icon and second for text.. how to make text for example in third row dynamicly changing height. This grid should have 250px width...

    Example image: http://ctrlv.cz/rzbf
    Red rectangle means dynamic text...

    I can't figure out how GridLayout works... this code not working :/
    http://pastebin.com/zyynv93q

    Thanks for help!

    p3c0P 1 Reply Last reply
    0
    • G glararan

      Hi,

      Im newbie to Qt Quick, I choosed it because it have animations, scalability and easy porting to mobile devices.

      But Im very confused how works layouts. Its not like Qt widgets.

      I'm trying to make Grid with 2 columns and few rows. First column used by icon and second for text.. how to make text for example in third row dynamicly changing height. This grid should have 250px width...

      Example image: http://ctrlv.cz/rzbf
      Red rectangle means dynamic text...

      I can't figure out how GridLayout works... this code not working :/
      http://pastebin.com/zyynv93q

      Thanks for help!

      p3c0P Offline
      p3c0P Offline
      p3c0
      Moderators
      wrote on last edited by
      #2

      @glararan IMO it would be better to use a ListView with a custom delegate consisting of those items i.e Image on left side with Text items anchored to its right.

      157

      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