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. 600+ Dialogs
Qt 6.11 is out! See what's new in the release blog

600+ Dialogs

Scheduled Pinned Locked Moved Unsolved General and Desktop
13 Posts 4 Posters 2.5k 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.
  • jsulmJ jsulm

    @Epiales666 I don't really understand what you want to do. You can use same dialog class for all movies - just create one instance for each movie you want to play.

    Epiales666E Offline
    Epiales666E Offline
    Epiales666
    wrote on last edited by Epiales666
    #4

    @jsulm said in 600+ Dialogs:

    @Epiales666 I don't really understand what you want to do. You can use same dialog class for all movies - just create one instance for each movie you want to play.

    Ended up with an eye infection, so been off last few days. Thanks for your reply. What I am wanting, or what I have right now.

    I created a program in designer that displays all my movies and titles. I just click play on the movie and it plays. Each movie also has a button to push that will display the plot to the movie and the authors, ect information.

    So was wondering if there was a way to write the code so I don't have to have 600+ diologs for EACH movie plot? It's for personal use only, so I can do 600+ dialogs, but was hopin there was a better way so it didn't use so much space. Right now I have like 200 dialogs, for 200 different movies lol. Thanks

    Be Blessed!
    Epiales666

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

      Hi
      Welcome back then :)
      Normally you would have a data file with information. ( like authors)
      you would then load this data into the app
      and use with 1 dialog to show info by replace the
      text in label etc.

      Its like a movie catalog program?

      1 Reply Last reply
      0
      • Epiales666E Epiales666

        @jsulm said in 600+ Dialogs:

        @Epiales666 I don't really understand what you want to do. You can use same dialog class for all movies - just create one instance for each movie you want to play.

        Ended up with an eye infection, so been off last few days. Thanks for your reply. What I am wanting, or what I have right now.

        I created a program in designer that displays all my movies and titles. I just click play on the movie and it plays. Each movie also has a button to push that will display the plot to the movie and the authors, ect information.

        So was wondering if there was a way to write the code so I don't have to have 600+ diologs for EACH movie plot? It's for personal use only, so I can do 600+ dialogs, but was hopin there was a better way so it didn't use so much space. Right now I have like 200 dialogs, for 200 different movies lol. Thanks

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

        @Epiales666 said in 600+ Dialogs:

        So was wondering if there was a way to write the code so I don't have to have 600+ diologs for EACH movie plot? It's for personal use only, so I can do 600+ dialogs, but was hopin there was a better way so it didn't use so much space. Right now I have like 200 dialogs, for 200 different movies lol. Thanks

        Don't design a single dialog more till you get the hang of doing it programmatically :) 200 dialogs for 200 movies, just "wow".....

        mrjjM 1 Reply Last reply
        0
        • JonBJ JonB

          @Epiales666 said in 600+ Dialogs:

          So was wondering if there was a way to write the code so I don't have to have 600+ diologs for EACH movie plot? It's for personal use only, so I can do 600+ dialogs, but was hopin there was a better way so it didn't use so much space. Right now I have like 200 dialogs, for 200 different movies lol. Thanks

          Don't design a single dialog more till you get the hang of doing it programmatically :) 200 dialogs for 200 movies, just "wow".....

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

          @JNBarchan
          We have to give +1 for effort :)

          JonBJ 1 Reply Last reply
          0
          • mrjjM mrjj

            @JNBarchan
            We have to give +1 for effort :)

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

            @mrjj
            I did say "wow" :)

            I'm thinking that @Epiales666 is kind of designing the complete application by hard-coding one movie to each dialog in Qt Creator and more or less having no other code?

            mrjjM 1 Reply Last reply
            0
            • JonBJ JonB

              @mrjj
              I did say "wow" :)

              I'm thinking that @Epiales666 is kind of designing the complete application by hard-coding one movie to each dialog in Qt Creator and more or less having no other code?

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

              @JNBarchan
              Yes i think he just use designer and draw them all :)

              Epiales666E 1 Reply Last reply
              0
              • mrjjM mrjj

                @JNBarchan
                Yes i think he just use designer and draw them all :)

                Epiales666E Offline
                Epiales666E Offline
                Epiales666
                wrote on last edited by
                #10

                @mrjj @JNBarchan

                Yeah, it's all done in designer.... but I was thinking with all the information for each movie, it's either put it in one HUGE long file, that goes on forever, adding each information to the file, or having seperate dialogs... I didn't know which would be better, nor where to start with just one dialog usage lol... yeah, 200 dialogs hehe...

                I mean, it's going to be huge if placed in ONE file as well isn't it? So it's like picking the better of the two evils?

                Be Blessed!
                Epiales666

                Epiales666E JonBJ 2 Replies Last reply
                0
                • Epiales666E Epiales666

                  @mrjj @JNBarchan

                  Yeah, it's all done in designer.... but I was thinking with all the information for each movie, it's either put it in one HUGE long file, that goes on forever, adding each information to the file, or having seperate dialogs... I didn't know which would be better, nor where to start with just one dialog usage lol... yeah, 200 dialogs hehe...

                  I mean, it's going to be huge if placed in ONE file as well isn't it? So it's like picking the better of the two evils?

                  Epiales666E Offline
                  Epiales666E Offline
                  Epiales666
                  wrote on last edited by
                  #11

                  @mrjj @JNBarchan

                  I"m not too well knowledged on C++, but I have done a lot of php/mysqli... I'm assuming I'd have to write an "IF" this button is click, put "THIS" information.... so each movie would be done like that, so one dialog could be used as the initial dialog. Then the if and elses I would 'assume'.... But doing it like that, would create one huge file with over 600 movie plots, and titles and such. And since I"m pretty new to all this, I didn't know which way to go.

                  Since I've gotten into this, and done a few things with it, I'm starting to learn more and more. Been diving into some C++ tutorials and videos to learn a bit more too.

                  But yeah, I had no idea where to start using just one initial dialog, or whether or not it would be okay to do it with all new dialogs per each movie, or just one. If it will be better to do it with one dialog box and then doing an if else type thing, let me know and I'll try and redo it lol. Thanks to the both of ya.

                  Be Blessed!
                  Epiales666

                  JonBJ 1 Reply Last reply
                  0
                  • Epiales666E Epiales666

                    @mrjj @JNBarchan

                    Yeah, it's all done in designer.... but I was thinking with all the information for each movie, it's either put it in one HUGE long file, that goes on forever, adding each information to the file, or having seperate dialogs... I didn't know which would be better, nor where to start with just one dialog usage lol... yeah, 200 dialogs hehe...

                    I mean, it's going to be huge if placed in ONE file as well isn't it? So it's like picking the better of the two evils?

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

                    @Epiales666
                    We're not sure what you have in mind, but putting the information per movie in something external and picking it up when needed is a "lesser evil" than putting it into separate dialogs.

                    Perhaps you should explain a bit about your situation. Where are you getting this list of plots from? Are you typing in the plots yourself? Where do you get your list of movies from to tie with the plots? Just an outline.

                    1 Reply Last reply
                    0
                    • Epiales666E Epiales666

                      @mrjj @JNBarchan

                      I"m not too well knowledged on C++, but I have done a lot of php/mysqli... I'm assuming I'd have to write an "IF" this button is click, put "THIS" information.... so each movie would be done like that, so one dialog could be used as the initial dialog. Then the if and elses I would 'assume'.... But doing it like that, would create one huge file with over 600 movie plots, and titles and such. And since I"m pretty new to all this, I didn't know which way to go.

                      Since I've gotten into this, and done a few things with it, I'm starting to learn more and more. Been diving into some C++ tutorials and videos to learn a bit more too.

                      But yeah, I had no idea where to start using just one initial dialog, or whether or not it would be okay to do it with all new dialogs per each movie, or just one. If it will be better to do it with one dialog box and then doing an if else type thing, let me know and I'll try and redo it lol. Thanks to the both of ya.

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

                      @Epiales666
                      If you've got 600 movies, 600 if-elses will not be the right approach :)

                      At some level, you'll want to attach the plot info to the movie name, but not by pairing each one into its own dialog at design-time :)

                      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