How can i get pointer on the widget of current tab in QTabWidget?
How can i get pointer on the widget of current tab in QTabWidget?
Advance many thanks fro help!
11 replies
QTabWidget::currentWidget() [doc.qt.nokia.com]
Wow do you read the doc??.. [doc.qt.nokia.com]
A bit hard to see what’s wrong from just those four lines of code.
I assume qssTextEdit is a QPlainTextEdit subclass?
And that you haven’t added any other tabs?
You could always check what tabWidget->currentWidget() actually returns, using a debugger or some form of debug output, e.g. by printing what tabWidget->currentWidget()->metaObject()->className() returns.
You must log in to post a reply. Not a member yet? Register here!




