You are not logged in.

karye

Unregistered

1

Thursday, August 12th 2004, 4:20pm

QT and KDevelop: multiple subclasses to one ui

Hi!

Started a project i QT, and now the ui.h file gets quite long: 3000+ lines.
So after switching to KDevelop I wonder maybe I could the code inte smaller parts (files).

Much appreciated any answer or pointer...

Thanks!

hatulflezet

Beginner

Posts: 14

Location: Germany

Occupation: Programmer

  • Send private message

2

Thursday, August 12th 2004, 6:16pm

What's the question?
Click here! I dare ya'!! :]
Project Archimedes
----------------------------------------------------------
"Don't panic, and thanks for all the fish!"

3

Thursday, August 12th 2004, 6:43pm

same question:)
/Benjamin:/
French Debian testing user
QT/KDE tiny coder
Wiki code library

axeljaeger

Beginner

Posts: 10

Location: Frankfurt Germany

Occupation: Student

  • Send private message

4

Thursday, August 12th 2004, 6:59pm

RE: QT and KDevelop: multiple subclasses to one ui

Not with ui.h but with the subclass approach.
It's nice to be important but it's more important to be nice

karye

Unregistered

5

Thursday, August 12th 2004, 9:43pm

RE: QT and KDevelop: multiple subclasses to one ui

Ahum!

I've got one ui form and a large ui.h. The form has 50 slots, 3 functions and 10 class variables.
Now in KDevelop I see that a ui form can be subclassed.
How is it possible to use several subclass-cpp/h files?

Opening a ui form in QT, how do I specify slots from different classes, eg:
class1::slot1, class1::slot2, class2::slot3 ...
Files are: class1.cpp/class1.h, class2.cpp/class2.h ...

A small example would be great!

Thanks!

anda_skoa

Professional

Posts: 1,273

Location: Graz, Austria

Occupation: Software Developer

  • Send private message

6

Thursday, August 12th 2004, 10:34pm

The ui.h file is, despite its name, just a normal C++ source file (AKA .cpp)

You can split the file manually into different files and just #include them into the main file

Cheers,
_
Qt/KDE Developer
Debian User

karye

Unregistered

7

Monday, August 16th 2004, 8:38pm

Thanks! Just what I was looking for.