symbian

Using a QStyledItemDelegate on a QListView with QSqlQueryModel

好久不见. 提交于 2019-12-18 03:32:24
问题 I have a QListView, that has a QSqlQueryModel set as its model. How can I use a QStyledItemDelegate in order to customise the QListView's rows' appearence (e.g. show 2 text lines) ? QSqlDatabase db = QSqlDatabase::addDatabase( "QSQLITE" ); db.setDatabaseName( "test.db" ); if( !db.open() ) { qDebug() << db.lastError(); qFatal( "Failed to connect." ); } qDebug( "Connected!" ); QSqlQueryModel *sqlModel = new QSqlQueryModel; sqlModel->setQuery("SELECT * FROM entries"); mListWidget->setModel

Need some help in parsing this XML in J2ME platform

☆樱花仙子☆ 提交于 2019-12-17 20:50:05
问题 Below mentioned is my XML, <?xml version="1.0" encoding="utf-8"?> <soap:Envelopexmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <soap:Body> <Response xmlns="http://tempuri.org/"> <Result> <mp_response> <data signature="something"> <outcome errorcode="0" errordescription="" errorsolution=""/> something </data> </mp_response> </Result> </Response> </soap:Body> </soap:Envelope> I wish to

How to get started with Symbian (S60 plattorm)

一曲冷凌霜 提交于 2019-12-17 17:47:11
问题 So at my new job one of the platforms we use is S60 (Nokia phones, Symbian OS) and I am getting curious about it, as well feeling the need to help the team a bit from time to time (I actually work on the server side of things for this software). So any good pointers/recommendations/tutorials and shared experiece that might put me in the right direction ? Thanks 回答1: These days, I think it is nearly impossible to begin native (meaning C++) Symbian software development. Nokia, Sony and Motorola

Rapid application development for Nokia E5 (Symbian S60 v3)

醉酒当歌 提交于 2019-12-13 21:44:59
问题 I often need simple personal apps on my phone and I'd like to make them. I know some programming (C++, Delphi, some Java, MATLAB, Visual Basic). I don't have any idea about where to start, what can I do, how the issue of "app signing" can impact on this. One app should help to manage links between book pages, basically it has to handle a small database in which I can add books (title, ID) and linked pages (couples of numbers). The database must be obviously persistent. The other app should

QListWidget drag and drop items disappearing from list on Symbian

核能气质少年 提交于 2019-12-13 12:34:46
问题 I'm having trouble implementing a QListWidget with custom items that can be reordered by dragging and dropping. The problem is when I make a fast double click (a very short drag&drop) on an item, the item sometimes disappears from the QListWidget. This is the constructor for my Widget: ListPopisiDragDrop::ListPopisiDragDrop(QWidget *parent) : QListWidget(parent) { setSelectionMode(QAbstractItemView::SingleSelection); setDragEnabled(true); viewport()->setAcceptDrops(true); setDefaultDropAction

Implemenation of service in Symbian

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-13 10:35:15
问题 In transient server implementation, the client application is a console-based exe. I want to know if I can integrate my GUI-based appplication with client and server given in transient server. What is the best way? Whether it is good to convert client exe to dll and use the dll in my application using RLibrary. Whether it is good to implement LIB and integrate this into the project. Right now I am able to launch TestClient.exe from my GUI application using startup api. If I want to run the

Symbian C++ Email - Code - App Crash

↘锁芯ラ 提交于 2019-12-13 05:34:32
问题 I am using the following code for send the email in symbian c++ (I am using the Symbian_3_SDK_v0_9_en for developing in Windows 7) I got the application crash when the line "sendAsMessage.CreateL(send, KUidMsgTypeSMTP);" reached. Please assist me.. How to solve this. I am very new to the symbian c++. Thanks in advance RSendAs send; User::LeaveIfError(send.Connect()); CleanupClosePushL(send); RSendAsMessage sendAsMessage; sendAsMessage.CreateL(send, KUidMsgTypeSMTP); CleanupClosePushL

regarding conversion from reference to string

给你一囗甜甜゛ 提交于 2019-12-13 02:22:54
问题 i am doing RSA encryption i want to convert reference of public key class to string so that i can pass to server //declaration const CRSAPrivateKey &iRSAPrivateKey =iRSAKeyPair->PrivateKey(); const CRSAPublicKey &iRSAPublicKey =iRSAKeyPair->PublicKey() ; i have convert &iRSAPublicKey into TBuf i tried lot but fails to convert plz help me out from situation thanks in advance 回答1: If you're using CRSAPublicKey, you probably downloaded the Symbian cryptography library and its documentation from

why can't convert Symbian CRSAPublicKey to descriptor?

有些话、适合烂在心里 提交于 2019-12-12 01:46:10
问题 code as following: const CRSAPublicKey& iRSAPublicKey = mRSAKeyPair->PublicKey(); const TInteger& e = iRSAPublicKey.E(); HBufC8* exponent8 = e.BufferLC(); //failed to get the right result,it's garbled TInt ei = e.ConvertToLongL(); //converted successfully,ei=65537 can anyone tell me why BufferLC() doesn't work?is something important i just have missed?,and how to convert a TInterger to descriptor? thanks in advance. 回答1: It't not garbled, it just the integer's binary representation as stated

How can I have a dynamically changing menu in a single QMainWindow, multiple nested QWidgets application on Symbian Qt?

烈酒焚心 提交于 2019-12-12 01:35:26
问题 My application consists of one QMainWindow, and a nested QStackWidget containing the rest of the application "forms". I would like to have a soft-key activated menu on each of those sub forms. How is this possible? 回答1: Hi sabbour here is the link,which gives you a detailed info, perhaps this could be very useful 回答2: You need to create the Multiple widgets and associated menu items, when you load the widget in stack, you need to load your menu items accordingly in the mainwindow menu bar.