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. What is this form in Qt?

What is this form in Qt?

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

    Hi, there,

    I am new to Qt. I found there is no way to insert a picture rather than providing the link in this forum. The following is the link, and please see the last graph, i.e. on the bottom of that page.

    http://www.google.com/imgres?imgurl=http://www.omatrix.com/manual/tpget3d5.gif&imgrefurl=http://www.omatrix.com/manual/tpget3d.htm&usg=__g45ioE7Um0J6sh07O_Y7YYu1h78=&h=313&w=534&sz=43&hl=en&start=2&sig2=Pvzs91pWF3nGFww2JDcvZw&zoom=1&tbnid=GMeU7MCtMfl8fM:&tbnh=77&tbnw=132&ei=5SPrUeTxKsOmigLN6YHwBA&prev=/search?q=tecplot+zone+style&um=1&sa=N&hl=en&gbv=2&tbm=isch&um=1&itbs=1&sa=X&ved=0CC4QrQMwAQ

    Can any body tell me what is this form in Qt? It looks like a QTableView, but you can not click on the cell to modify its value, and you can click on those top buttons to select several rows.

    What is this form in Qt? Thanks in advance and any comment and answer will be welcome.

    Chao

    1 Reply Last reply
    0
    • JKSHJ Offline
      JKSHJ Offline
      JKSH
      Moderators
      wrote on last edited by
      #2

      Hi azyx12,

      That can be done with QTableView. You need to attach a "model":http://qt-project.org/doc/qt-5.1/qtwidgets/model-view-programming.html to be able to add/edit data.

      You can also use a "QTableWidget":http://qt-project.org/doc/qt-5.1/qtwidgets/qtablewidget.html. That is easier to use, but not as flexible.

      There is no standard "form" that has buttons above a table. Just create QPushButtons, and connect their signals to slots that "change the QTableView's selection":http://qt-project.org/doc/qt-5.1/qtwidgets/qabstractitemview.html#setSelectionModel.

      Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

      1 Reply Last reply
      0
      • A Offline
        A Offline
        azyx12
        wrote on last edited by
        #3

        Hi, JKSH,

        Thank you so much for your reply. This helps me a lot.

        Chao

        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