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. Excel Groups with Qt
Forum Updated to NodeBB v4.3 + New Features

Excel Groups with Qt

Scheduled Pinned Locked Moved General and Desktop
10 Posts 2 Posters 4.1k 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.
  • O Offline
    O Offline
    Octani
    wrote on last edited by
    #1

    Hello,

    i would like to know if there's any Qt's tool which allows to group some elements of a table like a spreadsheet.

    I give you an example of what i mean :

    !http://www.exceltip.com/images/1421.jpg!

    1 Reply Last reply
    0
    • A Offline
      A Offline
      andre
      wrote on last edited by
      #2

      No, there is not. Not by default. If you need an advanced grid component, perhaps you should look at "QIcsTable":http://www.ics.com/products/qt/qicstable/ (commercial offering). I'm not sure if it supports what you need though.

      1 Reply Last reply
      0
      • O Offline
        O Offline
        Octani
        wrote on last edited by
        #3

        Ok, thanks you. I think i will try to implement such a tool with QPushButton perhaps.

        1 Reply Last reply
        0
        • A Offline
          A Offline
          andre
          wrote on last edited by
          #4

          I'd like to see you do that. I don't get how a QPushButton is going to help you, but perhaps I just don't understand the problem you're trying to solve. However, if you do, please share your solution!

          1 Reply Last reply
          0
          • O Offline
            O Offline
            Octani
            wrote on last edited by
            #5

            I'm working on a spreadsheet and i need a tool which group some rows but it doesn't exist in Qt so i try to find a solution with other tools. I made a fast test with a QPushButton, it's why i speak about this :

            Grouper.h :

            @class Grouper : public QPushButton
            {
            Q_OBJECT
            public:
            Grouper(QTableWidget *table, int firstRow, int lastRow, QWidget *parent = 0);
            signals:

            public slots:
            void grouper();
            protected:
            QTableWidget *table;
            int firstRow;
            int lastRow;
            bool isGrouped;
            };@

            The slot :

            @void Grouper::grouper()
            {
            for(int i = firstRow; i < lastRow; i++)
            {
            if(table->isRowHidden(i))
            table->setRowHidden(i,false);
            else
            table->setRowHidden(i,true);

            }
            

            }@

            1 Reply Last reply
            0
            • O Offline
              O Offline
              Octani
              wrote on last edited by
              #6

              Up ! If anybody have any idea to implement such a tool...

              1 Reply Last reply
              0
              • A Offline
                A Offline
                andre
                wrote on last edited by
                #7

                [quote author="Octani" date="1334233221"]Up ! If anybody have any idea to implement such a tool...[/quote]

                Doing that is not acceptable. Please give people at least a week to respond before kicking your topic up like this.

                1 Reply Last reply
                0
                • O Offline
                  O Offline
                  Octani
                  wrote on last edited by
                  #8

                  Sorry, it will not happen again but it's really important

                  1 Reply Last reply
                  0
                  • A Offline
                    A Offline
                    andre
                    wrote on last edited by
                    #9

                    http://www.catb.org/~esr/faqs/smart-questions.html#urgent

                    1 Reply Last reply
                    0
                    • O Offline
                      O Offline
                      Octani
                      wrote on last edited by
                      #10

                      Understood

                      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