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 52.6k 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

    my main_window is still polupated

    mrjjM Offline
    mrjjM Offline
    mrjj
    Lifetime Qt Champion
    wrote on last edited by
    #56

    @AliM93

    add to the dialog then :)
    Its 100% the same way.
    Dont matter which UI.

    So lets just use the dialog.

    1 Reply Last reply
    0
    • A Offline
      A Offline
      AliM93
      wrote on last edited by AliM93
      #57

      ok, so what i have to do? Add a normal QWidget to may main_window

      mrjjM 2 Replies Last reply
      0
      • A AliM93

        ok, so what i have to do? Add a normal QWidget to may main_window

        mrjjM Offline
        mrjjM Offline
        mrjj
        Lifetime Qt Champion
        wrote on last edited by
        #58

        @AliM93

        open UI file for dialog and promote it as shown.
        This Creator feature will then allow us to use our new custom widget without adding it from code.

        1 Reply Last reply
        0
        • A AliM93

          ok, so what i have to do? Add a normal QWidget to may main_window

          mrjjM Offline
          mrjjM Offline
          mrjj
          Lifetime Qt Champion
          wrote on last edited by
          #59

          @AliM93 said in Create a matrix from a .csv file:

          Add a normal QWidget to may main_window

          No, not if you want to use the dialog.

          1 Reply Last reply
          0
          • A Offline
            A Offline
            AliM93
            wrote on last edited by
            #60

            yes but which dialog i have to open? i don't have in this file.. can i add?

            mrjjM 1 Reply Last reply
            0
            • A AliM93

              yes but which dialog i have to open? i don't have in this file.. can i add?

              mrjjM Offline
              mrjjM Offline
              mrjj
              Lifetime Qt Champion
              wrote on last edited by
              #61

              @AliM93
              Ohh, you dont have dialog yet ?
              Lets add new blank one.
              Sec. shots.

              A 1 Reply Last reply
              0
              • mrjjM mrjj

                @AliM93
                Ohh, you dont have dialog yet ?
                Lets add new blank one.
                Sec. shots.

                A Offline
                A Offline
                AliM93
                wrote on last edited by
                #62

                @mrjj no because i have the maxi project, and i split to a little one, then i will integrate

                1 Reply Last reply
                0
                • mrjjM Offline
                  mrjjM Offline
                  mrjj
                  Lifetime Qt Champion
                  wrote on last edited by
                  #63

                  Again, select the File New as when we made the widget.

                  alt text

                  Choose Designer Form class

                  Then choose a dialog

                  alt text

                  Give it a good name
                  alt text

                  Press NExt, NExt

                  Now you have this and you add a QWidget to it and promote it.
                  alt text

                  A 1 Reply Last reply
                  0
                  • mrjjM mrjj

                    Again, select the File New as when we made the widget.

                    alt text

                    Choose Designer Form class

                    Then choose a dialog

                    alt text

                    Give it a good name
                    alt text

                    Press NExt, NExt

                    Now you have this and you add a QWidget to it and promote it.
                    alt text

                    A Offline
                    A Offline
                    AliM93
                    wrote on last edited by AliM93
                    #64

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

                    mrjjM 1 Reply Last reply
                    0
                    • A AliM93

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

                      mrjjM Offline
                      mrjjM Offline
                      mrjj
                      Lifetime Qt Champion
                      wrote on last edited by
                      #65

                      @AliM93
                      yes in left side Widget.
                      alt text

                      A 1 Reply Last reply
                      0
                      • mrjjM mrjj

                        @AliM93
                        yes in left side Widget.
                        alt text

                        A Offline
                        A Offline
                        AliM93
                        wrote on last edited by
                        #66

                        @mrjj perfect! i need to select global include?

                        1 Reply Last reply
                        0
                        • A Offline
                          A Offline
                          AliM93
                          wrote on last edited by
                          #67
                          This post is deleted!
                          mrjjM 1 Reply Last reply
                          0
                          • mrjjM Offline
                            mrjjM Offline
                            mrjj
                            Lifetime Qt Champion
                            wrote on 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
                            0
                            • mrjjM mrjj

                              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 last edited by
                              #69

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

                              1 Reply Last reply
                              0
                              • A AliM93

                                This post is deleted!

                                mrjjM Offline
                                mrjjM Offline
                                mrjj
                                Lifetime Qt Champion
                                wrote on last edited by
                                #70

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

                                A 1 Reply Last reply
                                0
                                • mrjjM mrjj

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

                                  A Offline
                                  A Offline
                                  AliM93
                                  wrote on last edited by
                                  #71

                                  @mrjj done! also the layout

                                  mrjjM 1 Reply Last reply
                                  1
                                  • A AliM93

                                    @mrjj done! also the layout

                                    mrjjM Offline
                                    mrjjM Offline
                                    mrjj
                                    Lifetime Qt Champion
                                    wrote on 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 last edited by
                                      #73

                                      we need to add thi button to the main_window?

                                      mrjjM 1 Reply Last reply
                                      0
                                      • A AliM93

                                        we need to add thi button to the main_window?

                                        mrjjM Offline
                                        mrjjM Offline
                                        mrjj
                                        Lifetime Qt Champion
                                        wrote on 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
                                        0
                                        • mrjjM mrjj

                                          @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 last edited by AliM93
                                          #75

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

                                          Done.

                                          mrjjM 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