S
S
sabn1k2016-02-15 18:33:10
Qt
sabn1k, 2016-02-15 18:33:10

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
d8dc2022178d4e8a84335c6505478fe9.png
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

3 answer(s)
V
Vitaly, 2016-02-15
@vt4a2h

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 .

R
res2001, 2016-02-15
@res2001

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".

S
sabn1k, 2016-02-16
@sabn1k

Is it just me, or is Schlee's book on Qt as difficult for "beginners" as Stroustrup's C++ book for "beginners"?
Okay, I don't care that Summerfield has Qt4, but at least he explains it better. I'll go read it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question