You are not logged in.

Dear visitor, welcome to QtForum.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.

AP.Sakkthivel

Professional

  • "AP.Sakkthivel" is male
  • "AP.Sakkthivel" started this thread

Posts: 563

Location: India

Occupation: Application Development Using Qt

  • Send private message

1

Monday, July 18th 2005, 12:21pm

Doubt Pl[Solved]

I have one doubt pl
why we can not access setOrder of QDateTimeEdit control


for eg
DTE->dateEdit()->setOrder(QDateEdit::DMY)

is working but

DTE->setOrder() is not working why?
Though DTE is derived from dateedit class.....

Thanx
Regards
- $akthi

You never know, how soon it may be too late…

This post has been edited 1 times, last edit by "AP.Sakkthivel" (Jul 21st 2005, 4:52am)


zlatko

Professional

  • "zlatko" is male

Posts: 728

Location: Ukraine,Lviv

Occupation: programmer

  • Send private message

2

Monday, July 18th 2005, 12:40pm

i think in your case DTE is derived from DateTimeEdit class
a life without programming its alike empty bottle 8)

AP.Sakkthivel

Professional

  • "AP.Sakkthivel" is male
  • "AP.Sakkthivel" started this thread

Posts: 563

Location: India

Occupation: Application Development Using Qt

  • Send private message

3

Tuesday, July 19th 2005, 5:21am

Thanx for the reply...

setOrder of QDateEdit class is public virtual member

so all derived classes of QDateEdit will also derive setOrder().

Though QDateTimeEdit is derived from QDateEdit, why we can directly
use QDateTimeEdit::setOrder().... instead of QDateEdit::setOrder()....

that's what i need to know...?

thanx
Regards
- $akthi

You never know, how soon it may be too late…

This post has been edited 1 times, last edit by "AP.Sakkthivel" (Jul 19th 2005, 5:22am)


zlatko

Professional

  • "zlatko" is male

Posts: 728

Location: Ukraine,Lviv

Occupation: programmer

  • Send private message

4

Tuesday, July 19th 2005, 5:04pm

Quoted

Originally posted by AP.Sakkthivel
Though QDateTimeEdit is derived from QDateEdit, why we can directly
use QDateTimeEdit::setOrder().... instead of QDateEdit::setOrder()....

that's what i need to know...?
thanx


QDateTimeEdit not derived from QDateEdit. QDateEdirt derived from QDateTimeEditBase.
Read the docs about this
a life without programming its alike empty bottle 8)

AP.Sakkthivel

Professional

  • "AP.Sakkthivel" is male
  • "AP.Sakkthivel" started this thread

Posts: 563

Location: India

Occupation: Application Development Using Qt

  • Send private message

5

Thursday, July 21st 2005, 4:49am

Thanx zlatco

i was thinking that QDateTimeEdit is derived from two parents
QDateEdit and QTimeEdit


that's why i raised that doubt.....


thanx a lot
Regards
- $akthi

You never know, how soon it may be too late…