[Qt-interest] Problem with subclassing of theQAbstractTableModel

Scott Aron Bloom Scott.Bloom at onshorecs.com
Fri Nov 5 20:04:10 CET 2010


Don't know about the whole test suite...

But add modeltest.cpp and modeltest.h to your build area.

And instantiate a new modeltest with the model under test as a parameter

-----Original Message-----
From: qt-interest-bounces at trolltech.com
[mailto:qt-interest-bounces at trolltech.com] On Behalf Of Vladimir
Barbarosh
Sent: Friday, November 05, 2010 11:23 AM
To: Stephen Kelly
Cc: qt-interest at trolltech.com
Subject: Re: [Qt-interest] Problem with subclassing of
theQAbstractTableModel

> Scott Aron Bloom wrote:
>
>> It used to b hosted on their svn server, but apparently they still
haven't
>> moved it over to the git repo.
>>
>> Here is the last copy I had...
>
> For a more up to date version
>
> svn co
>
svn://anonsvn6.kde.org/home/kde/trunk/KDE/kdelibs/kdeui/tests/proxymodel
testsuite
>
> You'll have to remove the EXPORT macro though.

Sadly, but I can't find any documentation of how to use this test suite.
Can you point me in the right direction?

I guess that must somehow compile it, but just issuing "cmake ." doesn't
work (this is my first experience with cmake(1)):

	$ cmake .
	-- The C compiler identification is GNU
	-- The CXX compiler identification is GNU
	-- Check for working C compiler: /usr/local/bin/gcc
	-- Check for working C compiler: /usr/local/bin/gcc -- works
	-- Detecting C compiler ABI info
	-- Detecting C compiler ABI info - done
	-- Check for working CXX compiler: /usr/bin/c++
	-- Check for working CXX compiler: /usr/bin/c++ -- works
	-- Detecting CXX compiler ABI info
	-- Detecting CXX compiler ABI info - done
	-- Looking for Q_WS_X11
	-- Looking for Q_WS_X11 - found
	-- Looking for Q_WS_WIN
	-- Looking for Q_WS_WIN - not found.
	-- Looking for Q_WS_QWS
	-- Looking for Q_WS_QWS - not found.
	-- Looking for Q_WS_MAC
	-- Looking for Q_WS_MAC - not found.
	CMake Error at /usr/share/cmake-2.6/Modules/FindQt4.cmake:1313
(MESSAGE):
	  Qt libraries, includes, moc, uic or/and rcc NOT found!
	Call Stack (most recent call first):
	  CMakeLists.txt:10 (find_package)


	-- Configuring done

What it means?
	CMake Error at /usr/share/cmake-2.6/Modules/FindQt4.cmake:1313
(MESSAGE):
	  Qt libraries, includes, moc, uic or/and rcc NOT found!

The Qt I use resides in ~/bin/qtsdk-2010.05/.  The following two lines
was added to ~/.bashrc file after installing Qt:

	export PATH=~/bin/qtsdk-2010.05/bin:$PATH
	export PATH=~/bin/qtsdk-2010.05/qt/bin:$PATH

Also, I see no *.pri files to include in my project file.
_______________________________________________
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