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. Create a matrix from a .csv file

Create a matrix from a .csv file

Scheduled Pinned Locked Moved Solved General and Desktop
140 Posts 2 Posters 51.2k 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.
  • M mrjj
    31 May 2020, 01:15

    @AliM93
    Where ever you want to open it from.
    Main win sounds good.

    #include "GridDialog.h"
    
    void MainWindow::on_pushButton_released()
    {
        GridDialog dia; 
        dia.exec();
    }
    
    
    A Offline
    A Offline
    AliM93
    wrote on 31 May 2020, 01:16 last edited by AliM93
    #75

    @mrjj which is the difference between released and clicked? (curiosity)

    Done.

    M 1 Reply Last reply 31 May 2020, 01:19
    0
    • A AliM93
      31 May 2020, 01:16

      @mrjj which is the difference between released and clicked? (curiosity)

      Done.

      M Offline
      M Offline
      mrjj
      Lifetime Qt Champion
      wrote on 31 May 2020, 01:19 last edited by
      #76

      @AliM93
      Clicked = triggers when you click
      Release = triggers when you release the left mouse button.
      You can use any of them.

      1 Reply Last reply
      0
      • M Offline
        M Offline
        mrjj
        Lifetime Qt Champion
        wrote on 31 May 2020, 01:20 last edited by
        #77

        Ok
        super.
        Now run it and click button :)
        I hope it shows something.

        1 Reply Last reply
        0
        • A Offline
          A Offline
          AliM93
          wrote on 31 May 2020, 01:21 last edited by
          #78

          thank, only one thimg, i get error with your code, i can use Griddialog = new griddialog(this);
          griddialog ->show();

          M 1 Reply Last reply 31 May 2020, 01:23
          0
          • A AliM93
            31 May 2020, 01:21

            thank, only one thimg, i get error with your code, i can use Griddialog = new griddialog(this);
            griddialog ->show();

            M Offline
            M Offline
            mrjj
            Lifetime Qt Champion
            wrote on 31 May 2020, 01:23 last edited by mrjj
            #79

            @AliM93

            Mind the case

            Griddialog = new griddialog(this); <<< that is not correct class name and u missed * and name

            GridDialog * dia = new GridDialog (this);

            GridDialog <<< class name

            1 Reply Last reply
            0
            • A Offline
              A Offline
              AliM93
              wrote on 31 May 2020, 01:25 last edited by
              #80

              i get error, i have something to declare in main_window.h?

              M 1 Reply Last reply 31 May 2020, 01:25
              0
              • A AliM93
                31 May 2020, 01:25

                i get error, i have something to declare in main_window.h?

                M Offline
                M Offline
                mrjj
                Lifetime Qt Champion
                wrote on 31 May 2020, 01:25 last edited by
                #81

                @AliM93
                well you must have the GridDialog.h include file

                1 Reply Last reply
                0
                • A Offline
                  A Offline
                  AliM93
                  wrote on 31 May 2020, 01:26 last edited by
                  #82

                  ii've done that

                  M 1 Reply Last reply 31 May 2020, 01:27
                  0
                  • A AliM93
                    31 May 2020, 01:26

                    ii've done that

                    M Offline
                    M Offline
                    mrjj
                    Lifetime Qt Champion
                    wrote on 31 May 2020, 01:27 last edited by
                    #83

                    @AliM93
                    Then you must have missspelled something as that is all you need.
                    Show excact code and the error

                    1 Reply Last reply
                    0
                    • A Offline
                      A Offline
                      AliM93
                      wrote on 31 May 2020, 01:27 last edited by
                      #84

                      maybe i have to include something also in griddialog?

                      M 1 Reply Last reply 31 May 2020, 01:27
                      0
                      • A AliM93
                        31 May 2020, 01:27

                        maybe i have to include something also in griddialog?

                        M Offline
                        M Offline
                        mrjj
                        Lifetime Qt Champion
                        wrote on 31 May 2020, 01:27 last edited by
                        #85

                        @AliM93
                        Creator did that when you promoted.

                        Please show real error :)

                        1 Reply Last reply
                        0
                        • A Offline
                          A Offline
                          AliM93
                          wrote on 31 May 2020, 01:29 last edited by
                          #86
                          This post is deleted!
                          A 1 Reply Last reply 31 May 2020, 01:33
                          0
                          • A AliM93
                            31 May 2020, 01:29

                            This post is deleted!

                            A Offline
                            A Offline
                            AliM93
                            wrote on 31 May 2020, 01:33 last edited by
                            #87

                            @AliM93 i try to put what you suggest me in the function f button released, but nothing changes

                            1 Reply Last reply
                            0
                            • M Offline
                              M Offline
                              mrjj
                              Lifetime Qt Champion
                              wrote on 31 May 2020, 01:33 last edited by
                              #88

                              Try a clean build.
                              It seems correct.

                              1 Reply Last reply
                              0
                              • M Offline
                                M Offline
                                mrjj
                                Lifetime Qt Champion
                                wrote on 31 May 2020, 01:35 last edited by
                                #89

                                I think we did the same so not sure why you cannot compile.
                                alt text

                                1 Reply Last reply
                                0
                                • M Offline
                                  M Offline
                                  mrjj
                                  Lifetime Qt Champion
                                  wrote on 31 May 2020, 01:36 last edited by mrjj
                                  #90

                                  Wairt you have odd error

                                  That in from of MainWindow is wrong!

                                  and u use picture again so cant paste .

                                  alt text

                                  That is not legal syntax

                                  1 Reply Last reply
                                  0
                                  • A Offline
                                    A Offline
                                    AliM93
                                    wrote on 31 May 2020, 01:38 last edited by
                                    #91
                                    This post is deleted!
                                    1 Reply Last reply
                                    0
                                    • A Offline
                                      A Offline
                                      AliM93
                                      wrote on 31 May 2020, 01:38 last edited by
                                      #92

                                      i try to clean and build and this comes out...

                                      M 1 Reply Last reply 31 May 2020, 01:40
                                      0
                                      • A Offline
                                        A Offline
                                        AliM93
                                        wrote on 31 May 2020, 01:39 last edited by
                                        #93

                                        sorry, i didn't see your message

                                        1 Reply Last reply
                                        0
                                        • A AliM93
                                          31 May 2020, 01:38

                                          i try to clean and build and this comes out...

                                          M Offline
                                          M Offline
                                          mrjj
                                          Lifetime Qt Champion
                                          wrote on 31 May 2020, 01:40 last edited by
                                          #94

                                          @AliM93
                                          Hmm . must be a cmake thing.

                                          The .h seems correctly spelled
                                          and this is in same project?

                                          1 Reply Last reply
                                          0

                                          84/140

                                          31 May 2020, 01:27

                                          • Login

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