Is there any solution to embed a QLabel in QStatusBar using Qt Designer?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I don’t believe so. It’s fairly simple to add one programmatically, though.
If you’re just wanting to show a message, you could use:
statusBar()->showMessage(tr("Message Here"));, or alternatively if you really needed a QLabel on the status bar, you could do something along the lines of:labelwould become a child ofstatusBar(), and appear in the first empty spot from the bottom left (addPermanentWidget(label)would add it to the first empty spot from the bottom right). If you placeQLabel labelin the classes header (or other var name), you’d be able to access the variable directly later (removing the initialQLabeltype from the first line, of course).