Skip to content

Mobile and Embedded

The forum for developing everything embedded: Linux, WinCE, Symbian, MeeGo... you name it.
14.1k Topics 62.6k Posts
  • How are people handling Landmarks with app specific attributes ?

    3
    0 Votes
    3 Posts
    2k Views
    A
    Hi John, Unfortunately the API doesn't allow application specific attributes to be stored. This was a limitation of the underlying platforms. As to a suitable workaround, each landmark has local id(inside QLandmarkId), it may be possible to use this to associate the landmark with application specific data in an sqlite database. Care needs to be taken however since other applications may remove landmarks leaving the sqlite database out of sync. I'm not sure I understand how associating the ptr of a landmark with a guid will be helpful since the memory address of an object (a landmark object in this case) is not persistent. I agree though that the utility of the API is limited, hopefully we can address this shortcoming in a future release. Your feedback will certainly help with that.
  • 0 Votes
    7 Posts
    7k Views
    L
    thanks. It seems we should upgrade the system.
  • QTextEdit and Symbian

    6
    0 Votes
    6 Posts
    4k Views
    A
    hey hisong1988, thank you for the follow up. ;) hlima, did you report it in the "Qt bug tracker":http://bugreports.qt.nokia.com ? If so, remember the number?
  • Meego - Qt Mobility Contacts Backend?

    7
    0 Votes
    7 Posts
    5k Views
    C
    Hi, Yep, I think the idea is that the tracker backend for contacts at least is smart enough so that other applications simply talk to it (rather than having to access any other databases such as Telepathy) for contact information. For more information, I'd suggest talking to Aleksandar on #qtcontacts-tracker :-) For the sqlite engine, no, no-one is actively working on it. The public gitorious url for that branch is http://qt.gitorious.org/qt-mobility/contacts/commits/qtsw/sqlite. The code can be found in the usual location under /plugins/contacts/sqlite - it probably needs fairly extensive rewriting ;-) Cheers, Chris.
  • QLabel showFullScreen not working correctly

    10
    0 Votes
    10 Posts
    13k Views
    F
    I set the parent Widget to showFullscreen and did a sizeHint on the imageLabel. It was the parent's fault. (It's not a desktop, but rather a mobile app)
  • Manually Set Soft Keyboard to Landscape (Symbian)

    5
    0 Votes
    5 Posts
    4k Views
    K
    I think making one for an app will be too time consuming. Check if you can find any ready to use 3rd party libraries.
  • Problem with nokia E66 and 6710

    4
    0 Votes
    4 Posts
    4k Views
    A
    Thanks, I just knew that qt is supported on E66 anda 6710. I already made some applications with Qt + E66 and 6710. The problema is with QtMobility. For while I am still using CameraWrapper, but I realy desire to use the QCamera class. I will try Forum Nokia.
  • Camera Problem on Symbain^3

    36
    0 Votes
    36 Posts
    19k Views
    Q
    Hi All, to be able to use camera in my app i've decided to use CCamera class and MCameraObserver2, below yuo'll find all my class code: @ //MainWindow.h #ifndef MAINWINDOW_H #define MAINWINDOW_H #include <QMainWindow> #include <ecam.h> namespace Ui { class MainWindow; } class MainWindow : public QMainWindow, public MCameraObserver2 { Q_OBJECT public: explicit MainWindow(QWidget *parent = 0); //Derived from MCameraObserver2 public: void HandleEvent(const TECAMEvent &); void ImageBufferReady(MCameraBuffer &, TInt); void VideoBufferReady(MCameraBuffer &, TInt); void ViewFinderReady(MCameraBuffer &, TInt); ~MainWindow(); private: Ui::MainWindow *ui; bool iCameraOn; private slots: void on_pushButton_clicked(); public: CCamera *iCamera; TCameraInfo iCameraInfo; }; #endif // MAINWINDOW_H @ @ //MainWindow.cpp #include <ecam.h> //---------------- //To remove #include <QDebug> //---------------- #include "MainWindow.h" #include "ui_MainWindow.h" MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWindow) { ui->setupUi(this); iCamera=0; QWidget::setWindowFlags(windowFlags() | Qt::WindowSoftkeysVisibleHint); setWindowFlags(Qt::WindowSoftkeysVisibleHint); //To be ablet to see down soft keys iCameraOn=false; } MainWindow::~MainWindow() { qDebug()<<"Delete MainWindow"; if (iCamera!=0) { iCamera->Release(); delete iCamera; iCamera=0; } delete ui; } void MainWindow::on_pushButton_clicked() { //Activate Camera // iCamera=CCamera::New2L(*this,CCamera::CamerasAvailable(),(TInt) 50); TInt a_TInt_NoOfCameraAvailable=CCamera::CamerasAvailable(); int a_int_NoOfCameraAvailable=(int) a_TInt_NoOfCameraAvailable; qDebug()<<"CamerasAvailable return value: "<<a_int_NoOfCameraAvailable; if (a_int_NoOfCameraAvailable>0) { if (iCamera==NULL) { qDebug()<<"00 - Building iCamera and reserve it"; iCamera=CCamera::New2L(*this,0,0); iCamera->Reserve(); } } } void MainWindow::HandleEvent(const TECAMEvent & aEvent) { QString aString="I'm in HandleEvent"; qDebug()<<aString; switch (aEvent.iEventType.iUid) { case 270499131: { //Reserve Complete qDebug()<<"01 - Reserve Complete start power on"; if (iCameraOn==false) { qDebug()<<"MainWindow::HandleEvent iCamera->PowerOn();"; iCamera->PowerOn(); iCameraOn=true; } break; } case 270499132: { //PowerOn Complete qDebug()<<"02 - Power On complete"; iCameraInfo; iCamera->CameraInfo(iCameraInfo); iCamera->PrepareImageCaptureL(CCamera::EFormatJpeg,0,TRect(0,0,360,640)); break; } default: { qDebug()<<"aEvent= "<<(int)aEvent.iEventType.iUid; break; } } } void MainWindow::ImageBufferReady(MCameraBuffer & aCameraBuffer, TInt) { QString aString="I'm in ImageBufferReady"; qDebug()<<aString; } void MainWindow::VideoBufferReady(MCameraBuffer &aCameraBuffer, TInt) { QString aString="I'm in VideoBufferReady"; qDebug()<<aString; } void MainWindow::ViewFinderReady(MCameraBuffer &aCameraBuffer, TInt) { QString aString="I'm in ViewFinderReady"; qDebug()<<aString; } @ But when i run program console said: 'CActiveScheduler::RunIfReady() returned error: -5' Could you please le tme know where i'm wronging. Thanks.
  • Symbian mobile app - wrong charset - encoding

    10
    0 Votes
    10 Posts
    6k Views
    T
    lukiluuk: If you know you are getting Utf8 then you can use QString::fromUtf8(). There is also some conversion routine for ASCII and Latin1 (both of which are straight forward to turn into unicode and thus do not need the full TextCodec treatment:-).
  • [Solved] Qt for Symbian 4.7.1 - choosing multiple S60 folders

    21
    0 Votes
    21 Posts
    12k Views
    S
    Hi xsacha, Thanks for the reply - I will test it and come back with more concrete questions. In fact I did not tried the Symbian Simulator in Qt Creator. From some reason (stupidity;) I thought it is for pure Qt applicaitions only, but if I can mix Qt and Symbian C++ I will probably prefer it over Carbide.C++. From the same reason I also thought that Qt Creator cannot mix Qt and Symbian C++... On the other side Carbide.C++ is not a bad tool and it is always good to have options to choose especially if you are already familiar with the IDE and its tricks. Might be having some info page about both IDEs on this web pages describing migration from Symbian to Qt and various possibilities/advantages/drawbacks is not a bad idea... BR STeN
  • [SOLVED] About qml and qtuitestrunner

    7
    0 Votes
    7 Posts
    3k Views
    D
    Hi Zaman, You're right, those options don't work correctly, they should be removed from the qtuitestrunner code (they are relics from the days of Qtopia performance testing). There is currently no way to get the application CPU usage through qtuitest, although it's obviously useful functionality - I'll add it to the "to do" list. Thanks, David
  • Object creation safety / memory leaks detection on Symbian

    15
    0 Votes
    15 Posts
    7k Views
    X
    That's by a group called 'ofi labs' that have a mind-dazzling amout of qtwebkit / browser stuff. Here's their git: http://gitorious.org/ofi-labs/x2 They have some cool javascript game (runs in web browser) that detects accelerometer. '"MarbleBox":http://ariya.github.com/js/marblebox/' (also works in a laptop with accelerometer if you have one). And more in this wiki: http://developer.qt.nokia.com/wiki/Examples_from_Ofi_Labs The guy who made all that stuff is none other than "Engineering Director for Sencha":http://ariya.ofilabs.com/ ;) He also used to work for Trolltech (Qt) and Nokia. So I think Sencha support on Symbian/Qt is in safe hands.
  • What are the symbian phones that support Qt\Qt Mobility?

    26
    0 Votes
    26 Posts
    16k Views
    X
    It's not sold in my country. Nokia pulled it from the shelves after 6 months. In fact, they were still selling N95 when they took off N96. The bling edition will work. It's only AT&T branded, as the wiki suggests.
  • Expanding QListView within QScrollArea

    29
    0 Votes
    29 Posts
    21k Views
    M
    I know that. I just like to keep as close to the intended semantics as possible, because that quite often improves maintainability a lot. But hey, I'm happy I got it working, and maybe one day I'll find a proper solution :) Thanks for the help!
  • Conditional compiling depending on target

    6
    0 Votes
    6 Posts
    9k Views
    D
    tamhanna, I think such things should be made by compilation flags, not by header.
  • Problem using Phonon with Windows CE

    3
    0 Votes
    3 Posts
    4k Views
    T
    I had not realised that they were known to be broken, it would be nice if QT said that in their documentation - I guess it is not their time that gets wasted! I will have a look at encapsulating some MS API code into a QT class. All I need to do is play single MP3 files, how hard can it be!!! - I will have to run the code on CE to test it anyway so I guess it is not as bad as it first seems. Thanks for taking the time to reply - wish me luck! If anyone else has written code for Windows to play MP3 files, using native API calls, please feel free to give me some pointers - I know it is off topic, but given the API is broken, it does not seem an unreasonable request. Tim
  • Phnonon-backend

    10
    0 Votes
    10 Posts
    6k Views
    S
    [quote author="nicola1" date="1291394004"]Hi, my error is here: "error log":http://pastebin.com/nVaUaFJs [/quote] Longer log would be much nicer. `QEventDispatcherGlib::QEventDispatcherGlib(QObject*)' It doesn’t find some Glib specific stuff. It means that -lglib doesn’t match. Either you don’t have library in correct place, or more likely, you’ve done something wrong, trying different way of building first and didn’t clean up or something like that. Anyway, need more info.
  • Qt vs Symbian C++

    44
    0 Votes
    44 Posts
    30k Views
    X
    In Australia, Hutchison was purchased by Vodafone. It's now VHA which owns Vodafone and 3. I don't know how this carrier acts towards games downloaded from app stores, however I can assure you no carrier in Australia has a website where you download apps. I hope there aren't many countries with operators modeled on yours (with website stores). I think it's certainly not the majority. So these developers should have no fears in making Qt games.. at least for us Australians :) We are all waiting! Angry Birds (Qt) is a massive hit here. Important to remember that if your app is based on 4.6.3 you won't need to worry about any of that stuff anyway.
  • How to render date and time in Qt using Opengl ES 2.0

    2
    0 Votes
    2 Posts
    2k Views
    ?
    how about using the renderText() call ?
  • QComboBox in a QTableView

    11
    0 Votes
    11 Posts
    15k Views
    G
    I just added the wiki article "Combo Boxes in Item Views ":http://developer.qt.nokia.com/wiki/Combo_Boxes_in_Item_Views. You can use this sample code as a starting point.