[Paraview] Custom Filter Panel Not loading in PV3 CVS
Mike Jackson
imikejackson at gmail.com
Tue Mar 25 15:27:39 EDT 2008
THANKS!! Copy-paste will ya every time. I will take a look at the
pqNamedObjectPanel instead as I thought my .ui file was being uic'ed
for me, but I guess not.
Thanks again for the help. I must have looked at that code a dozen
times and it all looked fine..
Have a great day.
--
Mike Jackson Senior Research Engineer
Innovative Management & Technology Services
On Mar 25, 2008, at 3:16 PM, Clinton Stimpson wrote:
>
> It could be that you're not referencing the .ui file correctly in
> your pqLoadedFormPanel subclass. Or that the ui file isn't being
> added to a Qt resource file.
>
> You might prefer deriving from pqNamedObjectPanel instead, so he UI
> gets generated and compiled in, rather than generated at run time
> with extra possible reasons if it doesn't work. You can look at
> pqExodusIIPanel as an example. You might find it a bit simpler to
> do something like this
>
> #include "ui_MyPanel.h"
>
> class MyPanel : public pqNamedObjectPanel, protected Ui::MyPanel
> {
> ...
> };
>
> MyPanel::MyPanel(..)
> {
> this->setupUi(this);
> ...
> }
>
> Clint
>
> Mike Jackson wrote:
>> I am writing a custom panel for my filter. I am deriving from
>> pqLoadedFormPanel. I have created the .ui file in QtDesigner and
>> created the xml files for SM and Client side. Everything compiles
>> and I manually load the plugin. When I invoke the filter my custom
>> panel does NOT show up. In fact nothing shows up. Not even the
>> default panel what was being generated for me before I went to a
>> custom panel. I put a simple print statement in the constructor of
>> my custom panel and that is getting printed out when I select my
>> filter from the menu so we get at least that far. Just nothing
>> shows up. I have looked at my previous code for a custom panel for
>> a reader which works fine and I am not seeing what the difference
>> might be. I know it could be any of a dozen things that don't seem
>> to match up but might someone be able to point me in the right
>> direction on what to double check in my code.
>>
>> If anyone wants the code to look at, just ask and I will tar it up
>> and send it out.
>>
>> Thanks for any help on this.
>> --
>> Mike Jackson
>> imikejackson & gmail * com
>>
>>
>>
>>
>> _______________________________________________
>> ParaView mailing list
>> ParaView at paraview.org
>> http://www.paraview.org/mailman/listinfo/paraview
>
More information about the ParaView
mailing list