Results 1 to 6 of 6

Thread: listview height

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #6
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: listview height

    Quote Originally Posted by joko View Post
    Wow! Using Repeater is the best option!


    Just a couple of tips:

    1) when referencing model data in a delegate it is usually helpful for later readability to make that referencing more explicit.
    E.g.. instead of using just "serverName" write "model.serverName"

    This makes it more obvious which data is local to the delegate and which data is from the model

    2) this is probably just because this is more an example code to demonstrate the problem, but qsTr(serverName) does not make any sense. "serverName" is a property from the model. if is contains translatable text it has had to be translated at its source already.

    Cheers,
    _

  2. The following user says thank you to anda_skoa for this useful post:

    joko (5th January 2015)

Similar Threads

  1. listview
    By ganeshgladish in forum Newbie
    Replies: 1
    Last Post: 23rd June 2013, 10:51
  2. Qml Listview
    By ganeshgladish in forum Newbie
    Replies: 1
    Last Post: 19th June 2013, 08:41
  3. How to set custom height for ListView & ComboBox items
    By rawfool in forum Qt Programming
    Replies: 1
    Last Post: 30th September 2011, 10:39
  4. qml listview
    By Le_B in forum Qt Quick
    Replies: 1
    Last Post: 25th May 2011, 13:01
  5. Qt listView total height
    By bunjee in forum Qt Programming
    Replies: 2
    Last Post: 18th April 2008, 18:16

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.