Results 1 to 2 of 2

Thread: Layout question (Twitter-client-like app)

  1. #1
    Join Date
    Jan 2010
    Posts
    1
    Qt products
    Platforms
    MacOS X

    Default Layout question (Twitter-client-like app)

    Hello,
    I am new so hi to all of you

    I want to create a client for a Twitter like service (although it's not limited to 140 characters).
    I want to have a custom widget that would contain all the elements responsible to display a "tweet". The crucial part is the label that would display the message. I need the widget to always adjust so the whole message is visible. Moreover, I need to have those widgets layed out one under another and if not all of them fit in the window I need to have a scrollbar.

    Humble example (let's say its my application window) of course the labels won't be the same height:


    I am battling whole day with it and can't get it totally right.
    Any suggestions ?

    Thanks.

  2. #2
    Join Date
    Jan 2006
    Location
    Ljubljana
    Posts
    687
    Thanks
    111
    Thanked 4 Times in 4 Posts
    Qt products
    Qt5 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: Layout question (Twitter-client-like app)

    Well, create instance of QFormLayout, then add label to layout and set layout to widget.
    Qt 5.3 Opensource & Creator 3.1.2

Similar Threads

  1. Replies: 0
    Last Post: 25th May 2009, 10:00
  2. A question about adding to layout
    By Cruz in forum Qt Programming
    Replies: 1
    Last Post: 20th January 2009, 12:41
  3. Replies: 3
    Last Post: 4th April 2008, 19:51
  4. Client-Server software project design question
    By MarkoSan in forum Qt Programming
    Replies: 7
    Last Post: 25th March 2008, 09:31
  5. simple thread layout question
    By mhoover in forum Qt Programming
    Replies: 1
    Last Post: 12th August 2006, 11:02

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.