[Qt-interest] Question with QModelIndex

shiva sitamraju shivaenigma at gmail.com
Fri May 22 12:04:49 CEST 2009


We couldn't find any documentation for QPersitentIndex, could someone please
help us on how to use the same ?

On Fri, May 22, 2009 at 3:13 PM, <qt-interest-request at trolltech.com> wrote:

> Send Qt-interest mailing list submissions to
>        qt-interest at trolltech.com
>
> To subscribe or unsubscribe via the World Wide Web, visit
>        http://lists.trolltech.com/mailman/listinfo/qt-interest
> or, via email, send a message with subject or body 'help' to
>        qt-interest-request at trolltech.com
>
> You can reach the person managing the list at
>        qt-interest-owner at trolltech.com
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Qt-interest digest..."
>
> Today's Topics:
>
>   1. Re: Does a QSqlQueryModel lock an entire sqlite   database?
>      (Paul Dixon)
>   2. Re: Qt 4.5.1 with gcc 4.3.0 (mingw) - errors and  warnings
>      compiling examples\webkit\formextractor example (Konrad Rosenbaum)
>   3. Re: Does a QSqlQueryModel lock an entire  sqlite  database? (Jan)
>   4. Help: How to add additional libs to makefile (Joe Liu)
>   5. Re: Help: How to add additional libs to makefile (Chandru...)
>   6. Re: Help: How to add additional libs to makefile (J-P Nurmi)
>   7. Question with QModelIndex (shiva sitamraju)
>
>
> ---------- Forwarded message ----------
> From: Paul Dixon <lordelph at gmail.com>
> To: qt-interest <qt-interest at trolltech.com>
> Date: Fri, 22 May 2009 09:20:52 +0100
> Subject: Re: [Qt-interest] Does a QSqlQueryModel lock an entire sqlite
> database?
> > if your table has more than 256 rows you need to call fetchMore. Sqlite
> > locks the database if a query is still active.
>
> That was it! Thanks for the tip, I'm curious to know if its documented
> somewhere and I missed it ;)
>
> Anyway, during setData I ate the remaining data with
>
>  while (canFetchMore())
>     fetchMore();
>
>
> And then updates worked. Is that the most efficient workaround though?
>
>
>
> ---------- Forwarded message ----------
> From: Konrad Rosenbaum <konrad at silmor.de>
> To: qt-interest at trolltech.com
> Date: Fri, 22 May 2009 10:27:03 +0200
> Subject: Re: [Qt-interest] Qt 4.5.1 with gcc 4.3.0 (mingw) - errors and
> warnings compiling examples\webkit\formextractor example
> On Thursday 21 May 2009, Piotr Dobrogost wrote:
> > I'm trying to compile examples\webkit\formextractor example from Qt
> > 4.5.1 with gcc 4.3.0 (mingw) on Windows.
> >
> > I'm getting a lot of warnings like this
>
> I guess you are using the pre-compiled Qt version - right? These errors
> sound like a compiler mismatch.
>
> Hint: Qt was compiled with GCC 3.4 on Windows.
>
> Solution a) compile Qt yourself with the same compiler you plan to use
> later.
>
> Solution b) use the same compiler as Trolltech did (GCC 3.4).
>
>
>        Konrad
>
>
> ---------- Forwarded message ----------
> From: Jan <janusius at gmx.net>
> To:
> Date: Fri, 22 May 2009 10:31:29 +0200
> Subject: Re: [Qt-interest] Does a QSqlQueryModel lock an entire sqlite
> database?
> yes, it's documented (somewhere) :-)
>
> Paul Dixon schrieb:
>
>> if your table has more than 256 rows you need to call fetchMore. Sqlite
>>> locks the database if a query is still active.
>>>
>>
>> That was it! Thanks for the tip, I'm curious to know if its documented
>> somewhere and I missed it ;)
>>
>> Anyway, during setData I ate the remaining data with
>>
>>  while (canFetchMore())
>>     fetchMore();
>>
>>
>> And then updates worked. Is that the most efficient workaround though?
>> _______________________________________________
>> Qt-interest mailing list
>> Qt-interest at trolltech.com
>> http://lists.trolltech.com/mailman/listinfo/qt-interest
>>
>>
>
>
> ---------- Forwarded message ----------
> From: Joe Liu <passer.by007gg at gmail.com>
> To: qt-interest at trolltech.com
> Date: Fri, 22 May 2009 17:13:14 +0800
> Subject: [Qt-interest] Help: How to add additional libs to makefile
> Hi,
>
> I started to use Qt4.3.4 recently under Linux Fedora 9 platform.
>
> I can compile simple Qt applications by using qmake to generate a project
> file and then the Makefile.
>
> However, the Makefile seems quite complex for me.
>
> So,
>
> 1) What if I want to add additional lib to my project? how can i do that?
> Shall I write another makefile manually and include the qmake-generated one?
>
> 2) How does qmake work with other makefile tools, like cmake? Will qmake
> handle everything for me?
>
> I tried to google these questions, but received no valuable information.
>
> Thanks. Your help will be appreciated~~
>
>
> Joe
> VisGroup,
> Peking Univ. China
>
>
> ---------- Forwarded message ----------
> From: "Chandru..." <sekarwagmare at gmail.com>
> To: qt-interest at trolltech.com
> Date: Fri, 22 May 2009 14:48:03 +0530
> Subject: Re: [Qt-interest] Help: How to add additional libs to makefile
> if ur library is libacci.a
>
> just qmake your .pro file ..
>
> before giving make
> in *Makefile  add -lcci at the end *
>     * LIBS          = $(SUBLIBS)  -L/usr/local/Trolltech/Qt-4.4.3/lib
> -lQtGui -L/usr/local/Trolltech/Qt-4.4.3/lib -L/usr/X11R6/lib -pthread -lpng
> -lSM -lICE -pthread -pthread -lXi -lXrender -lXrandr -lfreetype -lfontconfig
> -lXext -lX11 -lQtCore -lz -lm -pthread -lgthread-2.0 -lrt -lglib-2.0 -ldl
> -lpthread* -*lacci
>
> enough ...
> *
> On Fri, May 22, 2009 at 2:43 PM, Joe Liu <passer.by007gg at gmail.com> wrote:
>
>> Hi,
>>
>> I started to use Qt4.3.4 recently under Linux Fedora 9 platform.
>>
>> I can compile simple Qt applications by using qmake to generate a project
>> file and then the Makefile.
>>
>> However, the Makefile seems quite complex for me.
>>
>> So,
>>
>> 1) What if I want to add additional lib to my project? how can i do that?
>> Shall I write another makefile manually and include the qmake-generated one?
>>
>> 2) How does qmake work with other makefile tools, like cmake? Will qmake
>> handle everything for me?
>>
>> I tried to google these questions, but received no valuable information.
>>
>> Thanks. Your help will be appreciated~~
>>
>>
>> Joe
>> VisGroup,
>> Peking Univ. China
>>
>> _______________________________________________
>> Qt-interest mailing list
>> Qt-interest at trolltech.com
>> http://lists.trolltech.com/mailman/listinfo/qt-interest
>>
>>
>
>
> --
> WAGMARE
>
>
> ---------- Forwarded message ----------
> From: J-P Nurmi <jpnurmi at gmail.com>
> To: Qt-interest <qt-interest at trolltech.com>
> Date: Fri, 22 May 2009 12:18:08 +0300
> Subject: Re: [Qt-interest] Help: How to add additional libs to makefile
> > 1) What if I want to add additional lib to my project? how can i do that?
> > Shall I write another makefile manually and include the qmake-generated
> one?
> >
>
>
> http://doc.qtsoftware.com/latest/qmake-project-files.html#declaring-other-libraries
>
> --
> J-P Nurmi
>
>
>
> ---------- Forwarded message ----------
> From: shiva sitamraju <shivaenigma at gmail.com>
> To: qt-interest at trolltech.com
> Date: Fri, 22 May 2009 15:12:58 +0530
> Subject: [Qt-interest] Question with QModelIndex
> Hi all,
>
> We have a thread running which inserts rows into a model index. We have
> implemented the insertRows() function from QAbstractItemModel.
> The application throws errors like:
> QTreeView::rowsInserted internal representation of the model has been
> corrupted, resetting.
>
> We are assuming this is because the model index of the inserted row changes
> before the ui has updated the view (because
> of frequent inserts). We though maybe QPersistentModelIndex may help if we
> can use it to maintain consistent modelindex.
>
> Thanks
> -Shiva
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090522/b2246832/attachment.html 


More information about the Qt-interest-old mailing list