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

setColumnHidden

Scheduled Pinned Locked Moved Solved General and Desktop
10 Posts 3 Posters 2.1k 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.
  • V Offline
    V Offline
    vicarod
    wrote on last edited by
    #1

    I created a QTableView and hided initially few columns with setColumnHidden. I Build static the application and now I want to hide more columns with setColumnHidden, but no effect. More, if I try to comment the old lines that used setColumnHidden it has no effect. The QTableView I made with qt creator designer not by code. Please help.

    K 1 Reply Last reply
    0
    • V vicarod

      I created a QTableView and hided initially few columns with setColumnHidden. I Build static the application and now I want to hide more columns with setColumnHidden, but no effect. More, if I try to comment the old lines that used setColumnHidden it has no effect. The QTableView I made with qt creator designer not by code. Please help.

      K Offline
      K Offline
      koahnig
      wrote on last edited by
      #2

      @vicarod

      Sounds odd.

      Did you rerun qmake and rebuild already?

      Vote the answer(s) that helped you to solve your issue(s)

      1 Reply Last reply
      1
      • V Offline
        V Offline
        vicarod
        wrote on last edited by
        #3

        The project is almost ready, but I want to change something.

        K 1 Reply Last reply
        0
        • V vicarod

          The project is almost ready, but I want to change something.

          K Offline
          K Offline
          koahnig
          wrote on last edited by
          #4

          @vicarod

          at least part of your can be explained that something is not compiled, but be.

          Therefore, I am suggesting that run qmake again and do a complete rebuild of your project.
          You are stating that you are changing source, but the code change is not reflected in new behaviour of your application. A complete new compilation may cure the whole situation.

          Vote the answer(s) that helped you to solve your issue(s)

          1 Reply Last reply
          1
          • V Offline
            V Offline
            vicarod
            wrote on last edited by
            #5

            do not work.

            K 1 Reply Last reply
            0
            • V vicarod

              do not work.

              K Offline
              K Offline
              koahnig
              wrote on last edited by
              #6

              @vicarod

              Probably best is starting to debug and see if you are passing by the statements at all.

              Which OS are you on?
              Are you using Qt creator?

              Vote the answer(s) that helped you to solve your issue(s)

              1 Reply Last reply
              1
              • V Offline
                V Offline
                Vicky Sharma
                wrote on last edited by
                #7

                @vicarod
                Might be something missing, because I tried it and its working.

                So check once...

                1 Reply Last reply
                0
                • V Offline
                  V Offline
                  vicarod
                  wrote on last edited by
                  #8

                  I dont know what was happening, but I find the solution. I delete the built directory, and at rebuild it works. I use win7 and Qt creator. Thanks for answers.

                  K 1 Reply Last reply
                  0
                  • V vicarod

                    I dont know what was happening, but I find the solution. I delete the built directory, and at rebuild it works. I use win7 and Qt creator. Thanks for answers.

                    K Offline
                    K Offline
                    koahnig
                    wrote on last edited by
                    #9

                    @vicarod

                    Basically you followed my initial advice. Deletion of the build folder stuff is identical to running qmake again and rebuild.

                    make files are a measure to minimize the compilation need and concentrate only on part requiring recompliation, but sometimes the logic gets fooled. Therefore, rerun qmake and rebuild is sometimes the best advice.

                    Vote the answer(s) that helped you to solve your issue(s)

                    V 1 Reply Last reply
                    0
                    • K koahnig

                      @vicarod

                      Basically you followed my initial advice. Deletion of the build folder stuff is identical to running qmake again and rebuild.

                      make files are a measure to minimize the compilation need and concentrate only on part requiring recompliation, but sometimes the logic gets fooled. Therefore, rerun qmake and rebuild is sometimes the best advice.

                      V Offline
                      V Offline
                      vicarod
                      wrote on last edited by
                      #10

                      thanks again.

                      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