Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. [BUG?] containerextension - designer's plugin example is broken
QtWS25 Last Chance

[BUG?] containerextension - designer's plugin example is broken

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 1.3k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    JulienMaille
    wrote on last edited by
    #1

    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.

    1 Reply Last reply
    0
    • M Offline
      M Offline
      millerthegorilla
      wrote on last edited by
      #2

      Hi, I am working on the same example. How did you:

      1. 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.

      1 Reply Last reply
      0
      • M Offline
        M Offline
        millerthegorilla
        wrote on last edited by
        #3

        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.

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved