Results 1 to 3 of 3

Thread: Custom Plug-in shows but layout is messed up

  1. #1
    Join Date
    Mar 2007
    Posts
    74
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Custom Plug-in shows but layout is messed up

    I am using QT4.3 under Windows.

    I have built a QT Designer plug-in which for the moment is very basic.
    It's just a slider in a groupbox in the middle of a form with a grid layout applied.

    From within QT designer the form previews correctly and resizes as it should

    I now have taken this .ui file and it is the basis for my plug-in.
    My plug-in class calls the setupUi() for this ui file.

    I copy the necessary files to the plug-in directory.
    When I start QT Designer I see my plug-in.

    If I now pull it onto a blank form, my slider doesn't even show up and the groupbox is only a small little rectangle up at the top. Resizing doesn't help.
    It's also created with a minimum size of 16,16 which I did not specify when I created the .ui file.

    I have not seen any examples where plug-ins were created using a .ui file as the base for the UI controls. They always seem to be coded.

    Any ideas?


    Thanks!

  2. #2
    Join Date
    Feb 2006
    Location
    Romania
    Posts
    2,744
    Thanks
    8
    Thanked 541 Times in 521 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Custom Plug-in shows but layout is messed up

    Could you post the UI file?
    Seems like you forgot to apply some layout(s).

    Regards

  3. #3
    Join Date
    Mar 2007
    Posts
    74
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Custom Plug-in shows but layout is messed up

    Here's the UI file. It previews fine in QT Designer.
    Attached Files Attached Files

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.