Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct


    Qt World Summit: Early-Bird Tickets

    How to get the numbers which are created as row numbers when we create QTableWidget

    General and Desktop
    4
    8
    2573
    Loading More Posts
    • 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.
    • I
      Indrajeet last edited by

      HI All

      Is it possible to get row numbers created automatically on left side in QTableWidget or QTable View.
      How to get it?

      1 Reply Last reply Reply Quote 0
      • A
        andre last edited by

        Please don't double-post your questions. You also asked this question in your topic about how to find out what row was selected.

        1 Reply Last reply Reply Quote 0
        • I
          Indrajeet last edited by

          ok Andre!!
          Actually i want to get the horizontalHeaderItem of QTableView?

          1 Reply Last reply Reply Quote 0
          • G
            giesbert last edited by

            The header items of a view come from the model: "headerData":http://doc.qt.nokia.com/4.7/qabstractitemmodel.html#headerData

            If your model did not implement it, there is a default implementation, which can be seen in the Qt source code :-)

            Nokia Certified Qt Specialist.
            Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

            1 Reply Last reply Reply Quote 0
            • A
              andre last edited by

              I am actually not sure what the default implementation for the headers is for QTableWidget. I tend to avoid that class :-)

              1 Reply Last reply Reply Quote 0
              • I
                Indrajeet last edited by

                Hi Andre

                How to add image file in post please tell so that i can add image to show what i want to read from QTableView.

                1 Reply Last reply Reply Quote 0
                • A
                  andre last edited by

                  QtDevnet does not allow uploading of images. You will need to find some external host for your image data. I use my dropbox account, using the public folder to put those images, but there are many other image hosters available on the net.

                  1 Reply Last reply Reply Quote 0
                  • R
                    rokemoon last edited by

                    [quote author="Rajveer" date="1320743912"]Hi Andre
                    How to add image file in post please tell so that i can add image to show what i want to read from QTableView.[/quote]
                    For example "postimage":http://postimage.org/
                    !http://postimage.org/image/4sumhxkgb/(stepashka)!

                    1 Reply Last reply Reply Quote 0
                    • First post
                      Last post