Results 1 to 2 of 2

Thread: ‎a lightweight text showing widget

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2007
    Posts
    68
    Thanks
    9
    Thanked 8 Times in 8 Posts

    Default Re: ‎a lightweight text showing widget

    here's my idea:

    1. create a simple containerclass containing your connectionDetails in a QStringList, or equivalent QList <connectionDetails >
    use signal slot mechanism to add new details, if listcount exceeds your limit, remove the first element and a new one

    2. to view your connectiondetails use a QListView with a model derived from QAbstractListModel, in your model u access the container above

    this should be faster, than the qtextedit method and will show only the number of messages you specify

    regards

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

    johnmauer (17th January 2010)

Similar Threads

  1. Unhandled exception in qatomic
    By NewGuy in forum Qt Programming
    Replies: 14
    Last Post: 23rd July 2013, 09:49

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.