[Qt-interest] Problems when using Models in a console application

NoRulez norulez at me.com
Thu Oct 14 12:24:46 CEST 2010


But the problem is, that the QAbstractSortFilterProxyModel is also in QtGui

Am 14.10.2010 um 12:16 schrieb Mandeep Sandhu <mandeepsandhu.chd at gmail.com>:

> On Thu, Oct 14, 2010 at 3:16 PM, Andreas Pakulat <apaku at gmx.de> wrote:
>> On 14.10.10 09:04:05, NoRulez wrote:
>>> Hello,
>>> 
>>> I have problems to use QStandardItemModel and QSortFilterProxyModel in a console application.
>> 
>> Those classes are in the QtGui module and hence not usable without
>> QApplication which in turn needs an X connection.
>> 
>> If you want to do without X connection implement your own model as subclass
>> of QAbstractItemModel (or QAbstractTableModel or QAbstractListModel) and
>> don't use any classes from QtGui.
> 
> Or you can configure your QT build to use the linux framebuffer (QT
> embedded) device. And run your apps with the qws switch. Though this
> might more cumbersome to do compared to what Andreas suggested! :)
> 
> HTH,
> -mandeep
> 
> 
>> 
>> Andreas
>> 
>> --
>> Tomorrow will be cancelled due to lack of interest.
>> _______________________________________________
>> Qt-interest mailing list
>> Qt-interest at trolltech.com
>> http://lists.trolltech.com/mailman/listinfo/qt-interest
>> 
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest



More information about the Qt-interest-old mailing list