![]() |
2011-07-28
, 20:40
|
Posts: 3,074 |
Thanked: 12,964 times |
Joined on Mar 2010
@ Sofia,Bulgaria
|
#2
|
![]() |
2011-07-28
, 20:53
|
|
Posts: 2,448 |
Thanked: 9,523 times |
Joined on Aug 2010
@ Wigan, UK
|
#3
|
void QMaemo5InformationBox::information ( QWidget * parent, const QString & message, int timeout = DefaultTimeout )
![]() |
2011-07-28
, 21:06
|
Posts: 25 |
Thanked: 9 times |
Joined on Oct 2010
@ Germany / Mannheim
|
#4
|
void MainWindow::warning(const QString & text){ QMaemo5InformationBox::information(this, text, QMaemo5InformationBox::DefaultTimeout); }
![]() |
2011-07-28
, 21:46
|
|
Posts: 2,448 |
Thanked: 9,523 times |
Joined on Aug 2010
@ Wigan, UK
|
#5
|
CONFIG += maemo5
![]() |
2011-07-28
, 21:59
|
Posts: 25 |
Thanked: 9 times |
Joined on Oct 2010
@ Germany / Mannheim
|
#6
|
![]() |
2011-07-29
, 08:48
|
|
Posts: 2,473 |
Thanked: 12,265 times |
Joined on Oct 2009
@ Jerusalem, PS/IL
|
#7
|
void MainWindow::warning(QString text) { QMaemo5InformationBox::information(this, text); }
![]() |
2011-07-29
, 10:21
|
Posts: 25 |
Thanked: 9 times |
Joined on Oct 2010
@ Germany / Mannheim
|
#8
|
QStrings should NOT be used as pointers.
Should work.Code:void MainWindow::warning(QString text) { QMaemo5InformationBox::information(this, text); }
You need QT += maemo5 in the .pro file
Edit: why do you need a method for this? Just use it directly.
QT += core gui TARGET = test2 TEMPLATE = app SOURCES += main.cpp\ mainwindow.cpp HEADERS += mainwindow.h FORMS += mainwindow.ui CONFIG += maemo5 CONFIG += mobility MOBILITY = symbian { TARGET.UID3 = 0xe4b410fa # TARGET.CAPABILITY += TARGET.EPOCSTACKSIZE = 0x14000 TARGET.EPOCHEAPSIZE = 0x020000 0x800000 } OTHER_FILES += \ qtc_packaging/debian_fremantle/rules \ qtc_packaging/debian_fremantle/README \ qtc_packaging/debian_fremantle/copyright \ qtc_packaging/debian_fremantle/control \ qtc_packaging/debian_fremantle/compat \ qtc_packaging/debian_fremantle/changelog maemo5 { target.path = /opt/test2/bin INSTALLS += target }
![]() |
2011-07-29
, 10:51
|
|
Posts: 2,448 |
Thanked: 9,523 times |
Joined on Aug 2010
@ Wigan, UK
|
#9
|
CONFIG += maemo5
QT += core gui
QT += core gui maemo5
![]() |
2011-07-29
, 12:10
|
Posts: 25 |
Thanked: 9 times |
Joined on Oct 2010
@ Germany / Mannheim
|
#10
|
i'm on my first app and dont know why this error appears:
B:\Qt\test2\mainwindow.cpp:26: Fehler:no matching function for call to 'QMaemo5InformationBox::information(MainWindow* const, QString*&, QMaemo5InformationBox::<anonymous enum>)'
whats wrong with that code? its coppied from QT expamples...