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

Create a matrix from a .csv file

Scheduled Pinned Locked Moved Solved General and Desktop
140 Posts 2 Posters 68.4k 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.
  • A AliM93
    31 May 2020, 01:06

    @mrjj QWidget means widget? because i have Quick widget, doc widget...

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

    @AliM93
    yes in left side Widget.
    alt text

    A 1 Reply Last reply 31 May 2020, 01:08
    0
    • M mrjj
      31 May 2020, 01:07

      @AliM93
      yes in left side Widget.
      alt text

      A Offline
      A Offline
      AliM93
      wrote on 31 May 2020, 01:08 last edited by
      #66

      @mrjj perfect! i need to select global include?

      1 Reply Last reply
      0
      • A Offline
        A Offline
        AliM93
        wrote on 31 May 2020, 01:08 last edited by
        #67
        This post is deleted!
        M 1 Reply Last reply 31 May 2020, 01:10
        0
        • M Offline
          M Offline
          mrjj
          Lifetime Qt Champion
          wrote on 31 May 2020, 01:09 last edited by
          #68

          Hi
          Nope. When you use promotion, Creator adds the needed included. You tell it what file
          in the promotion dialog. ( look at image)


          and after you promoted it.
          Then right click outside the widget and add a layout so our widget follow size of dialog automatically

          alt text

          A 1 Reply Last reply 31 May 2020, 01:10
          0
          • M mrjj
            31 May 2020, 01:09

            Hi
            Nope. When you use promotion, Creator adds the needed included. You tell it what file
            in the promotion dialog. ( look at image)


            and after you promoted it.
            Then right click outside the widget and add a layout so our widget follow size of dialog automatically

            alt text

            A Offline
            A Offline
            AliM93
            wrote on 31 May 2020, 01:10 last edited by
            #69

            @mrjj ok so i click Promote and that's all

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

              This post is deleted!

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

              @AliM93
              Yes click promote now. as you have added info.
              I hope you spelled right :)

              A 1 Reply Last reply 31 May 2020, 01:12
              0
              • M mrjj
                31 May 2020, 01:10

                @AliM93
                Yes click promote now. as you have added info.
                I hope you spelled right :)

                A Offline
                A Offline
                AliM93
                wrote on 31 May 2020, 01:12 last edited by
                #71

                @mrjj done! also the layout

                M 1 Reply Last reply 31 May 2020, 01:13
                1
                • A AliM93
                  31 May 2020, 01:12

                  @mrjj done! also the layout

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

                  @AliM93
                  Ok then we need button to show dialog.
                  so add button
                  Right click it and goto slot.
                  Choose Released
                  Add the code. ( want me to show that ?)

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

                    we need to add thi button to the main_window?

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

                      we need to add thi button to the main_window?

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

                      @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 1 Reply Last reply 31 May 2020, 01:16
                      0
                      • 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

                                          74/140

                                          31 May 2020, 01:15

                                          • Login

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