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. Feezing panes in QTableView?
Forum Updated to NodeBB v4.3 + New Features

Feezing panes in QTableView?

Scheduled Pinned Locked Moved Solved General and Desktop
9 Posts 3 Posters 2.4k Views 2 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.
  • S Offline
    S Offline
    ShinSat
    wrote on last edited by VRonin
    #1

    Hi All,

    Did anybody try to achieve pivot table in QTreeView/QAbstractTableModel?
    I would be happy if you would share how-tos. :)
    Maybe, with QSplitter???

    I have no idea at the moment.

    Many thanks in advance for your help.
    Thanks,
    Sat

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Do you mean having the tree view shown horizontally rather than vertically ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      S 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi,

        Do you mean having the tree view shown horizontally rather than vertically ?

        S Offline
        S Offline
        ShinSat
        wrote on last edited by ShinSat
        #3

        @SGaist said in Pivot table in QTreeView?:
        Thanks for an update.
        Sorry, the initial information was wrong. I'm using QTableView, not QTreeView.

        Do you mean having the tree view shown horizontally rather than vertically ?

        Actually, I'm implementing a tableview, which is very similar to MS-Excel spread sheet, and it has a lot of number items both horizontally and vertically. (100 * 200 matrix)

        The first row and column item works as row's/column's header and the problem is that the matrix is too long to follow both horizontally and vertically. User can't map the item with the header(first row or column).
        SO,,,, what I want to achieve is to enable slider(s) but keep first row/column item visible wherever the user is viewing.

        Thanks,
        Sat

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Something like the Frozen Column Example ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          S 1 Reply Last reply
          4
          • SGaistS SGaist

            Something like the Frozen Column Example ?

            S Offline
            S Offline
            ShinSat
            wrote on last edited by ShinSat
            #5

            @SGaist Oh,, yes! Thanks for sharing a right approach!!
            My goal is something like this and it needs to be written in pyqt5.
            0_1515888162195_スクリーンショット 2018-01-14 9.02.06.png
            The headache parts are

            1. The upper left area where multiple QLabels and QPushButtons can be frozen
            2. Sort the Frozen Area 2 with View Port.

            I need some more time to understand this technique if it will work for my requirment. :)

            Thanks!!
            Sat

            S 1 Reply Last reply
            0
            • S ShinSat

              @SGaist Oh,, yes! Thanks for sharing a right approach!!
              My goal is something like this and it needs to be written in pyqt5.
              0_1515888162195_スクリーンショット 2018-01-14 9.02.06.png
              The headache parts are

              1. The upper left area where multiple QLabels and QPushButtons can be frozen
              2. Sort the Frozen Area 2 with View Port.

              I need some more time to understand this technique if it will work for my requirment. :)

              Thanks!!
              Sat

              S Offline
              S Offline
              ShinSat
              wrote on last edited by
              #6

              @ShinSat Now I'm customizing and testing the Frozen Column Example in Python and found one issue.
              As I mentioned previously, I need to combine two frozen areas(Frozen Area 1 & Frozen Area 2) and want the upper left corner area, which is an overlapped area between the two frozen areas, to stay wherever the current user view is.
              How is it possible? Any ideas?

              Regards,
              Sat

              S 1 Reply Last reply
              0
              • S ShinSat

                @ShinSat Now I'm customizing and testing the Frozen Column Example in Python and found one issue.
                As I mentioned previously, I need to combine two frozen areas(Frozen Area 1 & Frozen Area 2) and want the upper left corner area, which is an overlapped area between the two frozen areas, to stay wherever the current user view is.
                How is it possible? Any ideas?

                Regards,
                Sat

                S Offline
                S Offline
                ShinSat
                wrote on last edited by
                #7

                @ShinSat And now, I'm trying the 3rd frozen area on the upper left corner.
                I guess this is the solution!?

                Sat

                1 Reply Last reply
                1
                • VRoninV Offline
                  VRoninV Offline
                  VRonin
                  wrote on last edited by
                  #8

                  Yes, you need 3 table views (frozen1, frozen2 and viewport) and a qwidget that contains the controls (the top left area)

                  "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
                  ~Napoleon Bonaparte

                  On a crusade to banish setIndexWidget() from the holy land of Qt

                  S 1 Reply Last reply
                  3
                  • VRoninV VRonin

                    Yes, you need 3 table views (frozen1, frozen2 and viewport) and a qwidget that contains the controls (the top left area)

                    S Offline
                    S Offline
                    ShinSat
                    wrote on last edited by
                    #9

                    @VRonin Still minor issues exist but I think I'm on right direction! Thank you very much for your help, All!! :)

                    Regards,
                    Sat

                    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