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. problem with [QCandlestickSeries]

problem with [QCandlestickSeries]

Scheduled Pinned Locked Moved Unsolved General and Desktop
13 Posts 2 Posters 3.1k Views
  • 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.
  • A Offline
    A Offline
    AlekHorak
    wrote on last edited by AlekHorak
    #3

    I want to toggle visibility and setVisible is not working , candlestick are still rendering.
    using qt 5.9.2 osx qt creator

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

      so this is working but candles are stil visible on chart.

      qDebug() << "B" << candkes->isVisible();
      candkes->setVisible(0);
      qDebug()  << "A" << candkes->isVisible();
      

      out:
      B true
      A false

      JonBJ 1 Reply Last reply
      0
      • A AlekHorak

        so this is working but candles are stil visible on chart.

        qDebug() << "B" << candkes->isVisible();
        candkes->setVisible(0);
        qDebug()  << "A" << candkes->isVisible();
        

        out:
        B true
        A false

        JonBJ Offline
        JonBJ Offline
        JonB
        wrote on last edited by JonB
        #5

        @AlekHorak
        Worth a try of hide() instead of setVisible(0), just in case that works instead?

        1 Reply Last reply
        0
        • A Offline
          A Offline
          AlekHorak
          wrote on last edited by
          #6

          no , hide() doesn't work to , problem is deeper :(

          JonBJ 1 Reply Last reply
          0
          • A AlekHorak

            no , hide() doesn't work to , problem is deeper :(

            JonBJ Offline
            JonBJ Offline
            JonB
            wrote on last edited by
            #7

            @AlekHorak
            OK, last thought. Does it happen with another series type, or can you refresh the whole chart after you've changed visibility?

            JonBJ 1 Reply Last reply
            0
            • A Offline
              A Offline
              AlekHorak
              wrote on last edited by
              #8

              all of them are working
              QLineSeries *lineHigh = new QLineSeries;
              QLineSeries *lineOpen = new QLineSeries;
              QLineSeries *lineClose = new QLineSeries;
              QLineSeries *lineLow = new QLineSeries;

              1 Reply Last reply
              0
              • JonBJ JonB

                @AlekHorak
                OK, last thought. Does it happen with another series type, or can you refresh the whole chart after you've changed visibility?

                JonBJ Offline
                JonBJ Offline
                JonB
                wrote on last edited by
                #9

                @AlekHorak

                @JNBarchan said in problem with [QCandlestickSeries]:

                @AlekHorak
                [...] or can you refresh the whole chart after you've changed visibility?

                A 1 Reply Last reply
                0
                • JonBJ JonB

                  @AlekHorak

                  @JNBarchan said in problem with [QCandlestickSeries]:

                  @AlekHorak
                  [...] or can you refresh the whole chart after you've changed visibility?

                  A Offline
                  A Offline
                  AlekHorak
                  wrote on last edited by
                  #10

                  @JNBarchan

                  chartView->repaint();

                  still I have candles in a chart

                  JonBJ 1 Reply Last reply
                  0
                  • A AlekHorak

                    @JNBarchan

                    chartView->repaint();

                    still I have candles in a chart

                    JonBJ Offline
                    JonBJ Offline
                    JonB
                    wrote on last edited by
                    #11

                    @AlekHorak Fair enough. Sorry I couldn't help. Clearly needs a candlestick Qt expert!

                    1 Reply Last reply
                    0
                    • A Offline
                      A Offline
                      AlekHorak
                      wrote on last edited by AlekHorak
                      #12

                      thanks for being involved

                      1 Reply Last reply
                      0
                      • A Offline
                        A Offline
                        AlekHorak
                        wrote on last edited by
                        #13

                        this should be fixed in next release,
                        I have solution for now

                        if(!i)
                        {
                        chartView->chart()->removeSeries(candkes);
                        }
                        if(i){
                        chartView->chart()->addSeries(candkes);
                        candkes->attachAxis(axisX);
                        candkes->attachAxis(axisY);
                        }

                        1 Reply Last reply
                        1

                        • Login

                        • Login or register to search.
                        • First post
                          Last post
                        0
                        • Categories
                        • Recent
                        • Tags
                        • Popular
                        • Users
                        • Groups
                        • Search
                        • Get Qt Extensions
                        • Unsolved