Qt-interest Archive, May 2008
QTreeView update
Message 1 in thread
I have a QTreeView whit a model.
At run time, when the widget that shows the QTreeView is opened i change
the model of QTreeView.
How can I update the widget and the QTreeView?
I try with lpTreeView->updateGeometry(); but it doesn't run.
Thanks
Teo
--
[ signature omitted ]
Message 2 in thread
matteo wrote:
> I have a QTreeView whit a model.
> At run time, when the widget that shows the QTreeView is opened i change
> the model of QTreeView.
> How can I update the widget and the QTreeView?
> I try with lpTreeView->updateGeometry(); but it doesn't run.
>
> Thanks
> Teo
Hi,
I did it another way:
- setup a model for my view on initialization
- at run-time change some data structure behind Qt-model, not the model
itself and call reset() on model
HTH,
Albert
--
[ signature omitted ]
Message 3 in thread
Have a look here:
http://doc.trolltech.com/4.3/model-view-creating-models.html#inserting-a
nd-removing-rows
Once you have a "correct" model, the view should automagically react to
changes.
Cheers,
Peter
--
[ signature omitted ]
Message 4 in thread
Is there some way to use wildcards in a .pro file?
For example:
SOURCES += ..\cpp\*.cpp
This was possible in Qt 3 -- not sure if there's another way in Qt 4.
Sam Dutton
SAM DUTTON
SENIOR SITE DEVELOPER
200 GRAY'S INN ROAD
LONDON
WC1X 8XZ
UNITED KINGDOM
T +44 (0)20 7430 4496
F
E Sam.Dutton@xxxxxxxxx
WWW.ITN.CO.UK
P Please consider the environment. Do you really need to print this email?
Please Note:
Any views or opinions are solely those of the author and do not necessarily represent
those of Independent Television News Limited unless specifically stated.
This email and any files attached are confidential and intended solely for the use of the individual
or entity to which they are addressed.
If you have received this email in error, please notify postmaster@xxxxxxxxx
Please note that to ensure regulatory compliance and for the protection of our clients and business,
we may monitor and read messages sent to and from our systems.
Thank You.
--
[ signature omitted ]
Message 5 in thread
Have you tried using slashes (Qt way) instead of backslashes (Window's way)?
SOURCES += ../cpp/*.cpp
Keith
**Please do not reply to me, reply to the list.**
On 05-20-2008 6:11 AM, "Dutton, Sam" wrote:
> Is there some way to use wildcards in a .pro file?
>
> For example:
>
> SOURCES += ..\cpp\*.cpp
>
> This was possible in Qt 3 -- not sure if there's another way in Qt 4.
>
> Sam Dutton
>
--
[ signature omitted ]
Message 6 in thread
> Have you tried using slashes
I *thought* I had... :-)
This works:
SOURCES += ..\cpp\*.cpp
Thanks (and to André)
Sam
SAM DUTTON
SENIOR SITE DEVELOPER
200 GRAY'S INN ROAD
LONDON
WC1X 8XZ
UNITED KINGDOM
T +44 (0)20 7430 4496
F
E Sam.Dutton@xxxxxxxxx
WWW.ITN.CO.UK
P Please consider the environment. Do you really need to print this email?
-----Original Message-----
From: Keith Esau [mailto:keith.esau@xxxxxxx]
Sent: Tuesday 20 May 2008 17:57
To: Qt Interest
Subject: Re: Wildcards with qmake
Have you tried using slashes (Qt way) instead of backslashes (Window's way)?
SOURCES += ../cpp/*.cpp
Keith
**Please do not reply to me, reply to the list.**
On 05-20-2008 6:11 AM, "Dutton, Sam" wrote:
> Is there some way to use wildcards in a .pro file?
>
> For example:
>
> SOURCES += ..\cpp\*.cpp
>
> This was possible in Qt 3 -- not sure if there's another way in Qt 4.
>
> Sam Dutton
>
--
[ signature omitted ]