Where is a complete description of QDialog?
-
I managed, with significant help, to write a simple app that creates and displays a second dialog, and now want to control the size and position of that dialog. A search returned this page:
link text
The text of the link is:
https://doc.qt.io/qt-6/qdialog.htmlThe URL looks like it is part of the official Qt documentation. But it is quite incomplete. For example, search for the text show and the method QDialog.show() is not described. Search for the word size and it is found 31 times, but not in a method used to set the size. The word position is in the text, but no method. Same for location.
And yes, I did a couple of searches within these forums and did not recognize an answer.
My request is for someone to provide a link to a web page that lists the functions available for QDialog?
-
@Bryan-Kelly said in Where is a complete description of QDialog?:
For example, search for the text show and the method QDialog.show() is not described
Since show() is implemented in QWidget (and QDialog is derived from QWidget) you have to look there. You can find all functions of QDialog at https://doc.qt.io/qt-6/qdialog-members.html
-
@Christian-Ehrlicher Quick reply. Looking there. Thank you for your time.
Edit: If I may, do you know of a search phrase that will return that URL in the list of responses? Preferably one that produces it near the top of the list. And what search engine do you suggest?
Edit: I started with that URL and changed qdialog to qlist and the expected page was presented. The concept will be helpful.
Thank you
-
-
This is valid for all Qt classes:
Go to their documentation page (like you did) and click there:
Since functions like
show()
don't belong toQDialog
directly, but are inherited fromQWidget
(becauseQDialog
is one), they are not shown in theQDialog
documentation (again). -
I have been advised that Qt classes cannot be build using C++ "inheritance".
With similar attitude - I have been told that there is no way to graphically show project object hierarchy.Inheritance IS C++ native feature , this post clearly demonstrates it is part of Qt concept.
This post also demonstrates that it would be beneficial to have such a tool to show such relations.
End of irrelevant , expecting to be put-down for it or ignored rant
-
@AnneRanch I agree with you completely. Your post, in my not so humble opinion, is not a rant.
It is a valid request. Thanks for your comment.