Answer the question
In order to leave comments, you need to log in
Where can I find the class constructor?
I am still surprised that Max Schlee's book is for beginners ..
Actually, the section begins with this
Where can I get this constructor? Why did he start with this? How to achieve the same "similar result" about which it is written below?
Answer the question
In order to leave comments, you need to log in
Without understanding OOP in C ++, at least the basics, there is nothing to do in the Qt world at all. No knowledge of OOP and basic knowledge of the language - you will never master Qt.
I think that somewhere in Schlee's book it says that you should understand OOP, although I'm not sure. So the book is not needed: examples + documentation + forums - that's enough.
Answering your question, the methods can be found here: https://doc.qt.io/qt-5/qwidget.html .
Apparently something like this:
Wdiget *w = new Widget(Qt::Window | Qt::WindowTitleHint | Qt:WindowStaysOnTopHint);
In general, first read something in pure C ++ without Qt admixture. They write about such things there - where to look for a constructor, how to use it, how and why to write it, as well as many other interesting things.
Buy Stroustrup's book "The C++ Programming Language".
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question