Notices


Reply
Thread Tools
marxian's Avatar
Posts: 2,448 | Thanked: 9,523 times | Joined on Aug 2010 @ Wigan, UK
#21
Originally Posted by corduroysack View Post
i must be missing something i've downloaded qt creator but when i go to file- new file or project and click on mobile Qt Application i only get up the symbian option/desktop and simulator not maemo. do i need to download anything more? sorry for noob question.
I believe the Maemo target is no longer in the default installation of Qt Creator. If you launch SDK Maintenance Tool, you should be able to install the Maemo target from there.
__________________
'Men of high position are allowed, by a special act of grace, to accomodate their reasoning to the answer they need. Logic is only required in those of lesser rank.' - J K Galbraith

My website

GitHub
 

The Following 3 Users Say Thank You to marxian For This Useful Post:
Posts: 1,086 | Thanked: 2,964 times | Joined on Jan 2010
#22
Good work on the tutorial prankster There are a few beginners tutorials on the Development section, but it's always good to have more

To anyone starting out with development, I'd also recommend checking out the gret newbie sticky tutorial on the development forum - http://talk.maemo.org/showthread.php?t=43663. It also walks through creating your first Qt Studio project and uploading to the N900. You might also want to check out the tutorials in my signature, they focus more specifically on playing sounds and using the accelerometer (for example). And there are lots of hints and tips everywhere on the maemo.org Development forum.. it's good to get ideas from everywhere

Originally Posted by mr_jrt View Post
What? Bloated? Deprecated? What are you on about?

It's not deprecated at all. The best practises might point to QtQuick (as you say, for compatibility with Meego)...but QWidget is a better choice for the N900 anyway as all the newer stuff isn't properly supported.
I think what mikecomputing is getting at is that QML is the bright shiny future and QWidget is on the way out the door as far as the Qt project goes. But there's nothing stopping use of QWidget on the N900, as you say it's still available and certainly not deprecated at this time.
__________________
Follow me on my neglected twitter @kojacker

Cybot950 - Control a robot with your N9/N950
SMSPetFeeder - Build a Bluetooth/SMS dog feeder with Qt, N950, and arduino
Nerf950 - Use your N9/N950 to fire a Nerf gun

Last edited by kojacker; 2011-08-15 at 16:02.
 

The Following 2 Users Say Thank You to kojacker For This Useful Post:
Posts: 293 | Thanked: 81 times | Joined on Dec 2010 @ Al Quds, Isawiya
#23
can you make an example for a rss reader application
?
 
Posts: 293 | Thanked: 81 times | Joined on Dec 2010 @ Al Quds, Isawiya
#24
do i have to add qwebview to make the app show web content?
like rss feeds?

Last edited by N900L; 2011-08-16 at 10:28.
 
Posts: 427 | Thanked: 160 times | Joined on Nov 2009
#25
thanks, im a newb and will give it a try!!!!!
__________________
Please vote for the following bug:
Media player should play audio tracks continuously (gapless playback)
 
Banned | Posts: 695 | Thanked: 308 times | Joined on Apr 2011 @ originally pakistan ,now in china
#26
i think it will be difficult to address the every aspect of Qt use .you better learn it through your own means .
For web content :http://doc.qt.nokia.com/4.7-snapshot/qtwebkit.html
 
Posts: 293 | Thanked: 81 times | Joined on Dec 2010 @ Al Quds, Isawiya
#27
i think this needs c++ knowledge
is anyone here a developer that learned by himself developing apps?
If so tell us how you did learn it.
 

The Following User Says Thank You to N900L For This Useful Post:
Posts: 101 | Thanked: 47 times | Joined on Aug 2010 @ somerset
#28
after following guide i'm not getting a result of the sum in results box this is my mainwindow.cpp if you can help as scratching my head all night am newbie to coding thanks.

// checksum 0xa193 version 0x30001
/*
This file was generated by the Mobile Qt Application wizard of Qt Creator.
MainWindow is a convenience class containing mobile device specific code
such as screen orientation handling.
It is recommended not to modify this file, since newer versions of Qt Creator
may offer an updated version of it.
*/

#include "mainwindow.h"
#include "ui_mainwindow.h"

#include <QtCore/QCoreApplication>

MainWindow::MainWindow(QWidget *parent)
: QMainWindow(parent), ui(new Ui::MainWindow)
{
ui->setupUi(this);
}

MainWindow::~MainWindow()
{
delete ui;
}

void MainWindow::setOrientation(ScreenOrientation orientation)
{
#if defined(Q_OS_SYMBIAN)
// If the version of Qt on the device is < 4.7.2, that attribute won't work
if (orientation != ScreenOrientationAuto) {
const QStringList v = QString::fromAscii(qVersion()).split(QLatin1Char(' .'));
if (v.count() == 3 && (v.at(0).toInt() << 16 | v.at(1).toInt() << 8 | v.at(2).toInt()) < 0x040702) {
qWarning("Screen orientation locking only supported with Qt 4.7.2 and above");
return;
}
}
#endif // Q_OS_SYMBIAN

Qt::WidgetAttribute attribute;
switch (orientation) {
#if QT_VERSION < 0x040702
// Qt < 4.7.2 does not yet have the Qt::WA_*Orientation attributes
case ScreenOrientationLockPortrait:
attribute = static_cast<Qt::WidgetAttribute>(128);
break;
case ScreenOrientationLockLandscape:
attribute = static_cast<Qt::WidgetAttribute>(129);
break;
default:
case ScreenOrientationAuto:
attribute = static_cast<Qt::WidgetAttribute>(130);
break;
#else // QT_VERSION < 0x040702
case ScreenOrientationLockPortrait:
attribute = Qt::WA_LockPortraitOrientation;
break;
case ScreenOrientationLockLandscape:
attribute = Qt::WA_LockLandscapeOrientation;
break;
default:
case ScreenOrientationAuto:
attribute = Qt::WA_AutoOrientation;
break;
#endif // QT_VERSION < 0x040702
};
setAttribute(attribute, true);
}

void MainWindow::showExpanded()
{
#ifdef Q_OS_SYMBIAN
showFullScreen();
#elif defined(Q_WS_MAEMO_5) || defined(Q_WS_MAEMO_6)
showMaximized();
#else
show();
#endif
}

void MainWindow:n_sum_clicked()
{
int number1 = ui->number1->text().toInt();
int number2 = ui->number2->text().toInt();
int result = number1 + number2;
ui->sum->setText(QString::number(result));
}

Last edited by scoobydoo; 2011-08-16 at 13:35. Reason: misspelling
 
Posts: 137 | Thanked: 34 times | Joined on Jul 2010 @ United States
#29
Scooby Doo By DOOOO!!!! My favorite show ever! (As a kid)
__________________
Sent via my Verizon crapPhone.
 
Banned | Posts: 695 | Thanked: 308 times | Joined on Apr 2011 @ originally pakistan ,now in china
#30
guys just like you i myself a learner ,NOT A DEVELOPER at the moment .i can post loads n loads of links here ,coding is not a child's play and also remember this is the first time you doing any developmental work .So be good .
you better start with tutorials ,even though i have already requested you to check the all links i posted on the first post .Anyway! Learn with any example ,make friends who already have developed some thing for maemo .ask thier help .And if you think you are a good learner .Check this :http://www.developer.nokia.com/docum...Qt/QtForMaemo/ ( this is another project -tictactoe Tutorial )
may the community be with you !

Last edited by prankster; 2011-08-16 at 16:46.
 
Reply


 
Forum Jump


All times are GMT. The time now is 11:01.