[Paraview-developers] [EXTERNAL] Re: qDialog question

Scott, W Alan wascott at sandia.gov
Mon Aug 13 20:10:40 EDT 2012


Perfect!  Thanks.

Alan

-----Original Message-----
From: Yumin Yuan [mailto:yumin.yuan at kitware.com] 
Sent: Monday, August 13, 2012 5:03 PM
To: Scott, W Alan
Cc: paraview-developers at paraview.org
Subject: [EXTERNAL] Re: [Paraview-developers] qDialog question

Normally you can add "myPresetEntriesWidget->scrollToTop()" after the entries are populated if myPresetEntriesWidget is QAbstractItemView.

In actual Paraview's source, adding one line of code will do the trick:

void pqColorPresetManager::showEvent(QShowEvent *e) {

  ...

  // Add this line at the end.
  this->Form->Gradients->scrollToTop();
}


Yumin

On Mon, Aug 13, 2012 at 6:40 PM, Scott, W Alan <wascott at sandia.gov> wrote:
> I have a qDialog in ParaView (Color Scale Editor, Choose Preset) that 
> should open displaying the top entries, but starts with the bottom 
> entries.  In other words, if there are 100 entries in the preset table 
> and the window is
> 10 entries in size, it currently opens from 91-100.  I want it open 
> with entry 1-10.
>
> How is this done?
>
> Thanks,
>
> Alan
>
>
>
>
> _______________________________________________
> Paraview-developers mailing list
> Paraview-developers at paraview.org
> http://public.kitware.com/mailman/listinfo/paraview-developers
>




More information about the Paraview-developers mailing list