Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

6
  • 1
    @Jpalecek: Yet a lot are not. The point being made is that Qt uses namespaces extensively. Commented Aug 2, 2010 at 16:30
  • @Martin York: I did a nm -DC /usr/lib/libQtCore.so on my Debian system, and looked for names not in the global namespace. There are none, the same applies for libQtGui.so and libQtNetwork.so. This is not what I call "extensive use". In fact, Qt API contains very few namespaces in rather secondary areas, plus there are some namespaces as implementation details. Commented Aug 3, 2010 at 1:11
  • 1
    @jpalecek: Check out the documentation: cep.xor.aps.anl.gov/software/qt4-x11-4.2.2-browser/d8/d50/… Commented Aug 3, 2010 at 1:16
  • @Martin York: Yes, this is a single namespace used for constants. Basically, you won't come across a different namespace when using Qt regularly. This doesn't constitute extensive use, especially when the global namespace is still polluted with names like QTextBox and qSort (note the Q plain-old-prefix-seminamespace). Commented Aug 3, 2010 at 1:25
  • 1
    @jpalecek: Your attempt to twist the meaning of extensive is just silly: encarta.msn.com/dictionary_1861609950/extensive.html QT is mostly within namespace (cep.xor.aps.anl.gov/software/qt4-x11-4.2.2-browser/…) (thus the use is extensive (as in broad of scope)). You are obviously confusing C runtime qsort (in the global namespace) with qSort from QT which is not in the global namespace (as linked to by the documentation you provided). QtextEdit does seem to be in the global namespace but I am not sure how you justify that making the usage less extensive. Commented Aug 3, 2010 at 11:39