[Qt-interest] QLineEdit signal

Ankit Agarwal ankit17.ag at gmail.com
Thu Mar 26 10:21:16 CET 2009


Its a python code. I m not sure as I am not familiar with python. So, it
shall be hard for me to tell what the problem is. But logically,
reimplementing the focisInEvet should solve ur problem.
Sorry for not being able to help you with the python codes.

2009/3/26 NARCISO, Rui <RUI.NARCISO at airbus.com>

>  Apparently not...
> I'm getting the following error on the line just after the creation of
> MyQLineEdit (self.path = MyQLineEdit(self)   )
>
> Traceback (most recent call last):
>
> File
> "/home/cfdqdv2/to96665/TOOLS/EGADYT/integration/Version_0.9.4/CampaignManager/MainWindow.py",
> line 302, in addCalculationMenu
>
> diag = AddCalculationDlg(self, self.statusList)
>
> File
> "/home/cfdqdv2/to96665/TOOLS/EGADYT/integration/Version_0.9.4/CampaignManager/AddCalculationDialog.py",
> line 36, in __init__
>
> layout.addWidget(self.path, 3,1)
>
> RuntimeError: underlying C/C++ object has been deleted
>
> -----Message d'origine-----
> *De :* Ankit Agarwal [mailto:ankit17.ag at gmail.com]
> *Envoyé :* jeudi 26 mars 2009 10:09
>
> *À :* NARCISO, Rui
> *Cc :* Qt Interest (E-mail)
> *Objet :* Re: [Qt-interest] QLineEdit signal
>
> I think so. Just try it out once.
>
> 2009/3/26 NARCISO, Rui <RUI.NARCISO at airbus.com>
>
>>  Would the following implementation suffice ??
>>
>> class MyQLineEdit (QLineEdit):
>>
>>     def __init__(self, parent=None):
>>
>>         QLineEdit.__init__(parent)
>>
>>     def focusInEvent(self, event):
>>
>>         self.emit(SIGNAL('clicked()'))
>> or am i missing something ?
>>
>>
>> -----Message d'origine-----
>> *De :* Ankit Agarwal [mailto:ankit17.ag at gmail.com]
>> *Envoyé :* jeudi 26 mars 2009 09:56
>> *À :* NARCISO, Rui
>> *Cc :* Qt Interest (E-mail)
>> *Objet :* Re: [Qt-interest] QLineEdit signal
>>
>>  I do not think that thers a signal for what you require but you can get
>> it dont if you sub-class the QLineEdit and reimplement its focusInEvent().
>>
>> On Thu, Mar 26, 2009 at 2:20 PM, NARCISO, Rui <RUI.NARCISO at airbus.com>wrote:
>>
>>>
>>> Is there a signal emitted by a QLineEdit whenever it is clicked ?
>>>
>>> I want a pop-up to appear whenever a user clicks on the QLineEdit without
>>> even letting him input any text into it ...
>>>
>>> Is this possible ?
>>>
>>> Rui
>>>
>>> The information in this e-mail is confidential. The contents may not be
>>> disclosed or used by anyone other then the addressee. Access to this e-mail
>>> by anyone else is unauthorised.
>>> If you are not the intended recipient, please notify Airbus immediately
>>> and delete this e-mail.
>>> Airbus cannot accept any responsibility for the accuracy or completeness
>>> of this e-mail as it has been sent over public networks. If you have any
>>> concerns over the content of this message or its Accuracy or Integrity,
>>> please contact Airbus immediately.
>>> All outgoing e-mails from Airbus are checked using regularly updated
>>> virus scanning software but you should take whatever measures you deem to be
>>> appropriate to ensure that this message and any attachments are virus free.
>>>
>>>
>>> _______________________________________________
>>> Qt-interest mailing list
>>> Qt-interest at trolltech.com
>>> http://lists.trolltech.com/mailman/listinfo/qt-interest
>>>
>>
>>
>>
>> --
>> Regards,
>> Ankit Agarwal
>> SW Engineer
>> Vegayan Systems
>> email : ankit_agarwal at vegayan.com
>> Blog : http://ankit17.wordpress.com
>>
>> This mail has originated outside your organization, either from an external partner or the Global Internet.
>> Keep this in mind if you answer this message.
>>
>>
>> The information in this e-mail is confidential. The contents may not be disclosed or used by anyone other then the addressee. Access to this e-mail by anyone else is unauthorised.
>> If you are not the intended recipient, please notify Airbus immediately and delete this e-mail.
>> Airbus cannot accept any responsibility for the accuracy or completeness of this e-mail as it has been sent over public networks. If you have any concerns over the content of this message or its Accuracy or Integrity, please contact Airbus immediately.
>> All outgoing e-mails from Airbus are checked using regularly updated virus scanning software but you should take whatever measures you deem to be appropriate to ensure that this message and any attachments are virus free.
>>
>>
>> _______________________________________________
>> Qt-interest mailing list
>> Qt-interest at trolltech.com
>> http://lists.trolltech.com/mailman/listinfo/qt-interest
>>
>>
>
>
> --
> Regards,
> Ankit Agarwal
> SW Engineer
> Vegayan Systems
> email : ankit_agarwal at vegayan.com
> Blog : http://ankit17.wordpress.com
>
> This mail has originated outside your organization, either from an external partner or the Global Internet.
> Keep this in mind if you answer this message.
>
>
> The information in this e-mail is confidential. The contents may not be disclosed or used by anyone other then the addressee. Access to this e-mail by anyone else is unauthorised.
> If you are not the intended recipient, please notify Airbus immediately and delete this e-mail.
> Airbus cannot accept any responsibility for the accuracy or completeness of this e-mail as it has been sent over public networks. If you have any concerns over the content of this message or its Accuracy or Integrity, please contact Airbus immediately.
> All outgoing e-mails from Airbus are checked using regularly updated virus scanning software but you should take whatever measures you deem to be appropriate to ensure that this message and any attachments are virus free.
>
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
>


-- 
Regards,
Ankit Agarwal
SW Engineer
Vegayan Systems
email : ankit_agarwal at vegayan.com
Blog : http://ankit17.wordpress.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090326/16594d4d/attachment.html 


More information about the Qt-interest-old mailing list