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. How i duplitcate to items in group ?
Forum Updated to NodeBB v4.3 + New Features

How i duplitcate to items in group ?

Scheduled Pinned Locked Moved Solved General and Desktop
9 Posts 2 Posters 988 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.
  • C Offline
    C Offline
    coyistik
    wrote on last edited by coyistik
    #1

    I marked field, what type have the widget ? Its looking seems into a group but i dont know how did it.
    And when if it's have a few video, opening a scroll. I didn't see before at any tutorial this. How i should duplicate into file like these if i call data.

    alt text

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

      Hi
      Which items and where ?
      Do you mean in Designer ?
      You can ctrl+drag to make copy of widget with new name

      1 Reply Last reply
      0
      • C Offline
        C Offline
        coyistik
        wrote on last edited by
        #3

        Hi, this field is not static. Yellow field's infos coming from another place and it hasnt should be. It's maybe empty. Can i create in cpp file or which on ui ! So how i should it ?
        I mean say video name, duration, progress,image, pause and delete buttons all are items of group. I dont know which this widget from Qt.
        I want to take into the loop all these. If isnt it and not have any result its can give info.

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

          Ah, you mean how to create such widget ?
          Or do you mean you are looking in that apps source code and
          cannot find where it makes list ?

          The best way is a list and a delegate
          something like
          http://doc.qt.io/qt-5/qtnetwork-torrent-example.html

          1 Reply Last reply
          0
          • C Offline
            C Offline
            coyistik
            wrote on last edited by coyistik
            #5

            Your sended example is logic similar to table and list view.
            But like in the picture it doesn't list or table view.
            Every items created manuel and its duplicatable. I didnt see before to source code it but i guess they was create on ui as single and they are can take into the loop. And if when add new item just changing to info, not structure.

            mrjjM 1 Reply Last reply
            0
            • C coyistik

              Your sended example is logic similar to table and list view.
              But like in the picture it doesn't list or table view.
              Every items created manuel and its duplicatable. I didnt see before to source code it but i guess they was create on ui as single and they are can take into the loop. And if when add new item just changing to info, not structure.

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

              @coyistik
              Other way would be to use a QScrollArea and widgets directly on it.
              That would be be possible to do in Designer/Ui

              1 Reply Last reply
              0
              • C Offline
                C Offline
                coyistik
                wrote on last edited by coyistik
                #7

                Hmm, maybe i can explain little more my problem

                How do I position it. I using this program and i want to make this feature for my own program. I can use QScrollArea but for into how can i add many yellow field as with dynamic. I didnt find how i can take it into loop.
                İ can create new class which add items (image,name..) to into of group.
                I can call from main page in loop. Is it usible ?
                Other way when i cannot using any widget, i should define into a function all widgets. I dont touch to gui. If have new content all times append it into QScrollArea.
                But i dont sure becouse if when i define from cpp file. I need add position data. It can go into each other

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

                  Hi
                  the best way would still be ListView + delegate as using real widgets will become very heavy if you have many "yellow" items.

                  Anyway, if going with UI files.
                  Then you would make a class with UI to be yellow one.
                  And you will then new and insert the new class into the ScrollArea.
                  In ScrollArea you have put layout, so they will never overlap and be positioned correctly under each other.

                  But its very unclear to me if you are trying to create such Yellow Item for use in
                  your own class or if you are trying to reuse the one from the pic.

                  1 Reply Last reply
                  2
                  • C Offline
                    C Offline
                    coyistik
                    wrote on last edited by
                    #9

                    Thank you very much i get it.

                    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