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

Qt-interest Archive, April 2008
Equivalent of Q3FileDialog::selectAll(false)


Message 1 in thread

Hi all,

I'm porting some code from Qt3 to Qt4 and I used
Q3FileDialog::selectAll(false) to unselect all file before show the
dialog. I don't find any equivalent in Qt4.
I try this :
 QListView listview = fileDialog.findChild(QtGui.QListView,'');
 selectionModel = listview.selectionModel()
 selectionModel.clear()

But it doesn't work...

Have you got any idea how I can do that?

Thanks
begin:vcard
begin:vcard
fn;quoted-printable:S=C3=A9bastien Petitdemange
n;quoted-printable:Petitdemange;S=C3=A9bastien
email;internet:sebastien.petitdemange@xxxxxxx
tel;work:1994
x-mozilla-html:TRUE
version:2.1
end:vcard


Message 2 in thread

Sébastien Petitdemange wrote:
> I'm porting some code from Qt3 to Qt4 and I used
> Q3FileDialog::selectAll(false) to unselect all file before show the
> dialog. I don't find any equivalent in Qt4.

Just an idea, did not try it: What if you call

selectFile(""); /* with an empty string as param */

before showing the file dialog?

--
 [ signature omitted ] 

Message 3 in thread

Ferenc Stelcz wrote:
> Sébastien Petitdemange wrote:
>> I'm porting some code from Qt3 to Qt4 and I used
>> Q3FileDialog::selectAll(false) to unselect all file before show the
>> dialog. I don't find any equivalent in Qt4.
> 
> Just an idea, did not try it: What if you call
> 
> selectFile(""); /* with an empty string as param */
> 
> before showing the file dialog?
> 
> -- 
> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with
> "unsubscribe" in the subject or the body.
> List archive and information: http://lists.trolltech.com/qt-interest/
> 
> 
Hi Ferenc,

I try that to be it does not deselect other files!

Seb
begin:vcard
begin:vcard
fn;quoted-printable:S=C3=A9bastien Petitdemange
n;quoted-printable:Petitdemange;S=C3=A9bastien
email;internet:sebastien.petitdemange@xxxxxxx
tel;work:1994
x-mozilla-html:TRUE
version:2.1
end:vcard


Message 4 in thread

Sébastien Petitdemange wrote:
> Ferenc Stelcz wrote:
>> Sébastien Petitdemange wrote:
>>> I'm porting some code from Qt3 to Qt4 and I used
>>> Q3FileDialog::selectAll(false) to unselect all file before show the
>>> dialog. I don't find any equivalent in Qt4.
>> Just an idea, did not try it: What if you call
>>
>> selectFile(""); /* with an empty string as param */
>>
>> before showing the file dialog?
>>
>> -- 
>> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with
>> "unsubscribe" in the subject or the body.
>> List archive and information: http://lists.trolltech.com/qt-interest/
>>
>>
> Hi Ferenc,
> 
> I try that to be it does not deselect other files!
> 
> Seb
Hi All,


May I conclude there is no equivalent???

P.S: Ferenc, Read  I try that too but it does not deselect other files!
Sorry for mistakes!

SEB
begin:vcard
begin:vcard
fn;quoted-printable:S=C3=A9bastien Petitdemange
n;quoted-printable:Petitdemange;S=C3=A9bastien
email;internet:sebastien.petitdemange@xxxxxxx
tel;work:1994
x-mozilla-html:TRUE
version:2.1
end:vcard