Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Behind the Scenes
  3. Qt.io webservices
  4. Code snippet sharing
Forum Updated to NodeBB v4.3 + New Features

Code snippet sharing

Scheduled Pinned Locked Moved Qt.io webservices
15 Posts 7 Posters 8.6k 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.
  • B Offline
    B Offline
    black_coder
    wrote on last edited by
    #2

    Yes, I am in support of this. Some code snippets that demonstrate some advanced usage of Qt
    components. It doesn't have to be a complete working code, it can be algorithmic snippet or an illustration of a certain feature. And preferably it shouldn't be part of the Qt demos/examples.

    1 Reply Last reply
    0
    • K Offline
      K Offline
      kamalakshantv
      wrote on last edited by
      #3

      May be one can post these source code snippets in to the wiki.

      1 Reply Last reply
      0
      • H Offline
        H Offline
        hhartz
        wrote on last edited by
        #4

        Why not use http://qt.pastebin.com/ ?

        --

        1 Reply Last reply
        0
        • K Offline
          K Offline
          kamalakshantv
          wrote on last edited by
          #5

          I think we should prefer one hosted by Qt only and avoid third party sharing sites. If providing a new interface is not on the roadmap, then posting the code snippets in the wiki like Forum Nokia will be a better option.

          1 Reply Last reply
          0
          • M Offline
            M Offline
            milot.shala
            wrote on last edited by
            #6

            [quote author="Henrik Hartz" date="1273215603"]Why not use http://qt.pastebin.com/ ?[/quote]

            That's a good idea, but users cannot register and maintain their own code snippets and users are not able to see/use other users' code, it's not that convenient, it would be better to have something built-in right here in the developer network and as well have a Qt Creator plugin for sharing a snippet from Qt Creator itself, it can be also a wiki with a special category called "snippets" or something similar where users can post such code, and I am willing to have such support on Qt Creator.

            Maybe I will write a plugin once I have a web service API exposed :D

            1 Reply Last reply
            0
            • K Offline
              K Offline
              kamalakshantv
              wrote on last edited by
              #7

              [quote author="Milot Shala" date="1273218610"][quote author="Henrik Hartz" date="1273215603"]Why not use http://qt.pastebin.com/ ?[/quote]

              That's a good idea, but users cannot register and maintain their own code snippets and users are not able to see/use other users' code, it's not that convenient, it would be better to have something built-in right here in the developer network and as well have a Qt Creator plugin for sharing a snippet from Qt Creator itself, it can be also a wiki with a special category called "snippets" or something similar where users can post such code, and I am willing to have such support on Qt Creator.

              Maybe I will write a plugin once I have a web service API exposed :D[/quote]

              An plugin to view code snippets will be really great.

              1 Reply Last reply
              0
              • T Offline
                T Offline
                troubalex
                wrote on last edited by
                #8

                [quote author="Milot Shala" date="1273218610"][quote author="Henrik Hartz" date="1273215603"]Why not use http://qt.pastebin.com/ ?[/quote]

                That's a good idea, but users cannot register and maintain their own code snippets and users are not able to see/use other users' code, it's not that convenient, it would be better to have something built-in right here in the developer network and as well have a Qt Creator plugin for sharing a snippet from Qt Creator itself, it can be also a wiki with a special category called "snippets" or something similar where users can post such code, and I am willing to have such support on Qt Creator.

                Maybe I will write a plugin once I have a web service API exposed :D[/quote]

                I really like the idea, particularly the integration into Qt Creator. I have made it a feature request for future versions since it will need both coding and legal work.

                Maybe we can use the pastebin for now and link to the snippets on a wiki page so they don't get lost?

                THE CAKE IS A LIE
                Web Community Manager - Qt Development Frameworks

                1 Reply Last reply
                0
                • M Offline
                  M Offline
                  milot.shala
                  wrote on last edited by
                  #9

                  [quote author="Alexandra Leisse" date="1273235820"][quote author="Milot Shala" date="1273218610"][quote author="Henrik Hartz" date="1273215603"]Why not use http://qt.pastebin.com/ ?[/quote]

                  That's a good idea, but users cannot register and maintain their own code snippets and users are not able to see/use other users' code, it's not that convenient, it would be better to have something built-in right here in the developer network and as well have a Qt Creator plugin for sharing a snippet from Qt Creator itself, it can be also a wiki with a special category called "snippets" or something similar where users can post such code, and I am willing to have such support on Qt Creator.

                  Maybe I will write a plugin once I have a web service API exposed :D[/quote]

                  I really like the idea, particularly the integration into Qt Creator. I have made it a feature request for future versions since it will need both coding and legal work.

                  Maybe we can use the pastebin for now and link to the snippets on a wiki page so they don't get lost?[/quote]

                  Good to hear! Thanks Alexandra.

                  As per pastebin we can do that, or it can be better if everyone can share such snippets directly on the wiki and then filter wiki contents by user, if this can be done on this system?

                  IMO I think it is better to maintain such sharing on QtDN and not using third-party services such as pastebin because on pastebin every user should enter its information (some may leave the fields blank), here every user must be logged in to edit wiki, I think tracking of the changes and filtering can be easier here.

                  1 Reply Last reply
                  0
                  • cybercatalystC Offline
                    cybercatalystC Offline
                    cybercatalyst
                    wrote on last edited by
                    #10

                    I know this is very old, but actually I started a project that accomplishes that:
                    https://github.com/cybercatalyst/qt-pods

                    1 Reply Last reply
                    0
                    • cybercatalystC Offline
                      cybercatalystC Offline
                      cybercatalyst
                      wrote on last edited by
                      #11

                      I know this is very old, but actually I started a project that accomplishes that:
                      https://github.com/cybercatalyst/qt-pods

                      1 Reply Last reply
                      0
                      • T Offline
                        T Offline
                        tarod.net
                        wrote on last edited by
                        #12

                        Great idea, but I think it is necessary some support from Qt Project to organize the code and get an easy access to these snippets.

                        "Individually, we are one drop. Together, we are an ocean."

                        1 Reply Last reply
                        0
                        • T Offline
                          T Offline
                          tarod.net
                          wrote on last edited by
                          #13

                          Great idea, but I think it is necessary some support from Qt Project to organize the code and get an easy access to these snippets.

                          "Individually, we are one drop. Together, we are an ocean."

                          1 Reply Last reply
                          0
                          • cybercatalystC Offline
                            cybercatalystC Offline
                            cybercatalyst
                            wrote on last edited by
                            #14

                            The idea is to have it organized in repositories. The graphical tool qt-pods (there will be a command line version in the future) loads a list from your defined sources, then offers packages for install. You just click on them and they install to your projects. The same way you remove them.

                            What happens is that they get added as git submodules and are woven together via a single .pri that is the single thing you need to include to you project. Then you can start using them! It's very easy, but it needs more people to come together, reformat the code and spread the word.

                            1 Reply Last reply
                            0
                            • cybercatalystC Offline
                              cybercatalystC Offline
                              cybercatalyst
                              wrote on last edited by
                              #15

                              The idea is to have it organized in repositories. The graphical tool qt-pods (there will be a command line version in the future) loads a list from your defined sources, then offers packages for install. You just click on them and they install to your projects. The same way you remove them.

                              What happens is that they get added as git submodules and are woven together via a single .pri that is the single thing you need to include to you project. Then you can start using them! It's very easy, but it needs more people to come together, reformat the code and spread the word.

                              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