qt-interest@trolltech.com
[Top] [All Lists]

Trying to declare QDateTime variable in the class´s private variables in

Subject: Trying to declare QDateTime variable in the class´s private variables in QtDesigner
From: ")\\(@sS"
Date: Tue, 25 Jul 2006 11:02:08 +0300
Hello again,
I want to implement a little editbox for time and date editting. I know of QDateTimeEdit, however doesn that give me a premade widget with editboxes? Anyhow, it looks like  QDateTimeEdit is not suitable in my case since it provides ease of date&time editing in situations where a keyboard is present.. in my case the input device is a touchsreen so i have to use big buttons (that the finger can press on to) and i have no use for function of the sort ´setAutoAdvance´.. so i decided not to use QDateTimeEdit. is there some other use i forget about?
Now, #include <qdatetime.h> and i try to declare in the private variables field of QtDesigner a variable of type QDateTime, say curDateTime so as be able to access it from the entire scope of my class. Well, it does not compile!
.ui/appDateTimeForm.h:71: error: field `curDateTime' has incomplete type.

If i declare it in the init() function of my class it compiles fine, but i don´t want that... any ideas?
Thank you
Nass

<Prev in Thread] Current Thread [Next in Thread>
  • Trying to declare QDateTime variable in the class´s private variables in QtDesigner, )\\(@sS <=