Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Show control and handle large rows for QTableView

Show control and handle large rows for QTableView

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 979 Views 1 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.
  • K Offline
    K Offline
    kenji221b
    wrote on last edited by
    #1

    Hi all,

    I am implement a chat application (like skype)
    I am using QTableWidget to display chat messages, but it's too slow when display many messages (because each message is a widget, so if my chat has 1000 messages, it'll create 1000 widgets and add to qtablewidget .. too slow and cost memory much :( )

    I tend to change on QTableView, I have read docs and see QTableView is very good for display large message, but it's hard to display control which I can interact.
    ex: I need display a text which I can select and button which I can click, v..v.
    but using paint is not enough, it's just ... paint pixel, not the real control and I can't select my text or click button.

    I had search and try some solution like setIndexWidget, but this way seem ... like QTableWidgets (because it will create 1000 buttons if I have 1000 message as well)

    Is anyone can suggest me some instructions :(
    Thanks you

    I had implement a sample qtable widgets can display control with reuseable widgets (base on the idea of modal-view-controller) But it's not complete +_+ Please check this for more details: https://github.com/tranquan/KJTableView

    This is what I want to do:
    !https://fbcdn-sphotos-h-a.akamaihd.net/hphotos-ak-xfp1/t1.0-9/10603294_966203216729998_6572696515164796076_n.jpg(screenshot)!

    I just wonder if I my way correct ? Is therer others way better ?
    thanks

    1 Reply Last reply
    0
    • JeroentjehomeJ Offline
      JeroentjehomeJ Offline
      Jeroentjehome
      wrote on last edited by
      #2

      Hi,
      Before someone goes through your code, maybe add a small picture to your post. How do you need it to look, what should your GUI look like. Maybe the TableView is not the best option.

      Greetz, Jeroen

      1 Reply Last reply
      0
      • K Offline
        K Offline
        kenji221b
        wrote on last edited by
        #3

        Thank Jeroentje,
        I just update photo

        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