[Solved] QFrame not showing up
I have a UI form called MonitorWindow. In its constructor, I instantiate a QWidget class called StatusBar. See the constructor code below:
- ui(new Ui::MonitorWindow)
- {
- ui->setupUi(this);
- StatusBar *statusBar = new StatusBar(this);
- }
Then, in the constructor for StatusBar, I set up the QFrame as folows:
- {
- statusFrame->setLineWidth(1);
- statusFrame->resize(300, 42);
- statusFrame->move(0, 20);
- }
My MainWindow UI shows up with the other objects on it, but StatusBar doesn’t show up at all. What am I doing wrong?
3 replies
You must log in to post a reply. Not a member yet? Register here!


