Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. General talk
  3. Brainstorm
  4. QDesktopService should be in QtCore ?

QDesktopService should be in QtCore ?

Scheduled Pinned Locked Moved Brainstorm
12 Posts 6 Posters 6.5k Views
  • 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.
  • V Offline
    V Offline
    vishwajeet
    wrote on last edited by
    #3

    but what about @QString storageLocation ( StandardLocation type ) @

    and

    @enum StandardLocation@

    They are more of an CLI stuff.

    Born To Code !!!

    1 Reply Last reply
    0
    • T Offline
      T Offline
      t3chNo
      wrote on last edited by
      #4

      If storageLocation was in QDir, it would be better i think. QDir already has storage location members like QDir::homePath.

      1 Reply Last reply
      0
      • S Offline
        S Offline
        Smar
        wrote on last edited by
        #5

        Or QFile... If this one is seen to be file relevant, and not directory.

        Anyway, +1 for this.

        1 Reply Last reply
        0
        • T Offline
          T Offline
          tobias.hunger
          wrote on last edited by
          #6

          Please file a "feature request":http://bugreports.qt.nokia.com/.

          Postings like this will only ever get considered by accident (if somebody happens to remember reading it and then actually finds the relevant post again), while the bug tracker will be consulted during planning sessions.

          It might be a good idea to post the link here so that people reading this can vote for the issue.

          1 Reply Last reply
          0
          • T Offline
            T Offline
            t3chNo
            wrote on last edited by
            #7

            i reported.
            "http://bugreports.qt.nokia.com/browse/QTBUG-12531":http://bugreports.qt.nokia.com/browse/QTBUG-12531

            1 Reply Last reply
            0
            • S Offline
              S Offline
              Smar
              wrote on last edited by
              #8

              I originally thought that it could be discussed what people would think about this. First I wasn't able to even find more proper solution for this... I suppose this is what the creator of the thread thought too.

              Now, it seems this is actually good idea, a feature request can be filled with some nice suggestions :)

              EDIT: too slow...

              1 Reply Last reply
              0
              • V Offline
                V Offline
                vishwajeet
                wrote on last edited by
                #9

                Thats true, conclusion is not there. and thanks to t3chNo to report it but still i also feel little description and suggestion for it would have been nicer.

                From my side i think let there be QCoreDesktopServices class in QtCore and QDesktopServices in QGui.

                QCoreDesktopServices can have properties like storageLocation and may some more can be added later like host system configuration, CPU usage, Memory Usage like task manager.

                Born To Code !!!

                1 Reply Last reply
                0
                • S Offline
                  S Offline
                  Smar
                  wrote on last edited by
                  #10

                  [quote author="vishwajeet" date="1280483678"]Thats true, conclusion is not there. and thanks to t3chNo to report it but still i also feel little description and suggestion for it would have been nicer.

                  From my side i think let there be QCoreDesktopServices class in QtCore and QDesktopServices in QGui.

                  QCoreDesktopServices can have properties like storageLocation and may some more can be added later like host system configuration, CPU usage, Memory Usage like task manager.

                  [/quote]

                  Could you put a comment about ideas in this topic to that bug? Seems like there is no other way to go on now.

                  1 Reply Last reply
                  0
                  • M Offline
                    M Offline
                    mstanescu
                    wrote on last edited by
                    #11

                    Its a good question and i cry after this. That's what you get when people combine in the same interface things which are not related instead of doing a good encapsulation. Its just bad design.

                    Why not just make some StorageLocations helper class and just provide the location thing. You can just put it in QCoreApplication from my point of view.

                    I don't really see the conection of these paths with the QDesktopService. Does storageLocation has ANYTHING to do with the word service?

                    1 Reply Last reply
                    0
                    • sierdzioS Offline
                      sierdzioS Offline
                      sierdzio
                      Moderators
                      wrote on last edited by
                      #12

                      Check out Qt5, there is a module called "QtSystems" it can provide info you want and is not in QtGui/ QtWidgets ;)

                      (Z(:^

                      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