Can I get access to "MainWindow.caption"?

Can I get access to "MainWindow.caption"?

In new version?

Comments

  • rbtwhizrbtwhiz Posts: 2,171
    edited December 1969

    The caption property on the global MainWindow object, a wrapper for the QWidget::caption() and QWidget::setCaption() functions in Qt 3 (and the Qt 3 support library in Qt 4 - which is expected to be obsolete in Qt 5), is replaced by the windowTitle property in Qt 4.

    Use the following to read the value...

    print( MainWindow.windowTitle );
    ... and the following to set it ...
    MainWindow.windowTitle = "foo";


    - Rob
Sign In or Register to comment.