You are not logged in.

Raniz

Beginner

  • "Raniz" is male
  • "Raniz" started this thread

Posts: 12

Location: Sweden

  • Send private message

1

Thursday, April 15th 2004, 2:26pm

Removing that statusbar [solved]

QT Designer automaticly creates a statusbar for me, and I don't wan't one.

So how do I get rid of it?
I can remove the call to (void)statusBar(); in the generated .cpp file, but then I'll have to do that everytime I change the layout.

I've looked at the properties for my main window but I can't see any option for turning off the statusbar there.

Any ideas?

This post has been edited 1 times, last edit by "Raniz" (Apr 16th 2004, 12:14pm)


axeljaeger

Professional

  • "axeljaeger" is male

Posts: 730

Location: Frankfurt Germany

Occupation: Student

  • Send private message

2

Thursday, April 15th 2004, 4:52pm

You can hide it in your implemenation
It's nice to be important but it's more important to be nice

3

Thursday, April 15th 2004, 5:53pm

maybe you have a property in qtdesigner to hide this statusbar....
/Benjamin:/
French Debian testing user
QT/KDE tiny coder
Wiki code library

e8johan

Professional

  • "e8johan" is male

Posts: 1,195

Location: Sweden

  • Send private message

4

Friday, April 16th 2004, 6:20am

I seem to recall that there is an option to have (or not to have) a statusbar in the wizard used to create a mainwindow.

Raniz

Beginner

  • "Raniz" is male
  • "Raniz" started this thread

Posts: 12

Location: Sweden

  • Send private message

5

Friday, April 16th 2004, 11:28am

Quoted

Originally posted by axeljaeger
You can hide it in your implemenation

Could you give an example?

Quoted

Originally posted by e8johan
I seem to recall that there is an option to have (or not to have) a statusbar in the wizard used to create a mainwindow.

Nope :(
And I haven't found anything in the properties either...

Perhaps it's not implemented in QT Designer?

This post has been edited 1 times, last edit by "Raniz" (Apr 16th 2004, 11:30am)


e8johan

Professional

  • "e8johan" is male

Posts: 1,195

Location: Sweden

  • Send private message

6

Friday, April 16th 2004, 11:58am

Have you seen my reply to this issue at bbs.linux.se (in Swedish - sorry) http://bbs.linux.se/viewtopic.php?t=15790 .

Raniz

Beginner

  • "Raniz" is male
  • "Raniz" started this thread

Posts: 12

Location: Sweden

  • Send private message

7

Friday, April 16th 2004, 12:12pm

Yup, that did it!

For everyone not speaking swedish, this was the solution:

including <qstatusbar.h> in my .ui.h file and then calling statusBar()->hide() in my init() method.

e8johan

Professional

  • "e8johan" is male

Posts: 1,195

Location: Sweden

  • Send private message

8

Friday, April 16th 2004, 5:23pm

Quoted

Originally posted by Raniz
Yup, that did it!

For everyone not speaking swedish, this was the solution:

including <qstatusbar.h> in my .ui.h file and then calling statusBar()->hide() in my init() method.


The problem was that the QStatusBar class only is forward declared in the qmainwindow header. To access its members the full declaration is needed and it is the the qstatusbas header.

auctmore

Beginner

  • "auctmore" is male

Posts: 4

Location: Belgium

Occupation: ICT teacher

  • Send private message

9

Saturday, October 2nd 2004, 6:18pm

Quoted

Originally posted by e8johan
I seem to recall that there is an option to have (or not to have) a statusbar in the wizard used to create a mainwindow.

In v3.3.3 that wizard only has a number of options for the menubar, none whatsoever for the statusbar.
Teachers are in a class by themselves

10

Wednesday, September 21st 2016, 3:39pm

You can delete it in object inspector

In the top-right corener of QT editor, there is the 'object inspector'. You delete the status bar or menu bar from there.