Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 1

Qt-interest Archive, February 2007
How to invoke a dialog for a custom plugin to get the input properties


Message 1 in thread

Hi,

I am using a QT 3.3.5 for my development

I am creating a custom plugin to for my application. I want to know how 
to invoke a dialog in the designer to take some input values. Currently 
I am using the property editor in the designer to take the  inputs but 
it is very exhausting process.Can anyone please let me know how to 
create a dialog to get the values from the user in the  QT designer.

I will give you a example

1. Lets take the list view. When I RIGHT clicking  and select the  
"edit" in the context menu of the list view in the designer. I get a new 
dialog where I can edit the values of the header etc..
2. When we click the "what is this" property we get an editor to enter 
the values for the "what is this" property in the property editor window 
for any widget.


I want to do a similar dialog for my custom plugin.

I have seen some docs in 4.0 and above where I can create this very 
easily .But I  want to do this in 3.3.5 version and want to know how to 
do it. I dont want to shift to another version for developing this.

-- 
 [ signature omitted ] 

Message 2 in thread

On 31.01.07 19:02:46, Srikanth Bemineni wrote:
> I want to do a similar dialog for my custom plugin.
> 
> I have seen some docs in 4.0 and above where I can create this very easily .But 
> I  want to do this in 3.3.5 version and want to know how to do it. I dont want 
> to shift to another version for developing this.

Well, I'm not a designer expert, but I don't think this is possible with
Qt3.3 without changing designers code. Thats why its not documented and
you can only find information about Qt4 supporting these things.

Andreas

-- 
 [ signature omitted ] 

Message 3 in thread

Hi,

I am using a QT 3.3.5 for my development

I am creating a custom plugin to for my application. I want to know how 
to invoke a dialog in the designer to take some input values. Currently 
I am using the property editor in the designer to take the  inputs but 
it is very exhausting process.Can anyone please let me know how to 
create a dialog to get the values from the user in the  QT designer.

I will give you a example

1. Lets take the list view. When I RIGHT clicking  and select the  
"edit" in the context menu of the list view in the designer. I get a new 
dialog where I can edit the values of the header etc..
2. When we click the "what is this" property we get an editor to enter 
the values for the "what is this" property in the property editor window 
for any widget.


I want to do a similar dialog for my custom plugin.

I have seen some docs in 4.0 and above where I can create this very 
easily .But I  want to do this in 3.3.5 version and want to know how to 
do it. I dont want to shift to another version for developing this.

-- 
 [ signature omitted ] 

Message 4 in thread

> Hi,
>
> I am using a QT 3.3.5 for my development
>
> I am creating a custom plugin to for my application. I want to know 
> how to invoke a dialog in the designer to take some input values. 
> Currently I am using the property editor in the designer to take the  
> inputs but it is very exhausting process.Can anyone please let me know 
> how to create a dialog to get the values from the user in the  QT 
> designer.
>
> I will give you a example
>
> 1. Lets take the list view. When I RIGHT clicking  and select the  
> "edit" in the context menu of the list view in the designer. I get a 
> new dialog where I can edit the values of the header etc..
> 2. When we click the "what is this" property we get an editor to enter 
> the values for the "what is this" property in the property editor 
> window for any widget.
>
>
> I want to do a similar dialog for my custom plugin.
>
> I have seen some docs in 4.0 and above where I can create this very 
> easily .But I  want to do this in 3.3.5 version and want to know how 
> to do it. I dont want to shift to another version for developing this.
>


-- 
 [ signature omitted ] 

Message 5 in thread

Hi,

I am posting this question for the thrid time. Can some body answer this 
at least the trolltech guys.

I need to store the property in the ui that I obtain from the user for 
the custom plugin. For this I need to create a edit dialog which should 
be created in a similar manner as QListview and QTable header edit 
dialog and I should be able to store the property values in the UI file 
after the user enters it.

