Results 1 to 2 of 2

Thread: how to implement QDialog StatusBar

  1. #1
    Join Date
    May 2009
    Posts
    83

    Default how to implement QDialog StatusBar

    i have QDialog that is heavily designed with QDesigner , i saw on the web that i could add QStatusBar with code like this :
    http://www.qtcentre.org/threads/10593-QDialog-StatusBar

    ts not even working in my case .. maybe the QDialog is already have few layets that holds widget . my question is can i some how use palceholder in the QDesigner or somehow promote widget that place hold the QStatusbar class i don’t know … what can i do in such case? can i implement new QStatusbar?
    Thanks

  2. #2
    Join Date
    Mar 2011
    Location
    Hyderabad, India
    Posts
    1,882
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows
    Thanks
    3
    Thanked 453 Times in 435 Posts
    Wiki edits
    15

    Default Re: how to implement QDialog StatusBar

    ts not even working in my case .. maybe the QDialog is already have few layets that holds widget
    What is not working, post a sample how you did. I know the referred post, but someone can help you only if you give some information about what you did. What you tried, which part is not working etc.

    my question is can i some how use palceholder in the QDesigner or somehow promote widget that place hold the QStatusbar class i don’t know … what can i do in such case? can i implement new QStatusbar?
    I suspect that it may not be possible to promote a QWidget to a in built type (QStatusBar in your case), using QtDesigner.
    What you can do is, place a place holder QWidget in QtDesigner, and access this QWidget from your code and place a QStatusBar in side it as a child widget (using a QLayout). Then use
    QStatusBar::clearMessage () and QStatusBar::showMessage () (either connect some signal, or directly call them) to display your status messages.

    finally here is the code, showing what I mean CustomStatusBar.zip

Similar Threads

  1. Replies: 9
    Last Post: 25th March 2011, 22:22
  2. QDialog.exec() exiting without calling QDialog::accept()
    By doggrant in forum Qt Programming
    Replies: 3
    Last Post: 2nd February 2011, 12:35
  3. Replies: 1
    Last Post: 28th December 2010, 10:43
  4. QDialog StatusBar
    By skuda in forum Qt Programming
    Replies: 5
    Last Post: 16th July 2010, 02:07
  5. statusbar
    By bhogasena in forum Qt Programming
    Replies: 7
    Last Post: 3rd February 2009, 15:54

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.