[Qt-interest] Problem with subclassing of the QAbstractTableModel

Vladimir Barbarosh vladimir.barbarosh at gmail.com
Fri Nov 5 19:23:29 CET 2010


> 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/proxymodeltestsuite
>
> 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.



More information about the Qt-interest-old mailing list