Srikanth Bemineni wrote:
>
>> Hi,
>>
>> I am using a QT 3.3.5 for my development
>>
>> I am creating a custom plugin to for my application. I want to know 
>> how to invoke a dialog in the designer to take some input values. 
>> Currently I am using the property editor in the designer to take the  
>> inputs but it is very exhausting process.Can anyone please let me 
>> know how to create a dialog to get the values from the user in the  
>> QT designer.
>>
>> I will give you a example
>>
>> 1. Lets take the list view. When I RIGHT clicking  and select the  
>> "edit" in the context menu of the list view in the designer. I get a 
>> new dialog where I can edit the values of the header etc..
>> 2. When we click the "what is this" property we get an editor to 
>> enter the values for the "what is this" property in the property 
>> editor window for any widget.
>>
>>
>> I want to do a similar dialog for my custom plugin.
>>
>> I have seen some docs in 4.0 and above where I can create this very 
>> easily .But I  want to do this in 3.3.5 version and want to know how 
>> to do it. I dont want to shift to another version for developing this.
>>
>
>


-- 
 [ signature omitted ] 

Message 6 in thread

Hi,

I am posting this question for the thrid time. Can some body answer this 
at least the trolltech guys.

I need to store the property in the ui that I obtain from the user for 
the custom plugin. For this I need to create a edit dialog which should 
be created in a similar manner as QListview and QTable header edit 
dialog and I should be able to store the property values in the UI file 
after the user enters it.

Srikanth Bemineni wrote:

> Hi,
>
> I am using a QT 3.3.5 for my development
>
> I am creating a custom plugin to for my application. I want to know 
> how to invoke a dialog in the designer to take some input values. 
> Currently I am using the property editor in the designer to take the  
> inputs but it is very exhausting process.Can anyone please let me know 
> how to create a dialog to get the values from the user in the  QT 
> designer.
>
> I will give you a example
>
> 1. Lets take the list view. When I RIGHT clicking  and select the  
> "edit" in the context menu of the list view in the designer. I get a 
> new dialog where I can edit the values of the header etc..
> 2. When we click the "what is this" property we get an editor to enter 
> the values for the "what is this" property in the property editor 
> window for any widget.
>
>
> I want to do a similar dialog for my custom plugin.
>
> I have seen some docs in 4.0 and above where I can create this very 
> easily .But I  want to do this in 3.3.5 version and want to know how 
> to do it. I dont want to shift to another version for developing this.
>

-- 
 [ signature omitted ] 

Message 7 in thread

Srikanth Bemineni wrote:
> Hi,
>
> I am posting this question for the thrid time. Can some body answer 
> this at least the trolltech guys.
>
> I need to store the property in the ui that I obtain from the user for 
> the custom plugin. For this I need to create a edit dialog which 
> should be created in a similar manner as QListview and QTable header 
> edit dialog and I should be able to store the property values in the 
> UI file after the user enters it.

Srikanth,

This is not possible in Qt3  Designer and is barely possible in Qt4 via 
the QDesignerTaskMenuExtension.  However, you still not be able to 
save/load/generate code for things that are not a Q_PROPERTY without 
using the undocumented QDesignerExtraInfoExtension. This still will not 
all you to generate code from the extra saved info.....  This feature 
may be implemented in some future version of Qt4 when the 
QDesignerCustomWidgetINterface::codeTemplate() is called by uic.

For guaranteed responses please send email to support@xxxxxxxxxxxxxx  
Any Trolltech employees that monitor this list are doing so on their own 
time.  This list is not an "official" support venue for licensees.

--Justin


begin:vcard
begin:vcard
fn:Justin Noel
n:Noel;Justin
org:ICS;Engineering
adr:;;54B Middlesex Trpk;Bedford;MA;01730;USA
email;internet:justin@xxxxxxx
title:Sr. Consulting Engineer / Certified Qt Instructor
tel;work:(617) 621-0060
url:http://www.ics.com
version:2.1
end:vcard