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?
Forum Updated to NodeBB v4.3 + New Features

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 740 Views 2 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.
  • G Offline
    G Offline
    glararan
    wrote on 7 Jul 2015, 11:49 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!

    P 1 Reply Last reply 8 Jul 2015, 09:10
    0
    • G glararan
      7 Jul 2015, 11:49

      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!

      P Offline
      P Offline
      p3c0
      Moderators
      wrote on 8 Jul 2015, 09:10 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

      2/2

      8 Jul 2015, 09:10

      • Login

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