You have a problem with C++ base not with Qt. Look at this two definitions of class MyClass
class MyClass
{
......
private:
}
class MyClass
{
......
private:
QLineEdit line_edit;
}
To copy to clipboard, switch view to plain text mode
and
class MyClass
{
......
public:
}
class MyClass
{
......
public:
QLineEdit line_edit;
}
To copy to clipboard, switch view to plain text mode
In first example with code
MyClas my_class;
QString text
= my_class.
line_edit.
text();
MyClas my_class;
QString text = my_class.line_edit.text();
To copy to clipboard, switch view to plain text mode
compiler generate error "lineEdit is private". In second definition of MyClass all is OK.
Just read some C++ tutorials about public, private and protected members.
Bookmarks