[BUG?] containerextension - designer's plugin example is broken
-
I'm talking about this example:
http://qt-project.org/doc/qt-4.8/designer-containerextension.html that you can find here: "%QT_DIR%\examples\designer\containerextension"
!http://qt-project.org/doc/qt-4.8/images/containerextension-example.png(containerextension-example.png)!
I'm wondering if I'm not using this widget correctly or if it's a bug.Steps to reproduce:
add MultiPageWidget in your project with designer
change page title
compile and start your application
-> the page title is lost, label is defaulting to "Page 1"
!http://i1069.photobucket.com/albums/u466/neF4ST/Sanstitre.png(result)!
After inspection of the moc, the title is saved in the windowTitle property.
Pages are inserted in the setupUI() call, but at that point the windowTitle has not yet been set. Hence the title is lost. -
Hi, I am working on the same example. How did you:
- add MultiPageWidget in your project with designer ??
I have been trying to add this example via compiling it in qtcreator and then installing it (make install).
Then when I load up qtcreator and check 'tools -> form editor -> about QT Designer Plugins' I'm informed that the plugin could not be loaded as it 'uses an incompatible library (5.3 release)'.
<edit> I've just seen that you are using QT 4.8. I think the plugin system has changed with 5.3 but the example hasn't been updated, although I am not sure.
I am coding in that same build environment, but the plugin is never shown in QTDesigners window.
-
try this page on the QT Property system:
http://qt-project.org/doc/qt-5/properties.html
note that there is a 4.8 version of the same page.
in multipagewidget.h
check line 57
Q_PROPERTY(QString pageTitle READ pageTitle WRITE setPageTitle STORED false)
perhaps manipulate the value of STORED to true?
although I haven't read the above page in full yet.