Eem... what is the problem? You know how to use loops, right?
No, there is no such thing in C++. QObject is a very specific class.And what exactly is QObject, is it a general-purpose object for OOP?
I don't see any "addChild()" method in QObject. But even if it was there, it would only establish a parent-child relationship between existing objects.Does addChild() create a new object and can I acess it and change-add its value?
QObject::objectName()Can I give the child a name that can be acessed anywhere?
You mean widgets? Then you need to read about layouts (QLayout and family) as well.I actually want to make several boxes across the screen and give each one several values, such as heigth, width, name, image and be able to receive events from them, ex: click , doubleclick , hover, etc.
Bookmarks