Hello, I just started with QT, and trying to change labeltexts from a class.
In the main function I have this;
Linc lc; //window classthingy
lc.show()
Cly cl; //My classthingy
cl.init()
Linc lc; //window classthingy
lc.show()
Cly cl; //My classthingy
cl.init()
To copy to clipboard, switch view to plain text mode
in Cly::init() i have this;
{
Linc lin;
lin.gui.label->setText("Blabla");
}
{
Linc lin;
lin.gui.label->setText("Blabla");
}
To copy to clipboard, switch view to plain text mode
Which dont work, but if I take this;
lc.gui.label->setText("Blabla");
lc.gui.label->setText("Blabla");
To copy to clipboard, switch view to plain text mode
Into the main function,instead of Cly cl; cl.init() then it works!
Anyone got any solutions to this matter?
Im not sure if this is the right thread, it says 'Newbie' so I figured why not;p
Bookmarks