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

Qtableview to Qtablewidget

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 3 Posters 241 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.
  • N Offline
    N Offline
    n-2204
    wrote on last edited by
    #1

    Hi,

    I have Qtableview (Qstandrditemmodel) :
    1->Iis it possible to cast qtableview to qtablewidget as in a inbuilt lib function i have to pass qtablewidget?
    2->I have to create new qtablewidget to pass in the function parameter , so for that how i should store my qtableview data which have 10 rows 8 columns, then this data I add to qtablewidget ?

    eyllanescE JonBJ 2 Replies Last reply
    0
    • N n-2204

      Hi,

      I have Qtableview (Qstandrditemmodel) :
      1->Iis it possible to cast qtableview to qtablewidget as in a inbuilt lib function i have to pass qtablewidget?
      2->I have to create new qtablewidget to pass in the function parameter , so for that how i should store my qtableview data which have 10 rows 8 columns, then this data I add to qtablewidget ?

      eyllanescE Offline
      eyllanescE Offline
      eyllanesc
      wrote on last edited by
      #2

      @n-2204

      1. It is not possible.
      2. Without more information it is impossible to help you.

      If you want me to help you develop some work then you can write to my email: e.yllanescucho@gmal.com.

      1 Reply Last reply
      1
      • N n-2204

        Hi,

        I have Qtableview (Qstandrditemmodel) :
        1->Iis it possible to cast qtableview to qtablewidget as in a inbuilt lib function i have to pass qtablewidget?
        2->I have to create new qtablewidget to pass in the function parameter , so for that how i should store my qtableview data which have 10 rows 8 columns, then this data I add to qtablewidget ?

        JonBJ Offline
        JonBJ Offline
        JonB
        wrote on last edited by
        #3

        @n-2204 said in Qtableview to Qtablewidget:

        I have Qtableview (Qstandrditemmodel) :

        Then why do you want a QTableWidget at all? QTableWidget inherits QTableView, and supplies its own internal model to use. There is nothing you can do with a QTableWidget which you cannot do with a QTableView and your own model.

        1 Reply Last reply
        2

        • Login

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