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. Help Files for Standard Libs
Forum Updated to NodeBB v4.3 + New Features

Help Files for Standard Libs

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

    2 weeks Linux. Some Things great, really great. But to change to Linux I have to find a solution for the developement enviroment. This is the top discipline of Microsoft. I don't know any better developement enviroment. The QTCreator want be an alternative and ... ok, something is pain in the arse, but acceptable. But two Features very important for me. Maybe, someone knows help.

    The help system works only with QT Stuff. For example. A Function in Linux works different from Windows. The access to the Hard Disks. So I Searched the functionality in internet and found:

    int fd;

    if((fd = open("/dev/hda", O_RDONLY | O_NONBLOCK)) < 0)
    if((fd = open("/dev/sda", O_RDONLY | O_NONBLOCK)) < 0)
    return NULL;

    I want know all, always. So I want help about the open function, especially the first parameter. But if I use F1 over the open() Function I get a small Selection Window about many open from QT Classes, but not from Standard Libraries. I have to go in Internet and search with duckduckgo. Then I inspect some sites until I found the information. That pain in the arse. There are some qch-Files to download outside the qt World ?

    The second is the source browser system. This is one of the top goals of Visual Studio. If the Cursor is over the open() Function I press right mouse button (better is F12) and select "go to declaration". The Source browser opens the Header File with declaration. This functionality is essential for me. I use ist nearly 20 years for inspect source code. I work often with "problem" sources. And if I want a fast overview I have to find the declares fast. Oops, during I write this message I try "Follow Symbol under Cursor". Great, exactly what I need. OK, the second problem is solved.

    jsulmJ JonBJ aha_1980A 3 Replies Last reply
    0
    • T TomBombadill

      2 weeks Linux. Some Things great, really great. But to change to Linux I have to find a solution for the developement enviroment. This is the top discipline of Microsoft. I don't know any better developement enviroment. The QTCreator want be an alternative and ... ok, something is pain in the arse, but acceptable. But two Features very important for me. Maybe, someone knows help.

      The help system works only with QT Stuff. For example. A Function in Linux works different from Windows. The access to the Hard Disks. So I Searched the functionality in internet and found:

      int fd;

      if((fd = open("/dev/hda", O_RDONLY | O_NONBLOCK)) < 0)
      if((fd = open("/dev/sda", O_RDONLY | O_NONBLOCK)) < 0)
      return NULL;

      I want know all, always. So I want help about the open function, especially the first parameter. But if I use F1 over the open() Function I get a small Selection Window about many open from QT Classes, but not from Standard Libraries. I have to go in Internet and search with duckduckgo. Then I inspect some sites until I found the information. That pain in the arse. There are some qch-Files to download outside the qt World ?

      The second is the source browser system. This is one of the top goals of Visual Studio. If the Cursor is over the open() Function I press right mouse button (better is F12) and select "go to declaration". The Source browser opens the Header File with declaration. This functionality is essential for me. I use ist nearly 20 years for inspect source code. I work often with "problem" sources. And if I want a fast overview I have to find the declares fast. Oops, during I write this message I try "Follow Symbol under Cursor". Great, exactly what I need. OK, the second problem is solved.

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @TomBombadill said in Help Files for Standard Libs:

      I have to go in Internet and search with duckduckgo

      The UNIX way to get information are man pages. Enter

      man 2 open
      

      in a terminal.
      See

      man man
      

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      3
      • T TomBombadill

        2 weeks Linux. Some Things great, really great. But to change to Linux I have to find a solution for the developement enviroment. This is the top discipline of Microsoft. I don't know any better developement enviroment. The QTCreator want be an alternative and ... ok, something is pain in the arse, but acceptable. But two Features very important for me. Maybe, someone knows help.

        The help system works only with QT Stuff. For example. A Function in Linux works different from Windows. The access to the Hard Disks. So I Searched the functionality in internet and found:

        int fd;

        if((fd = open("/dev/hda", O_RDONLY | O_NONBLOCK)) < 0)
        if((fd = open("/dev/sda", O_RDONLY | O_NONBLOCK)) < 0)
        return NULL;

        I want know all, always. So I want help about the open function, especially the first parameter. But if I use F1 over the open() Function I get a small Selection Window about many open from QT Classes, but not from Standard Libraries. I have to go in Internet and search with duckduckgo. Then I inspect some sites until I found the information. That pain in the arse. There are some qch-Files to download outside the qt World ?

        The second is the source browser system. This is one of the top goals of Visual Studio. If the Cursor is over the open() Function I press right mouse button (better is F12) and select "go to declaration". The Source browser opens the Header File with declaration. This functionality is essential for me. I use ist nearly 20 years for inspect source code. I work often with "problem" sources. And if I want a fast overview I have to find the declares fast. Oops, during I write this message I try "Follow Symbol under Cursor". Great, exactly what I need. OK, the second problem is solved.

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

        @TomBombadill
        As a general observation about programming with Qt. Although it is possible you may need to go down to man 2 open to achieve what you want, a large part of the point of using Qt is to use Qt's own platform-independent calls instead of platform-specific ones. Why did you feel you needed to use the Linux fd = open() calls here when e.g. QFile::open(QIODevice::ReadOnly | QIODevice::Unbuffered), or other methods of QFile::open(), is available?

        I do understand in this case you are opening a device-specific path, and I don't know what exactly you do with fd after this which may all be Linux-specific, it is just an observation.

        1 Reply Last reply
        2
        • T TomBombadill

          2 weeks Linux. Some Things great, really great. But to change to Linux I have to find a solution for the developement enviroment. This is the top discipline of Microsoft. I don't know any better developement enviroment. The QTCreator want be an alternative and ... ok, something is pain in the arse, but acceptable. But two Features very important for me. Maybe, someone knows help.

          The help system works only with QT Stuff. For example. A Function in Linux works different from Windows. The access to the Hard Disks. So I Searched the functionality in internet and found:

          int fd;

          if((fd = open("/dev/hda", O_RDONLY | O_NONBLOCK)) < 0)
          if((fd = open("/dev/sda", O_RDONLY | O_NONBLOCK)) < 0)
          return NULL;

          I want know all, always. So I want help about the open function, especially the first parameter. But if I use F1 over the open() Function I get a small Selection Window about many open from QT Classes, but not from Standard Libraries. I have to go in Internet and search with duckduckgo. Then I inspect some sites until I found the information. That pain in the arse. There are some qch-Files to download outside the qt World ?

          The second is the source browser system. This is one of the top goals of Visual Studio. If the Cursor is over the open() Function I press right mouse button (better is F12) and select "go to declaration". The Source browser opens the Header File with declaration. This functionality is essential for me. I use ist nearly 20 years for inspect source code. I work often with "problem" sources. And if I want a fast overview I have to find the declares fast. Oops, during I write this message I try "Follow Symbol under Cursor". Great, exactly what I need. OK, the second problem is solved.

          aha_1980A Offline
          aha_1980A Offline
          aha_1980
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Hi @TomBombadill,

          you can register additional documentation in Qt Creator, have a look here: https://wiki.qt.io/Qt_Creator_Documentation_Gallery

          Regards

          Qt has to stay free or it will die.

          1 Reply Last reply
          3
          • T Offline
            T Offline
            TomBombadill
            wrote on last edited by
            #5

            jsulm: I'm surprised that the "man" Command works for Developers stuff. I work only since 2 weeks with Linux. I think it is not the last suprise and the last difference to Windows. Thanks.

            JonB: You wonder that I'm not use QFile::open(). In this case, because I don't know that I can use. And the second time because I need Information about the Hard Disks. But anyway, I like Qt, but sometimes I use other Libs, especially if another Standard involved. For example. I never use the Qt Container Classes QList, QVector a.s.o. . But in this case I dont' know that I can use QFile. Thanks for your help.

            aha_1980: Thanks, you can be sure that I use this Link immediately after I reply.

            And sorry, maybe one Question more. Where I can get a list for information in wich Paket is which File. In moment I write the control file for deployment and want find out the dependencies. My project use a lot of dependencies. If I search like "libstdc++ which paket" the information not clear. Sure I can look to the properties and see the Filename libstdc++.so.6.0.25. With this information I can combine "Depends: libstdc++6 (>=6.0.25)". But my list is long (32 Dependencies). Is there a list (in internet or wherever) where I can find wich package I need for wich Dependency ?

            jsulmJ 1 Reply Last reply
            0
            • T TomBombadill

              jsulm: I'm surprised that the "man" Command works for Developers stuff. I work only since 2 weeks with Linux. I think it is not the last suprise and the last difference to Windows. Thanks.

              JonB: You wonder that I'm not use QFile::open(). In this case, because I don't know that I can use. And the second time because I need Information about the Hard Disks. But anyway, I like Qt, but sometimes I use other Libs, especially if another Standard involved. For example. I never use the Qt Container Classes QList, QVector a.s.o. . But in this case I dont' know that I can use QFile. Thanks for your help.

              aha_1980: Thanks, you can be sure that I use this Link immediately after I reply.

              And sorry, maybe one Question more. Where I can get a list for information in wich Paket is which File. In moment I write the control file for deployment and want find out the dependencies. My project use a lot of dependencies. If I search like "libstdc++ which paket" the information not clear. Sure I can look to the properties and see the Filename libstdc++.so.6.0.25. With this information I can combine "Depends: libstdc++6 (>=6.0.25)". But my list is long (32 Dependencies). Is there a list (in internet or wherever) where I can find wich package I need for wich Dependency ?

              jsulmJ Offline
              jsulmJ Offline
              jsulm
              Lifetime Qt Champion
              wrote on last edited by
              #6

              @TomBombadill said in Help Files for Standard Libs:

              where I can find wich package I need for wich Dependency

              Depends on the Linux distribution you're using.
              If you use a Linux distribution which uses apt you can check https://askubuntu.com/questions/481/how-do-i-find-the-package-that-provides-a-file

              https://forum.qt.io/topic/113070/qt-code-of-conduct

              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