You are not logged in.

Dear visitor, welcome to KDE-Forum.org. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

dfmax

Beginner

  • "dfmax" started this thread

Posts: 13

Location: Slovenia

  • Send private message

1

Friday, October 1st 2004, 8:13am

KMainWindow with QTdesigner

Can I make Pure KDE-qt dialogs like KMainWindow or KWizard with QTDesigner, if yes, how?

anda_skoa

Professional

Posts: 1,273

Location: Graz, Austria

Occupation: Software Developer

  • Send private message

2

Friday, October 1st 2004, 10:55am

You would need to create a designer widget plugin that provides those classes and then create designer templates for them.

You can find a thread about this in the subforum for designer questions, but creating a template for a top level window like a dialog or wizard is a little tricky.

You better create a subclass manually and just design the content widgets in designer and then embed them into you subclass.

Cheers,
_
Qt/KDE Developer
Debian User

dfmax

Beginner

  • "dfmax" started this thread

Posts: 13

Location: Slovenia

  • Send private message

3

Tuesday, October 5th 2004, 7:25pm

Quoted

Originally posted by anda_skoa
You better create a subclass manually and just design the content widgets in designer and then embed them into you subclass.


Ok can you show me an example how to embed them or where can I find some good howto about that.

Thanks

anda_skoa

Professional

Posts: 1,273

Location: Graz, Austria

Occupation: Software Developer

  • Send private message

4

Wednesday, October 6th 2004, 1:17pm

see QMainWindow::setCentralWidget (KMainWindow is derived from QMainWindow)

Cheers,
_
Qt/KDE Developer
Debian User

vdboor

Beginner

Posts: 30

Location: The Netherlands

Occupation: Software developer

  • Send private message

5

Monday, October 18th 2004, 8:59am

In other words, only write your specialized QWidget dialogs, and integrate them in your KDE window/dialog code.

If you scroll through this tutorial, you'll see some interesting things on creating a settings dialog, which uses the same concept:
http://kdevelop.org/3.0/doc/tutorial_settings/
Working on KMess, a MSN Messenger client for Linux/KDE.