Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Where I could get more details and examples about API functions?
Forum Updated to NodeBB v4.3 + New Features

Where I could get more details and examples about API functions?

Scheduled Pinned Locked Moved Solved Qt Creator and other tools
6 Posts 4 Posters 590 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.
  • Q Offline
    Q Offline
    Qtcpp_User
    wrote on last edited by
    #1

    Hi,Qt experts.
    I find that just few API functions have examples and run effect in Qt Assistant.
    For example,
    [
    QDir::exists();
    QDir_exists.png
    with the same name of what? of directory or QString path like "example"?
    directory_exists.png
    And
    QSettings::contains(const QString &key);
    QSet_contains.png
    If I set group using beginGruop(),what I supposed to fill in 'key'?
    Not need to answer above questions,I had googled them.
    ]
    So how could I get documents with more details,examples and run effect about those API functions? Or I use Qt Assistant in a wrong way?
    Thanks for your reply.
    Regards,
    Qtcpp_User

    sierdzioS JonBJ Pl45m4P 3 Replies Last reply
    0
    • Q Qtcpp_User

      Hi,Qt experts.
      I find that just few API functions have examples and run effect in Qt Assistant.
      For example,
      [
      QDir::exists();
      QDir_exists.png
      with the same name of what? of directory or QString path like "example"?
      directory_exists.png
      And
      QSettings::contains(const QString &key);
      QSet_contains.png
      If I set group using beginGruop(),what I supposed to fill in 'key'?
      Not need to answer above questions,I had googled them.
      ]
      So how could I get documents with more details,examples and run effect about those API functions? Or I use Qt Assistant in a wrong way?
      Thanks for your reply.
      Regards,
      Qtcpp_User

      sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      @Qtcpp_User To me these texts are clear.

      But if you have a suggestion how to improve the documentation, please either report it on Qt bugtracker or consider preparing some patches and contributing them.

      (Z(:^

      Q 1 Reply Last reply
      1
      • Q Qtcpp_User

        Hi,Qt experts.
        I find that just few API functions have examples and run effect in Qt Assistant.
        For example,
        [
        QDir::exists();
        QDir_exists.png
        with the same name of what? of directory or QString path like "example"?
        directory_exists.png
        And
        QSettings::contains(const QString &key);
        QSet_contains.png
        If I set group using beginGruop(),what I supposed to fill in 'key'?
        Not need to answer above questions,I had googled them.
        ]
        So how could I get documents with more details,examples and run effect about those API functions? Or I use Qt Assistant in a wrong way?
        Thanks for your reply.
        Regards,
        Qtcpp_User

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

        @Qtcpp_User said in Where I could get more details and examples about API functions?:

        Not need to answer above questions,I had googled them.

        And I would use Google if you seek more clarity on the API functions! You canot expect documentation to provide an example of anything you might want to know.....

        Q 1 Reply Last reply
        0
        • sierdzioS sierdzio

          @Qtcpp_User To me these texts are clear.

          But if you have a suggestion how to improve the documentation, please either report it on Qt bugtracker or consider preparing some patches and contributing them.

          Q Offline
          Q Offline
          Qtcpp_User
          wrote on last edited by
          #4

          @sierdzio
          Good days,
          It just few simple API. but when use complicated API with multiple parameters which are described briefly, I have to try one by one to see run effects. It not nice to new users especially.
          Qt bugtracker ? It not a bug , right? And I saw some particular posts or blogs, it not appear in Qt Assistant. So I guess there is no way to report this or maybe not in Qt bugtracker?
          And I think the best way to solve it is refer to "Baidu Baike" or "Wikipedia". Let users edit Assistant documentation to detail API those they are familiar. The Qt Assistant is independent of Qt Creator. So it maybe not influence Creator, even if Assistant broken. What do you think about it? You are moderators, maybe Qt would consider your suggestion.
          Thanks for your reply.

          1 Reply Last reply
          0
          • JonBJ JonB

            @Qtcpp_User said in Where I could get more details and examples about API functions?:

            Not need to answer above questions,I had googled them.

            And I would use Google if you seek more clarity on the API functions! You canot expect documentation to provide an example of anything you might want to know.....

            Q Offline
            Q Offline
            Qtcpp_User
            wrote on last edited by
            #5

            @JonB
            Good days,
            Yeah, I used to use Google to seek information when programming. Until I spent minutes or hours to find it is abandoned API or outdated information in posts or blogs searched by Google several times. I started to read official documentation. But it not my expected.
            I thought I used Assistant in a wrong way. But now it seem I have to combine them.
            Or do you have some suggestions or somethings for me.
            Thanks for your reply.

            1 Reply Last reply
            0
            • Q Qtcpp_User has marked this topic as solved on
            • Q Qtcpp_User

              Hi,Qt experts.
              I find that just few API functions have examples and run effect in Qt Assistant.
              For example,
              [
              QDir::exists();
              QDir_exists.png
              with the same name of what? of directory or QString path like "example"?
              directory_exists.png
              And
              QSettings::contains(const QString &key);
              QSet_contains.png
              If I set group using beginGruop(),what I supposed to fill in 'key'?
              Not need to answer above questions,I had googled them.
              ]
              So how could I get documents with more details,examples and run effect about those API functions? Or I use Qt Assistant in a wrong way?
              Thanks for your reply.
              Regards,
              Qtcpp_User

              Pl45m4P Offline
              Pl45m4P Offline
              Pl45m4
              wrote on last edited by
              #6

              @Qtcpp_User said in Where I could get more details and examples about API functions?:

              with the same name of what? of directory or QString path like "example"?

              With the same name of QDir?! What else?!
              Btw: example is the name of the "to-be-tested" directory. It can be a full path, it can be just a directory name relative to the current directory.

              If I set group using beginGruop(),what I supposed to fill in 'key'?

              The key you want to check, maybe?!

              Asking those questions is the same as asking, what the ampersand in const QString &key does and why it's there...
              Even when there is a documentation, it's expected to have a certain level of knowledge and maybe some experience from using other frameworks / libraries.
              Also the context where it's used is important and might help to understand what the text means.


              If debugging is the process of removing software bugs, then programming must be the process of putting them in.

              ~E. W. Dijkstra

              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