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. unable to turn off grid lines of QLogValueAxis
Forum Updated to NodeBB v4.3 + New Features

unable to turn off grid lines of QLogValueAxis

Scheduled Pinned Locked Moved Solved General and Desktop
8 Posts 2 Posters 1.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.
  • JoeCFDJ Offline
    JoeCFDJ Offline
    JoeCFD
    wrote on last edited by
    #1

    I tried to call setGridLineVisible(false) and it does not work. Any idea? Thanks in advance.

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

      Hi,

      You should post a minimal compilable example that reproduces this.

      By the way, what version of Qt are you using ?

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

      1 Reply Last reply
      1
      • JoeCFDJ Offline
        JoeCFDJ Offline
        JoeCFD
        wrote on last edited by JoeCFD
        #3

        I am testing this example
        https://doc.qt.io/qt-5/qtcharts-logvalueaxis-main-cpp.html

        I can turn off the grid lines of x axis, but y axis.
        I am using Q5-5.11.1

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

          @JoeCFD said in unable to turn off grid lines of QLogValueAxis:

          setGridLineVisible(false)

          You need to add yAxis->setMinorGridLineVisible(false);

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

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

            Or remove the setMinorTickCount call.

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

            JoeCFDJ 1 Reply Last reply
            0
            • SGaistS SGaist

              Or remove the setMinorTickCount call.

              JoeCFDJ Offline
              JoeCFDJ Offline
              JoeCFD
              wrote on last edited by
              #6

              @SGaist Thanks for your reply. It is the same as to set tick count to 0. But I want to keep the ticks and hide the lines.

              1 Reply Last reply
              0
              • SGaistS SGaist

                @JoeCFD said in unable to turn off grid lines of QLogValueAxis:

                setGridLineVisible(false)

                You need to add yAxis->setMinorGridLineVisible(false);

                SGaistS Offline
                SGaistS Offline
                SGaist
                Lifetime Qt Champion
                wrote on last edited by
                #7

                @SGaist said in unable to turn off grid lines of QLogValueAxis:

                You need to add yAxis->setMinorGridLineVisible(false);

                So that one ?

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

                JoeCFDJ 1 Reply Last reply
                0
                • SGaistS SGaist

                  @SGaist said in unable to turn off grid lines of QLogValueAxis:

                  You need to add yAxis->setMinorGridLineVisible(false);

                  So that one ?

                  JoeCFDJ Offline
                  JoeCFDJ Offline
                  JoeCFD
                  wrote on last edited by
                  #8

                  @SGaist said in unable to turn off grid lines of QLogValueAxis:

                  @SGaist said in unable to turn off grid lines of QLogValueAxis:

                  You need to add yAxis->setMinorGridLineVisible(false);

                  So that one ?

                  This works fine. Thanks a lot. Have a good one.

                  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