Re: Dependency problems after PR 1.2 update to extras builder
would building QT4.6 apps by linking with libqt4-maemo5* still work ? AFAIK , these libqt4-maemo5* are still being kept for QT4.7 development. Now if that is true, atleast for the QT4.6 apps still in extras-devel we can still upload to the repository and it will work on the device as well. Im aware they cant be promoted to extras-testing due to the bloack but atleast users and developers using the app from extras-devel will be able to use it this way. Once PR1.2 is on the device we can link these back to libqt4-* as they will be version 4.6 then on the device. Anybody tried it yet or is this not possible ? - Original Message - From: ianaré sévi Sent: 03/29/10 05:58 PM To: Dave Neary Subject: Re: Dependency problems after PR 1.2 update to extras builder OK got it to work, I simply set the Qt dependencies to 4.5 (instead of 4.6) manually instead on relying on the builder scripts ... - ianaré sévi 2010/3/29 Dave Neary dne...@maemo.org: Hi, Marcin Juszkiewicz wrote: No, I am not kidding. It was discussed here on mailing list and announced that Extras autobuilder will be updated to PR 1.2 compatible SDK and that resulting packages will be installable only on devices owned by Nokia employed people (and some from cooperating companies). Other users (and developers) have to wait for next firmware drop (which does not have release date as usual so it can be tomorrow or in next year). Now now Marcin, that's not what was said. what was said was that software built with the PR 1.2 SDK would probably only install on devices with PR 1.2 installed. That's not the same thing. ianaré, normally all you have to do is upgrade the firmware on your N900 to PR 1.2, as I understand it. Cheers, Dave. -- maemo.org docsmaster Email: dne...@maemo.org Jabber: bo...@jabber.org ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: How to use MySQL with Maemo 5?
have you tried to install libqt4 mysql plugin ? This should help in case you havent already seen it http://doc.trolltech.com/4.6/sql-driver.html#qmysql http://doc.trolltech.com/4.6/sql-driver.html#qmysql http://doc.trolltech.com/4.6/sql-driver.html#qmysql - Original Message - From: Sascha Mäkelä Sent: 03/30/10 06:57 AM To: maemo-developers Subject: How to use MySQL with Maemo 5? I'm trying to retrieve data from a MySQL server. I use the following example code (with some slight modifications): Code: QSqlDatabase db = QSqlDatabase::addDatabase(QMYSQL); db.setHostName(bigblue); db.setDatabaseName(flightdb); db.setUserName(acarlson); db.setPassword(1uTbSbAs); bool ok = db.open();But I get the following error: Quote: QSqlDatabase: QMYSQL driver not loaded QSqlDatabase: available drivers: QSQLITEIs MySQL even supported in Maemo or am I doing something wrong? I also found the following two links: http://qt.nokia.com/doc/4.6/sql-driver.html http://qt.nokia.com/doc/4.6/sql-driver.html http://qt.nokia.com/doc/4.6/install-x11.html http://qt.nokia.com/doc/4.6/install-x11.html But I'm not quite sure where I should install these drivers. Should I install them in my Windows computer, where I'm using MADDE and Qt Creator (well, actually I'm using now the Qt Creator 2.0 Technology Preview, so I'm not quite sure if it's using MADDE any more)? Or should I install them on the target N900? Or both? Or am I completely on the wrong tracks here? Any help would be greatly appreciated. Cheers, Sascha ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: How to use MySQL with Maemo 5?
sorry I didnt read the message below your error :p please ignore my message, will post when I get a chance to see it in detail. I've used sqllite on Linux and its just a matter of installing the plugins required for dev/runtime env. - Original Message - From: Ram Kurvakat Sent: 03/30/10 07:52 AM To: Sascha Mäkelä, maemo-developers Subject: Re: How to use MySQL with Maemo 5? have you tried to install libqt4 mysql plugin ? This should help in case you havent already seen it http://doc.trolltech.com/4.6/sql-driver.html#qmysql http://doc.trolltech.com/4.6/sql-driver.html#qmysql http://doc.trolltech.com/4.6/sql-driver.html#qmysql - Original Message - From: Sascha Mäkelä Sent: 03/30/10 06:57 AM To: maemo-developers Subject: How to use MySQL with Maemo 5? I'm trying to retrieve data from a MySQL server. I use the following example code (with some slight modifications): Code: QSqlDatabase db = QSqlDatabase::addDatabase(QMYSQL); db.setHostName(bigblue); db.setDatabaseName(flightdb); db.setUserName(acarlson); db.setPassword(1uTbSbAs); bool ok = db.open();But I get the following error: Quote: QSqlDatabase: QMYSQL driver not loaded QSqlDatabase: available drivers: QSQLITEIs MySQL even supported in Maemo or am I doing something wrong? I also found the following two links: http://qt.nokia.com/doc/4.6/sql-driver.html http://qt.nokia.com/doc/4.6/sql-driver.html http://qt.nokia.com/doc/4.6/install-x11.html http://qt.nokia.com/doc/4.6/install-x11.html But I'm not quite sure where I should install these drivers. Should I install them in my Windows computer, where I'm using MADDE and Qt Creator (well, actually I'm using now the Qt Creator 2.0 Technology Preview, so I'm not quite sure if it's using MADDE any more)? Or should I install them on the target N900? Or both? Or am I completely on the wrong tracks here? Any help would be greatly appreciated. Cheers, Sascha ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: OT: Cannot select targets - where's the session PID file?
log out of all your scratchbox env except one. type sb-menu. select kill all processes in scratch box. then try it :-) - Original Message - From: Christoph Eckert Sent: 03/30/10 10:59 AM To: maemo-developers@maemo.org Subject: OT: Cannot select targets - where's the session PID file? Hi, a bit off-topic, but I hope someone has seen such an issue before. When I do an sb-conf select FREMANTLE_X86 sb-conf complains You must close your other Scratchbox sessions first There is no other session open, though. I guess I closed a shell window yesterday without logging out properly from scratchbox, so a session PID file (or similar) remained in place. Does anyone know whether I can fix this issue by removing some file manually? Best regards, ce ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: Dependency problems after PR 1.2 update to extras builder
replying to my own message since it didnt interest anybody :) Ive just been confirmed that this works for now as a temporary workaround for developers using QT4.6 on a PR1.2 SDK and uploading to extras devel/testing. It would still work on the device. - Original Message - From: Ram Kurvakat Sent: 03/29/10 06:07 PM To: ianaré sévi, Dave Neary Subject: Re: Dependency problems after PR 1.2 update to extras builder would building QT4.6 apps by linking with libqt4-maemo5* still work ? AFAIK , these libqt4-maemo5* are still being kept for QT4.7 development. Now if that is true, atleast for the QT4.6 apps still in extras-devel we can still upload to the repository and it will work on the device as well. Im aware they cant be promoted to extras-testing due to the bloack but atleast users and developers using the app from extras-devel will be able to use it this way. Once PR1.2 is on the device we can link these back to libqt4-* as they will be version 4.6 then on the device. Anybody tried it yet or is this not possible ? - Original Message - From: ianaré sévi Sent: 03/29/10 05:58 PM To: Dave Neary Subject: Re: Dependency problems after PR 1.2 update to extras builder OK got it to work, I simply set the Qt dependencies to 4.5 (instead of 4.6) manually instead on relying on the builder scripts ... - ianaré sévi 2010/3/29 Dave Neary dne...@maemo.org: Hi, Marcin Juszkiewicz wrote: No, I am not kidding. It was discussed here on mailing list and announced that Extras autobuilder will be updated to PR 1.2 compatible SDK and that resulting packages will be installable only on devices owned by Nokia employed people (and some from cooperating companies). Other users (and developers) have to wait for next firmware drop (which does not have release date as usual so it can be tomorrow or in next year). Now now Marcin, that's not what was said. what was said was that software built with the PR 1.2 SDK would probably only install on devices with PR 1.2 installed. That's not the same thing. ianaré, normally all you have to do is upgrade the firmware on your N900 to PR 1.2, as I understand it. Cheers, Dave. -- maemo.org docsmaster Email: dne...@maemo.org Jabber: bo...@jabber.org ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers https://lists.maemo.org/mailman/listinfo/maemo-developers ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers https://lists.maemo.org/mailman/listinfo/maemo-developers ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: madde and Qt State Machine
to support QT4.6 in MADDE you could try this for now. http://labs.trolltech.com/blogs/2010/02/15/qt-462-for-maemo-5-released/ - Original Message - From: Ville M. Vainio Sent: 04/02/10 08:49 PM To: ac...@dsic.upv.es Subject: Re: madde and Qt State Machine On Fri, Apr 2, 2010 at 10:31 PM, ac...@dsic.upv.es wrote: Hi, I am trying to develop and application on Qt using the state machine frameword. All is fine for linux and windows, buy when I use madde for compiling it. It does not fount the #include QStateMachine library. State machine is Qt 4.6 stuff, Madde still has the old 4.5.3. Madde will have 4.6 when PR1.2 for N900 is out. -- Ville M. Vainio http://tinyurl.com/vainio ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: madde and Qt State Machine
- Original Message - From: ac...@dsic.upv.es Sent: 04/02/10 08:52 PM To: Ville M. Vainio Subject: Re: madde and Qt State Machine Thank you very much for your aswer, Could I for the moment compile it through the scratch box the actual Maemo SDK? Thanks, A. Cano Quoting Ville M. Vainio vivai...@gmail.com: yes the SDK for PR1.2 supports QT4.6 by default. Your compilation should work in the scratchbox environment. On Fri, Apr 2, 2010 at 10:31 PM, ac...@dsic.upv.es wrote: Hi, I am trying to develop and application on Qt using the state machine frameword. All is fine for linux and windows, buy when I use madde for compiling it. It does not fount the #include QStateMachine library. State machine is Qt 4.6 stuff, Madde still has the old 4.5.3. Madde will have 4.6 when PR1.2 for N900 is out. -- Ville M. Vainio http://tinyurl.com/vainio This message was sent using IMP, the Internet Messaging Program. ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: PR1.2 SDK for Extras-devel: how to solve?
I would like to throw in my 2 pence as well for what its worth. The idea is to give a choice to the developer to choose which SDK the autobuilder needs to use and to which repo the app needs to go to. Providing an option in the debian control file to build against the user specified SDK since the developer knows what SDK he/she uses. e.g: Xsbc-sdk : PR1.2 Also, we can maintain n and n-1 version of the repository at any time to limit the number of maemo OS trunks. does it look feasible ? - Original Message - From: Andrew Flegg Sent: 04/07/10 03:41 PM To: Bryan Jacobs Subject: Re: PR1.2 SDK for Extras-devel: how to solve? On Wed, Apr 7, 2010 at 15:13, Bryan Jacobs n...@landwarsin.asia wrote: It seems to me that the real problem is actually the difficulty in implementing #4 above. If there were magically separate infrastructure for each incompatible release, there would be no issue - a developer uploads their package to each repository for which it builds (preferably through a list of checkboxes in the web interface), and a user selects one or more package sources that match the preinstalled software on their device. No problems, mate. True; however what about the QA process? The UI at http://maemo.org/packages/ is getting better, but it's also getting more familiar. How do we: a) not confuse ad-hoc testers b) ensure that versions in all repos get tested? One suggestion would be to promote all versions simultaneously, but there are obvious drawbacks with that! So the real issue is that creating a new branch requires a nontrivial amount of work. This is a computerized system; computers excel at automation. Why not spend the one-off time to allow for near-instant creation of a new branch? Once that's done, future releases will just consist of oh, I should create a new repository for this release. Let me run that script again with a new name and then upload the new SDK release to it. Indeed. Have I missed some important consideration? I think the issues aren't technical (although streamlining the repo creation is obviously part of it), but more procedural. I could be wrong. I wonder what the testing squad think (I'll poke VDVsx). Cheers, Andrew -- Andrew Flegg -- mailto:and...@bleb.org | http://www.bleb.org/ Maemo Community Council chair ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
problems uploading to non-free repository
hello, Ive seen many bugs related to this issue, which have been marked as solved. for example: https://bugs.maemo.org/show_bug.cgi?id=3354 https://bugs.maemo.org/show_bug.cgi?id=8077 https://bugs.maemo.org/show_bug.cgi?id=4241 Ive been getting this error today while uploading to the non-free section Uploading to fremantle-extras-devel-non-free (via scp to drop.maemo.org): Permission denied (publickey). lost connection Warning: The execution of '/usr/bin/scp' as 'scp -p /home/krk969/buddy_0.1-1_armel.deb /home/krk969/buddy_0.1-1_armel.changes krk...@drop.maemo.org:/var/www/extras-devel/incoming-nonfree/fremantle' returned a nonzero exit code. Error while uploading. could anybody help me with this please ? does it have anything to do with the public ssh key in my garage account page ? I have no clue what Im doing wrong. thanks Ram ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: problems uploading to non-free repository
thanks a mil Niel ! that did it. -Ram - Original Message - From: Niels Breet Sent: 04/21/10 01:30 PM To: Ram Kurvakat Subject: Re: problems uploading to non-free repository hello, Hi, Ive been getting this error today while uploading to the non-free section Uploading to fremantle-extras-devel-non-free (via scp to drop.maemo.org): Permission denied (publickey). lost connection Warning: The execution of '/usr/bin/scp' as 'scp -p /home/krk969/buddy_0.1-1_armel.deb /home/krk969/buddy_0.1-1_armel.changes krk...@drop.maemo.org:/var/www/extras-devel/incoming-nonfree/fremantle' returned a nonzero exit code. Error while uploading. could anybody help me with this please ? does it have anything to do with the public ssh key in my garage account page ? I have no clue what Im doing wrong. Frankly speaking, you made a mess :) You pasted both your ssh key fingerprint, username and actual pubkey in the entry field. That will never work. I have tried to clean up the entry, so it should work better for you now. thanks Ram -- Niels Breet maemo.org webmaster ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: PyQt ForegroundRole
Not a 100% sure, but I think this is due to the QMaemo5 style implementation you are not able to do it. Think Ive faced the issue before. Is there a chance you could try with a delegate for your columns, thats worked for me. Implementing the paint(). P.S. i dont use python, I use C++, hence I didnt paste the example. cheers, Ram - Original Message - From: SC Sent: 04/29/10 11:16 AM To: maemo-developers@maemo.org Subject: PyQt ForegroundRole Hello, I've been struggling getting ForegroundRole http://doc.trolltech.com/4.6/qt.html to work properly so I can change the text color of certain cells in QTableView. I took an example from http://www.daniweb.com/forums/thread191210-7.html http://www.daniweb.com/forums/thread191210-7.html and added the following in the data(...) method: elif role == Qt.ForegroundRole: return QBrush(QColor(255, 0, 0)) When I run it on my Windows PC, the font color is set to red for all the cells but does not seem to have an effect on my N900. Is there any Maemo-specific calls that I am missing here? # http://www.daniweb.com/forums/thread191210-7.html http://www.daniweb.com/forums/thread191210-7.html import operator from PyQt4.QtCore import * from PyQt4.QtGui import * class MyWindow(QWidget): def __init__(self, data_list, header, *args): QWidget.__init__(self, *args) # setGeometry(x_pos, y_pos, width, height) self.setGeometry(300, 200, 420, 250) self.setWindowTitle(Exploring PyQT's QTableView) table_model = MyTableModel(self, data_list, header) table_view = QTableView() table_view.setModel(table_model) # enable sorting table_view.setSortingEnabled(True) layout = QVBoxLayout(self) layout.addWidget(table_view) self.setLayout(layout) class MyTableModel(QAbstractTableModel): def __init__(self, parent, mylist, header, *args): QAbstractTableModel.__init__(self, parent, *args) self.mylist = mylist self.header = header def rowCount(self, parent): return len(self.mylist) def columnCount(self, parent): return len(self.mylist[0]) def data(self, index, role): if not index.isValid(): return QVariant() # - # Works on Windows PC but not on N900 # - elif role == Qt.ForegroundRole: return QBrush(QColor(255, 0, 0)) elif role != Qt.DisplayRole: return QVariant() return QVariant(self.mylist[index.row()][index.column()]) def headerData(self, col, orientation, role): if orientation == Qt.Horizontal and role == Qt.DisplayRole: return QVariant(self.header[col]) return QVariant() def sort(self, col, order): sort table by given column number col self.emit(SIGNAL(layoutAboutToBeChanged())) self.mylist = sorted(self.mylist, key=operator.itemgetter(col)) if order == Qt.DescendingOrder: self.mylist.reverse() self.emit(SIGNAL(layoutChanged())) header = ['First Name', 'Last Name', 'Age', 'Weight'] # a list of (name, age, weight) tuples data_list = [ ('Heidi', 'Kalumpa', '36', '127'), ('Frank', 'Maruco', '27', '234'), ('Larry', 'Pestraus', '19', '315'), ('Serge', 'Romanowski', '59', '147'), ('Carolus', 'Arm', '94', '102'), ('Michel', 'Sargnagel', '21', '175') ] app = QApplication([]) win = MyWindow(data_list, header) win.show() app.exec_() ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: Noob question re Qt Application structure
just my 2 pence worth. you should perhaps try to make 2 different apps for it. 1 which runs as a daemon and invoked on startup using an upstart http://upstart.ubuntu.com/getting-started.html script. and the other a GUI based app , that can interact with your daemon, via files, sockets, any which way. cheers Ram - Original Message - From: Scifi Guy Sent: 05/07/10 03:26 PM To: maemo-developers@maemo.org Subject: Noob question re Qt Application structure Hi All, I am developing a Qt4.6 based application that monitors outgoing international calls (by connecting to relevant DBUS signals) and routes them via a calling card number. I have developed a configuration UI widget (QWidget subclass) to enable/disable such routing. The problem is that the UI widget code and DBUS slots code are all in the same class. If I launch the application, the UI widget is shown. This is the code in my main.cpp. #include QtGui/QApplication #include eventmonitor.h #include QDebug int main(int argc, char *argv[]) { QApplication a(argc, argv); EventMonitor w; w.show(); return a.exec(); } EventMonitor is a QWidget subclass which also has functions to connect to DBUS signals. My aim is to separate the functionality into two different classes. The class with DBus slots should be running as a daemon which is invoked on startup. The class with QWidget (config screen) should be invoked when user launches the app from the applications menu. Think on the lines of AutoDisconnect. What is the best way to achieve this? Let me know if you want me to post more code. Thanks Regards, Sudheer - The New Busy is not the old busy. Search, chat and e-mail from your inbox. Get started. http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_3 ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
RE: Noob question re Qt Application structure
assuming you have the communication between the GUI and daemon in place. you could always launch a daemon ( this is not running ) using QProcess http://doc.trolltech.com/4.6/qprocess.html and shutdown by listening to a custom DBUS message or similar communication. -Ram - Original Message - From: Scifi Guy Sent: 05/07/10 04:24 PM To: ian...@gmail.com, rkma...@gmx.com Subject: RE: Noob question re Qt Application structure Hi Ram ianaré, Thank you for the response. Creating two apps makes sense. I was trying to avoid user having to install two apps for one feature. But it is not a big deal i guess (If i set the dependencies properly). Here is another question though. How I do launch/kill the daemon app from the GUI app? This is required when user chooses enable/disable application from GUI app. I can exit the daemon by receiving a custom DBUS signal but how do I launch it? Thanks Regards, Sudheer P.S: Sometimes 2 cents is worth more than a million :) Date: Fri, 7 May 2010 10:54:15 -0400 Subject: Re: Noob question re Qt Application structure From: ian...@gmail.com To: rkma...@gmx.com CC: scifi@hotmail.com; maemo-developers@maemo.org I second that opinion. Subclassing by functionality is definitely good for a single app, but if you need to have the two parts running at different times a daemon app and a GUI app is the way to go. Another option you could use to interact with your two apps is through dbus itself, ince you will already be using that kind of code. - ianaré sévi 2010/5/7 Ram Kurvakat rkma...@gmx.com: just my 2 pence worth. you should perhaps try to make 2 different apps for it. 1 which runs as a daemon and invoked on startup using an upstart script. and the other a GUI based app , that can interact with your daemon, via files, sockets, any which way. cheers Ram - Original Message - From: Scifi Guy Sent: 05/07/10 03:26 PM To: maemo-developers@maemo.org Subject: Noob question re Qt Application structure Hi All, I am developing a Qt4.6 based application that monitors outgoing international calls (by connecting to relevant DBUS signals) and routes them via a calling card number. I have developed a configuration UI widget (QWidget subclass) to enable/disable such routing. The problem is that the UI widget code and DBUS slots code are all in the same class. If I launch the application, the UI widget is shown. This is the code in my main.cpp. #include QtGui/QApplication #include eventmonitor.h #include QDebug int main(int argc, char *argv[]) { QApplication a(argc, argv); EventMonitor w; w.show(); return a.exec(); } EventMonitor is a QWidget subclass which also has functions to connect to DBUS signals. My aim is to separate the functionality into two different classes. The class with DBus slots should be running as a daemon which is invoked on startup. The class with QWidget (config screen) should be invoked when user launches the app from the applications menu. Think on the lines of AutoDisconnect. What is the best way to achieve this? Let me know if you want me to post more code. Thanks Regards, Sudheer The New Busy is not the old busy. Search, chat and e-mail from your inbox. Get started. ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers https://lists.maemo.org/mailman/listinfo/maemo-developers - Hotmail is redefining busy with tools for the New Busy. Get more from your inbox. See how. http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_2 ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: Displaying the information of the MMC card and the phone memory
not sure if you are using the QT framework for writing your code. have you considered using the QT mobility framework, its still beta, but seems close to completion/delivery. *for storage device info.* http://doc.qt.nokia.com/qtmobility-1.0/qsystemstorageinfo.html http://doc.qt.nokia.com/qtmobility-1.0/qsystemstorageinfo.html *status of the api's* http://doc.qt.nokia.com/qtmobility-1.0/index.html#platform-compatability http://doc.qt.nokia.com/qtmobility-1.0/index.html#platform-compatability http://qt.nokia.com/developer/new-qt-apis http://qt.nokia.com/developer/new-qt-apis if you arent using QT, then how about some command line stuff ? http://wiki.maemo.org/Desktop_Command_Execution_Widget_scripts#Disk_usage http://wiki.maemo.org/Desktop_Command_Execution_Widget_scripts#Disk_usage you could also use hal-device command to get various device info. cheers krk969 - Original Message - From: Pallavi Kandhare Sent: 05/12/10 06:39 AM To: maemo-developers@maemo.org Subject: Displaying the information of the MMC card and the phone memory Hi All I want to write code in Maemo for the foll: 1. Displaying the information of the MMC card and the phone memory (ie. used space, free space) When i use functions in libhal-storage.h i get an error: undefined reference to function_name 2. On mobile certain aplications are running at a time. (ed. clock, calender etc). How can i find out and list all these applications. Can anybody help me with the API or any info in this matter? Regards. ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: upstart and dbus
I cant provide a full solution now but to use the session bus you will need the session bus address I think which changes every restart. Are you doing that in your upstart script already ? ( setting the dbus session address something like here /tmp/session_bus_address.user ) -krk969 - Original Message - From: b0unc3 Sent: 05/12/10 08:52 PM To: maemo-developers Subject: upstart and dbus Hello, I've wrote a little daemon that basically listen on DBus for some events and now I want to automatically start it through upstart. But, upstart doesn't like my app :( I discovered that if I use a DBUS_BUS_SYSTEM for the DBusConnection, everything works fine. Instead, if I use a DBUS_BUS_SESSION it makes upstart fails to start my app. Any hints? Thanks. ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: Qt question: How to automatically enable numeric input mode for a field?
use input method hints - Original Message - From: Sudheer K. Sent: 05/13/10 11:04 PM To: Maemo Dev Mailing List Subject: Qt question: How to automatically enable numeric input mode for a field? Hi, I want to create a phone number field (QLineEdit) in my configuration widget. User can enter numbers and '+' or 'p' characters in the field. The key thing is I don't want the users to use the Fn key everytime they have to edit the number. Application should automatically enable number entry and allow users to enter numbers only. Users can use Fn key to enter '+' or 'p' if needed. The expected functionality is similar to adding a new phone number for a contact in addressbook. How can I do this in Qt? Regards, Sudheer - The New Busy think 9 to 5 is a cute idea. Combine multiple calendars with Hotmail. Get busy. http://www.windowslive.com/campaign/thenewbusy?tile=multicalendarocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_5 ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: Qt question: How to automatically enable numeric input mode for a field?
sorry my previous message was sent before I finished typing... anyways use input method hints.. http://doc.trolltech.com/4.6/qt.html#InputMethodHint-enum http://doc.trolltech.com/4.6/qt.html#InputMethodHint-enum something like this - Original Message - From: Sudheer K. Sent: 05/13/10 11:04 PM To: Maemo Dev Mailing List Subject: Qt question: How to automatically enable numeric input mode for a field? Hi, I want to create a phone number field (QLineEdit) in my configuration widget. User can enter numbers and '+' or 'p' characters in the field. The key thing is I don't want the users to use the Fn key everytime they have to edit the number. Application should automatically enable number entry and allow users to enter numbers only. Users can use Fn key to enter '+' or 'p' if needed. The expected functionality is similar to adding a new phone number for a contact in addressbook. How can I do this in Qt? Regards, Sudheer - The New Busy think 9 to 5 is a cute idea. Combine multiple calendars with Hotmail. Get busy. http://www.windowslive.com/campaign/thenewbusy?tile=multicalendarocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_5 ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: Qt question: How to automatically enable numeric input mode for a field?
I dont know whats wrong with my mail client now, a control C just sends the message so sorry my previous message(s) were sent before I finished typing... anyways use input method hints.. http://doc.trolltech.com/4.6/qt.html#InputMethodHint-enum http://doc.trolltech.com/4.6/qt.html#InputMethodHint-enum something like this linedit-setInputMethodHints(Qt::ImhDigitsOnly); - krk969 - Original Message - From: Sudheer K. Sent: 05/13/10 11:04 PM To: Maemo Dev Mailing List Subject: Qt question: How to automatically enable numeric input mode for a field? Hi, I want to create a phone number field (QLineEdit) in my configuration widget. User can enter numbers and '+' or 'p' characters in the field. The key thing is I don't want the users to use the Fn key everytime they have to edit the number. Application should automatically enable number entry and allow users to enter numbers only. Users can use Fn key to enter '+' or 'p' if needed. The expected functionality is similar to adding a new phone number for a contact in addressbook. How can I do this in Qt? Regards, Sudheer - The New Busy think 9 to 5 is a cute idea. Combine multiple calendars with Hotmail. Get busy. http://www.windowslive.com/campaign/thenewbusy?tile=multicalendarocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_5 ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
RE: Qt question: How to automatically enable numeric input mode for a field?
have you tried this - Original Message - From: Sudheer K. Sent: 05/13/10 11:54 PM To: rkma...@gmx.com, Maemo Dev Mailing List Subject: RE: Qt question: How to automatically enable numeric input mode for a field? - Date: Fri, 14 May 2010 00:34:48 +0200 From: rkma...@gmx.com Subject: RE: Qt question: How to automatically enable numeric input mode for a field? To: scifi@hotmail.com; maemo-developers@maemo.org hi sudheer, as far as I know this is what its actually supposed to do , else it may be a bug. btw this works only in QT4.6. http://doc.trolltech.com/qt-maemo-4.6/qgraphicsitem.html#inputMethodHints http://doc.trolltech.com/qt-maemo-4.6/qgraphicsitem.html#inputMethodHints http://doc.trolltech.com/qt-maemo-4.6/qgraphicsitem.html#inputMethodHints ive tried this in a spin box and it works. - krk969 Hi Ram, Here is the code that I am using. The hint is working fine for virtual keyboard, but I am looking for a physical keyboard solution. The physical keyboard input mode should automatically change to numeric for this field. What am I missing here? lineEditCallingCardNumber = new QLineEdit(formLayoutWidget); lineEditCallingCardNumber-setObjectName(QString::fromUtf8(lineEditCallingCardNumber)); lineEditCallingCardNumber-setInputMethodHints(Qt::ImhDialableCharactersOnly); - Hotmail has tools for the New Busy. Search, chat and e-mail from your inbox. Learn more. http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_1 ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
RE: Qt question: How to automatically enable numeric input mode for a field?
have you tried this hint ? ( this worked for the spin box, I could use the hardware keyboard without pressing Fn ) Qt::ImhDigitsOnly Qt::ImhFormattedNumbersOnly didnt work for me , for the spin box , I needed a dot (.) , since I was using a double spinbox. I'll be raising a bug for that, perhaps even the hint you are using below has similar issues. WHen I spoke to some QT team members , what they told me was this should be done by default for some widgets, for example the spinbox there shouldnt be a need to explicitly hint, it should be default, so it seems there could be issues to iron out here. try using the above working hint and see how it goes. -krk969 - Original Message - From: Sudheer K. Sent: 05/13/10 11:54 PM To: rkma...@gmx.com, Maemo Dev Mailing List Subject: RE: Qt question: How to automatically enable numeric input mode for a field? - Date: Fri, 14 May 2010 00:34:48 +0200 From: rkma...@gmx.com Subject: RE: Qt question: How to automatically enable numeric input mode for a field? To: scifi@hotmail.com; maemo-developers@maemo.org hi sudheer, as far as I know this is what its actually supposed to do , else it may be a bug. btw this works only in QT4.6. http://doc.trolltech.com/qt-maemo-4.6/qgraphicsitem.html#inputMethodHints http://doc.trolltech.com/qt-maemo-4.6/qgraphicsitem.html#inputMethodHints http://doc.trolltech.com/qt-maemo-4.6/qgraphicsitem.html#inputMethodHints ive tried this in a spin box and it works. - krk969 Hi Ram, Here is the code that I am using. The hint is working fine for virtual keyboard, but I am looking for a physical keyboard solution. The physical keyboard input mode should automatically change to numeric for this field. What am I missing here? lineEditCallingCardNumber = new QLineEdit(formLayoutWidget); lineEditCallingCardNumber-setObjectName(QString::fromUtf8(lineEditCallingCardNumber)); lineEditCallingCardNumber-setInputMethodHints(Qt::ImhDialableCharactersOnly); - Hotmail has tools for the New Busy. Search, chat and e-mail from your inbox. Learn more. http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_1 ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: Stats at Maemo repository
Hi Adrian, have you looked here(http://repository.maemo.org/extras/dists/fremantle/install/) to see the packages ( apps + libs ) ? The numbers there seem to be slightly lesser than the numbers you originally posted for extras-free. So just wanted to check with you how you get those numbers, and what is the right way. Thanks for the effort. cheers krk969 - Original Message - From: Adrian Yanes Sent: 05/17/10 01:36 PM To: Attila Csipa Subject: Re: Stats at Maemo repository A dump of this database will be useful for me and I guess that for someone else. Could be it possible? If you are tracking this numbers for a long time, maybe we can find some interesting numbers there. Thanks in advance. Adrian. On 17 May 2010 13:14, Attila Csipa ma...@csipa.in.rs wrote: On Monday 17 May 2010 09:11:01 Andrew Flegg wrote: On Mon, May 17, 2010 at 08:06, Thomas Schmidt tschm...@debian.org wrote: Am Montag, den 17.05.2010, 00:38 +0300 schrieb Adrian Yanes: I was thinking in the last weeks, to implement some mechanism/system to have stats of Maemo Repositories. IMHO it would be way more useful to only list unique packages, because your numbers seem to include all package versions ever uploaded to extras. (Old versions of packages are still not removed from the package indexes afaik.) Another suggestion: separate out packages in Section: user/... from the others so we can see how many user-facing packages are there. You might not be aware, but AppWatch keeps a database of the number and version of packages (plus a separate stat for user/... section). It also has a history of nearly every package in Fremantle and Diablo repositories. This database has not yet been documented or advertised publicly, just used by AppWatch itself, but still it's there and free to use if there is interest. Regards, Attila ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: maemo.org Packages interface maintenance break now.
Niels, will the extras-devel/testing repos for the non-free section also be updated to point to the right SDK. at the moment I think they still point to the old PR1.1 Thanks and Regards krk969 - Original Message - From: Niels Breet Sent: 05/25/10 10:18 PM To: maemo-developers@maemo.org Subject: Re: maemo.org Packages interface maintenance break now. Most repositories have been updated in the Packages interface. Tomorrow I will add the fremantle-1.2 repository for Extras and add the SSU repository so the new Qt dependencies can be properly resolved by the interface. - Niels Hi, The maemo.org Packages interface will be updated now. New SDK repositories and firmware package versions will be imported, during the update you might see some error messages or broken pages. I'll reply to this list when the update is done. -- Niels Breet maemo.org webmaster ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
QT4.6 with PR1.2 has introduced issues
Hello, I have seen a few issues with the QT 4.6 version released with PR1.2. I've been using QT4.6 since PR1.1 and there seems to be these annoying changes since. I've provided some links to marked images to explain the issue so its easier to comprehend. Issue1 : http://bit.ly/cYPtRW http://bit.ly/cYPtRW Issue2 : http://bit.ly/cPjtAG http://bit.ly/cPjtAG Issue3 : http://bit.ly/a5E4sk http://bit.ly/a5E4sk Could somebody please throw some light on these issues since it appears in all development Ive done using QT4.6 from PR1.1. These changes were totally unexpected and not only that, it seems anything than an improvement, maybe even bugs. Please do not answer this by saying QT4.6 on PR1.1 was a beta deveopment version, in that case it seems then from the examples above the beta version was more proper. Thanks a lot for any help with this. cheers -- krk969 (Ram) ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: QT4.6 with PR1.2 has introduced issues
Daniil, Robin or anyone did you get a chance to look at this one please ? thanks for your time, cheers krk969 - Original Message - From: Ram Kurvakat Sent: 05/29/10 10:32 AM To: Maemo-developers, virot...@viroteck.net, Daniil Ivanov Subject: Re: QT4.6 with PR1.2 has introduced issues Here is the example requested. Compile the example with qmake from * /opt/qt4-maemo5/bin* which is QT4.6 in PR1.1 and run on the device with QT4.6 libs from PR1.1 installed in */opt/qt4-maemo5/lib* *~$: ldd TEMP2* libQtGui.so.4 = /opt/qt4-maemo5/lib/libQtGui.so.4 (0x40142000) libQtCore.so.4 = /opt/qt4-maemo5/lib/libQtCore.so.4 (0x40bfd000) *and this is the* *result* http://bit.ly/bH2ApK http://bit.ly/bH2ApK Then Compile the example with qmake from * /usr/bin* which is QT4.6 in PR1.2 and run on the device with QT4.6 libs from PR1.2 installed in */usr/lib* *~$: ldd TEMP2* libQtGui.so.4 = /usr/lib/libQtGui.so.4 (0x40139000) libQtCore.so.4 = /usr/lib/libQtCore.so.4 (0x40bf4000) *and you will see this* http://bit.ly/bIpRi0 http://bit.ly/bIpRi0 I think some default alignments may have been changed in the styles. Thanks again for taking a look. #include QtGui #include QApplication int main(int argc, char* argv[]) { QApplication app(argc, argv); QDialog *dialog = new QDialog; QScrollArea *scroll = new QScrollArea; QWidget* widget = new QWidget(scroll); // Currency code QLineEdit *currency = new QLineEdit(dialog); // Date format QStringList dateformatlist; dateformatlist dd-MM- MM-dd- dd-MMM- MMM-dd-; QComboBox *dateformat = new QComboBox; // Graph Period QStringList periodlist; periodlist current day current month current week current year; QComboBox *graphperiod = new QComboBox; dialog-setStyleSheet(QDialog { border: 2px solid #8f8f91; ; border-radius: 15px; }); QFormLayout *layout = new QFormLayout; layout-addRow(currency code : , currency); layout-addRow(display date format : , dateformat); layout-addRow(default reports period: , graphperiod); widget-setLayout(layout); QHBoxLayout *mainlayout = new QHBoxLayout; scroll-setWidget(widget); mainlayout-addWidget(scroll, 0, Qt::AlignVCenter); dialog-setLayout(mainlayout); dialog-show(); return app.exec(); } - Original Message - From: Robin Burchell Sent: 05/28/10 10:36 AM To: Daniil Ivanov Subject: Re: QT4.6 with PR1.2 has introduced issues On Fri, May 28, 2010 at 7:25 AM, Daniil Ivanov daniil.iva...@gmail.com wrote: Hi Ram! Screenshots do not say anything. Without seeing the code it's not possible to say if it's because of problems with the way how you constructed layouts of the widgets or with Qt styles. Seconding what Daniil says - to try pinpoint your issue (and look for workarounds or fixes), please produce a minimal testcase. That is, a *minimal* example (as little code as possible, please! can't emphasise how important this is) which demonstrates the incorrect behaviour you are talking about. :) Thanks, Daniil. Best, Robin Burchell mob: +447702671419 msn: m...@viroteck.net irc: w00t @ irc.freenode.net twr: http://twitter.com/w00teh http://twitter.com/w00teh lac: http://identi.ca/w00t http://identi.ca/w00t ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: QT4.6 with PR1.2 has introduced issues
-- Sent from my Nokia N900 - Original message - Hi Ram! Could you please post this questions to FN DiBo? A Hi Daniil, yes of course i can. I was asked for examples here so i replied. FN DiBo = forum nokia discussion board ? BTW, why do create dialog dynamically and never free it? This is an example only to show the issue. Thanks, Daniil. On Tue, Jun 1, 2010 at 10:59 AM, Ram Kurvakat rkma...@gmx.com wrote: Daniil, Robin or anyone did you get a chance to look at this one please ? thanks for your time, cheers krk969 - Original Message - From: Ram Kurvakat Sent: 05/29/10 10:32 AM To: Maemo-developers, virot...@viroteck.net, Daniil Ivanov Subject: Re: QT4.6 with PR1.2 has introduced issues Here is the example requested. Compile the example with qmake from /opt/qt4-maemo5/bin which is QT4.6 in PR1.1 and run on the device with QT4.6 libs from PR1.1 installed in /opt/qt4-maemo5/lib ~$: ldd TEMP2 libQtGui.so.4 = /opt/qt4-maemo5/lib/libQtGui.so.4 (0x40142000) libQtCore.so.4 = /opt/qt4-maemo5/lib/libQtCore.so.4 (0x40bfd000) and this is the result http://bit.ly/bH2ApK Then Compile the example with qmake from /usr/bin which is QT4.6 in PR1.2 and run on the device with QT4.6 libs from PR1.2 installed in /usr/lib ~$: ldd TEMP2 libQtGui.so.4 = /usr/lib/libQtGui.so.4 (0x40139000) libQtCore.so.4 = /usr/lib/libQtCore.so.4 (0x40bf4000) and you will see this http://bit.ly/bIpRi0 I think some default alignments may have been changed in the styles. Thanks again for taking a look. #include QtGui #include QApplication int main(int argc, char* argv[]) { QApplication app(argc, argv); QDialog *dialog = new QDialog; QScrollArea *scroll = new QScrollArea; QWidget* widget = new QWidget(scroll); // Currency code QLineEdit *currency = new QLineEdit(dialog); // Date format QStringList dateformatlist; dateformatlist dd-MM- MM-dd- dd-MMM- MMM-dd-; QComboBox *dateformat = new QComboBox; // Graph Period QStringList periodlist; periodlist current day current month current week current year; QComboBox *graphperiod = new QComboBox; dialog-setStyleSheet(QDialog { border: 2px solid #8f8f91; ; border-radius: 15px; }); QFormLayout *layout = new QFormLayout; layout-addRow(currency code : , currency); layout-addRow(display date format : , dateformat); layout-addRow(default reports period: , graphperiod); widget-setLayout(layout); QHBoxLayout *mainlayout = new QHBoxLayout; scroll-setWidget(widget); mainlayout-addWidget(scroll, 0, Qt::AlignVCenter); dialog-setLayout(mainlayout); dialog-show(); return app.exec(); } - Original Message - From: Robin Burchell Sent: 05/28/10 10:36 AM To: Daniil Ivanov Subject: Re: QT4.6 with PR1.2 has introduced issues On Fri, May 28, 2010 at 7:25 AM, Daniil Ivanov daniil.iva...@gmail.com wrote: Hi Ram! Screenshots do not say anything. Without seeing the code it's not possible to say if it's because of problems with the way how you constructed layouts of the widgets or with Qt styles. Seconding what Daniil says - to try pinpoint your issue (and look for workarounds or fixes), please produce a minimal testcase. That is, a *minimal* example (as little code as possible, please! can't emphasise how important this is) which demonstrates the incorrect behaviour you are talking about. :) Thanks, Daniil. Best, Robin Burchell mob: +447702671419 msn: m...@viroteck.net irc: w00t @ irc.freenode.net twr: http://twitter.com/w00teh lac: http://identi.ca/w00t ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: QT4.6 with PR1.2 has introduced issues
- Original Message - From: Daniil Ivanov Sent: 06/01/10 10:44 AM To: Ram Kurvakat Subject: Re: QT4.6 with PR1.2 has introduced issues On Tue, Jun 1, 2010 at 12:00 PM, Ram Kurvakat rkma...@gmx.com wrote: -- Sent from my Nokia N900 - Original message - Hi Ram! Could you please post this questions to FN DiBo? A Hi Daniil, yes of course i can. I was asked for examples here so i replied. FN DiBo = forum nokia discussion board ? Yes.FN DiBo post as requested == http://discussion.forum.nokia.com/forum/showthread.php?p=742765 http://discussion.forum.nokia.com/forum/showthread.php?p=742765 Also took the liberty to raise a bug :)http://bugreports.qt.nokia.com/browse/QTBUG-11135 http://bugreports.qt.nokia.com/browse/QTBUG-11135 BTW, why do create dialog dynamically and never free it? This is an example only to show the issue. This is basically a bad habit.Of course Im aware Daniil :-) thanks anyways ,but now since you state that where do you expect to see the delete of the dialog in this main function ;-) Thanks, Daniil. Thanks, Daniil. On Tue, Jun 1, 2010 at 10:59 AM, Ram Kurvakat rkma...@gmx.com wrote: Daniil, Robin or anyone did you get a chance to look at this one please ? thanks for your time, cheers krk969 - Original Message - From: Ram Kurvakat Sent: 05/29/10 10:32 AM To: Maemo-developers, virot...@viroteck.net, Daniil Ivanov Subject: Re: QT4.6 with PR1.2 has introduced issues Here is the example requested. Compile the example with qmake from /opt/qt4-maemo5/bin which is QT4.6 in PR1.1 and run on the device with QT4.6 libs from PR1.1 installed in /opt/qt4-maemo5/lib ~$: ldd TEMP2 libQtGui.so.4 = /opt/qt4-maemo5/lib/libQtGui.so.4 (0x40142000) libQtCore.so.4 = /opt/qt4-maemo5/lib/libQtCore.so.4 (0x40bfd000) and this is the result http://bit.ly/bH2ApK Then Compile the example with qmake from /usr/bin which is QT4.6 in PR1.2 and run on the device with QT4.6 libs from PR1.2 installed in /usr/lib ~$: ldd TEMP2 libQtGui.so.4 = /usr/lib/libQtGui.so.4 (0x40139000) libQtCore.so.4 = /usr/lib/libQtCore.so.4 (0x40bf4000) and you will see this http://bit.ly/bIpRi0 I think some default alignments may have been changed in the styles. Thanks again for taking a look. #include QtGui #include QApplication int main(int argc, char* argv[]) { QApplication app(argc, argv); QDialog *dialog = new QDialog; QScrollArea *scroll = new QScrollArea; QWidget* widget = new QWidget(scroll); // Currency code QLineEdit *currency = new QLineEdit(dialog); // Date format QStringList dateformatlist; dateformatlist dd-MM- MM-dd- dd-MMM- MMM-dd-; QComboBox *dateformat = new QComboBox; // Graph Period QStringList periodlist; periodlist current day current month current weekcurrent year; QComboBox *graphperiod = new QComboBox; dialog-setStyleSheet(QDialog { border: 2px solid #8f8f91; ; border-radius: 15px; }); QFormLayout *layout = new QFormLayout; layout-addRow(currency code : , currency); layout-addRow(display date format : , dateformat); layout-addRow(default reports period: , graphperiod); widget -setLayout(layout); QHBoxLayout *mainlayout = new QHBoxLayout; scroll-setWidget(widget); mainlayout-addWidget(scroll, 0, Qt::AlignVCenter); dialog-setLayout(mainlayout); dialog-show(); return app.exec(); } - Original Message - From: Robin Burchell Sent: 05/28/10 10:36 AM To: Daniil Ivanov Subject: Re: QT4.6 with PR1.2 has introduced issues On Fri, May 28, 2010 at 7:25 AM, Daniil Ivanov daniil.iva...@gmail.com wrote: Hi Ram! Screenshots do not say anything. Without seeing the code it's not possible to say if it's because of problems with the way how you constructed layouts of the widgets or with Qt styles. Seconding what Daniil says - to try pinpoint your issue (and look for workarounds or fixes), please produce a minimal testcase. That is, a *minimal* example (as little code as possible, please! can't emphasise how important this is) which demonstrates the incorrect behaviour you are talking about. :)Thanks, Daniil. Best, Robin Burchell mob: +447702671419 msn: m...@viroteck.net irc: w00t @ irc.freenode.net twr: http://twitter.com/w00teh lac: http://identi.ca/w00t ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: QT4.6 with PR1.2 has introduced issues
In proper place, of course: QDialog *dialog = new QDialog; dialog-show(); int ret = app.exec(); delete dialog; return ret; But in fact it's much easier to allocate dialog statically. Hi Daniil, the example only contains a main function, there is no need for that delete, its quite redundant as the heap is cleared anyways after the return and app exits in the example ,is it not ?It would have been necessary had this been allocated in some custom class. cheerskrk969 - Original Message - From: Daniil Ivanov Sent: 06/01/10 11:34 AM To: Ram Kurvakat Subject: Re: QT4.6 with PR1.2 has introduced issues On Tue, Jun 1, 2010 at 1:16 PM, Ram Kurvakat rkma...@gmx.com wrote: - Original Message - From: Daniil Ivanov Sent: 06/01/10 10:44 AM To: Ram Kurvakat Subject: Re: QT4.6 with PR1.2 has introduced issues On Tue, Jun 1, 2010 at 12:00 PM, Ram Kurvakat rkma...@gmx.com wrote:-- Sent from my Nokia N900 - Original message - Hi Ram! Could you please post this questions to FN DiBo? A Hi Daniil, yes of course i can. I was asked for examples here so i replied. FN DiBo = forum nokia discussion board ? Yes. FN DiBo post as requested == http://discussion.forum.nokia.com/forum/showthread.php?p=742765 Also took the liberty to raise a bug :) http://bugreports.qt.nokia.com/browse/QTBUG-11135BTW, why do create dialog dynamically and never free it? This is an example only to show the issue. This is basically a bad habit. Of course Im aware Daniil :-) thanks anyways , but now since y ou state that where do you expect to see the delete of the dialog in this main function ;-) In proper place, of course: QDialog *dialog = new QDialog; dialog-show(); int ret = app.exec(); delete dialog; return ret; But in fact it's much easier to allocate dialog statically. Thanks, Daniil. Thanks, Daniil. Thanks, Daniil. On Tue, Jun 1, 2010 at 10:59 AM, Ram Kurvakat rkma...@gmx.com wrote: Daniil, Robin or anyone did you get a chance to look at this one please ? thanks for your time, cheers krk969 - Original Message - From: Ram Kurvakat Sent: 05/29/10 10:32 AM To: Maemo-developers, virot...@viroteck.net, Daniil Ivanov Subject: Re: QT4.6 with PR1.2 has introduced issues Here is the example requested. Compile the example with qmake from /opt/qt4-maemo5/bin which is QT4.6 in PR1.1 and run on the device with QT4.6 libs from PR1.1 installed in /opt/qt4-maemo5/lib ~$: ldd TEMP2 libQtGui.so.4 = /opt/qt4-maemo5/lib/libQtGui.so.4 (0x40142000) libQtCore.so.4 = /opt/qt4-maemo5/lib/libQtCore.so.4 (0x40bfd000) and this is the result http://bit.ly/bH2ApK Then Compile the example with qmake from /usr/bin which is QT4.6 in PR1.2and run on the device with QT4.6 libs from PR1.2 installed in /usr/lib ~$: ldd TEMP2 libQtGui.so.4 = /usr/lib/libQtGui.so.4 (0x40139000) libQtCore.so.4 = /usr/lib/libQtCore.so.4 (0x40bf4000) and you will see this http://bit.ly/bIpRi0 I think some default alignments may have been changed in the styles. Thanks again for taking a look. #include QtGui #include QApplication int main(int argc, char* argv[]) { QApplication app(argc, argv); QDialog *dialog = new QDialog; QScrollArea *scroll = new QScrollArea; QWidget* widget = new QWidget(scroll); // Currency code QLineEdit *currency = new QLineEdit(dialog); // Date format QStringList dateformatlist; dateformatlist dd-MM- MM-dd- dd-MMM-MMM-dd-; QComboBox *dateformat = new QComboBox; // Graph Period QStringList periodlist; periodlist current day current month current weekcurrent year; QComboBox *graphperiod = new QComboBox; dialog-setStyleSheet(QDialog { border: 2px solid #8f8f91; ; border-radius: 15px; }); QFormLayout *layout = new QFormLayout; layout-addRow(currency code : , currency); layout-addRow(display date format : , dateformat); layout-addRow(default reports period: , graphperiod); widget-setLayout(layout); QHBoxLayout *mainlayout = new QHBoxLayout; scroll-setWidget(widget); mainlayout-addWidget(scroll, 0, Qt::AlignVCenter); dialog-setLayout(mainlayout); dialog-show(); return app.exec(); } - Original Message - From: Robin Burchell Sent: 05/28/10 10:36 AM To: Daniil Ivanov Subject: Re: QT4.6 with PR1.2 has introduced issues On Fri, May 28, 2010 at 7:25 AM, Daniil Ivanov daniil.iva...@gmail.com wrote: Hi Ram! Screenshots do not say anything. Without seeing the code it's not possible to say if it's because of problems with the way how you constructed layouts of the widgets or with Qt styles. Seconding what Daniil says - to try pinpoint your
Q_WS_MAEMO_5 directive
Hi, what preprocessor directives need to be used for Maemo5 specific QT code ? is it still Q_WS_MAEMO_5 or has it changed in PR1.2 QT4.6 release ? I remember in QT4.5 it was Q_WS_HILDON. Thanks. - krk969 ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
non-free section pointing to PR1.0 repos.
Niels, Ive sent you a mail about this already, please ignore it posted it here again so it helps everybody. the non-free section seems to be pointing to PR1.0 repos still. Is this known and somebody already working on it ? Perhaps Ive missed to see a mail or two. Not able to promote anything on this past few days. All QT4.6 dependent packages built on PR1.2 SDK's will have this issue. some examples: http://maemo.org/packages/package_instance/view/fremantle_extras-devel_non-free_armel/facebrick/0.4/ http://maemo.org/packages/package_instance/view/fremantle_extras-devel_non-free_armel/facebrick/0.4/ http://maemo.org/packages/package_instance/view/fremantle_extras-devel_non-free_armel/buddy/0.2-3/ http://maemo.org/packages/package_instance/view/fremantle_extras-devel_non-free_armel/buddy/0.2-3/ Thanks and Regards Ram (krk969) ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: non-free section pointing to PR1.0 repos.
just FYI: Niels has just corrected this issue. It should be pointing to the PR1.2 repos now. Thanks Niels. Regards -krk969 (Ram) - Original Message - From: Robin Burchell Sent: 06/02/10 11:47 PM To: Ram Kurvakat Subject: Re: non-free section pointing to PR1.0 repos. Thanks for sending this Ram. I've been too busy to follow it up since I found out about it. On Wed, Jun 2, 2010 at 11:32 PM, Ram Kurvakat rkma...@gmx.com wrote: Niels, Ive sent you a mail about this already, please ignore it posted it here again so it helps everybody. the non-free section seems to be pointing to PR1.0 repos still. Is this known and somebody already working on it ? Perhaps Ive missed to see a mail or two. Not able to promote anything on this past few days. I presume it's just promotion that is affected, but all the same, it would be nice to have this resolved. (I'd love to not use non-free, but I really don't have the time to learn how to fix my packaging at the moment...) Ram (krk969) Best, Robin Burchell mob: +447702671419 msn: m...@viroteck.net irc: w00t @ irc.freenode.net twr: http://twitter.com/w00teh lac: http://identi.ca/w00t ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
RE: How to get kinetic scrolling working using Qt creator
just a quick example that would work, see if it helps. imageLabel = new QLabel; QImage image(someimagefile); imageLabel-setPixmap(QPixmap::fromImage(image)); _scrollForMapPage = new QScrollArea; _scrollForMapPage-setWidget(imageLabel); _mapWindow = new QMainWindow ( this ); _mapWindow-setCentralWidget(_scrollForMapPage); _mapWindow-show(); you dont need to set any property as Daniil set most widgets have kinetic scrolling by default like ListWidget/TableWidget/ScrollArea. cheers -krk969 - Original Message - From: Sudheer K. Sent: 06/06/10 05:08 AM To: fel...@crochik.com, daniil.iva...@gmail.com Subject: RE: How to get kinetic scrolling working using Qt creator Anyone know of any applications that are using Qt Creator (.ui files) and were successful in implementing kinetic scrolling? Maybe I can look at the forms to see what I am doing wrong here. Thanks, Sudheer - From: scifi@hotmail.com To: fel...@crochik.com; daniil.iva...@gmail.com CC: maemo-developers@maemo.org Subject: RE: How to get kinetic scrolling working using Qt creator Date: Sat, 5 Jun 2010 20:57:38 -0700 Yes, I am compiling on FREMANTLE_ARMEL and copying to device and testing it :) Another thing is I can display the scrollbar using verticalscrollbarpolicy but it doesn't actually scroll anything. - From: fel...@crochik.com To: scifi@hotmail.com; daniil.iva...@gmail.com CC: maemo-developers@maemo.org Subject: RE: How to get kinetic scrolling working using Qt creator Date: Sat, 5 Jun 2010 23:52:45 -0400 One silly question: are you trying it on the actual device? It won't work on the simulator or if you compile for the desktop. - Original message - Hi Daniil, I could not get the scrolling to work by using QScrollArea, even after removing the FingerScrollable property. Any suggestions on what I should change? I have tried setting WidgetResizable to true on QScrollArea, still scrolling does not work. If it matters, there are sizes I have set in my form. ConfigWindow (QMainWindow) - 800 x 480 centralWidget (QWidget) - 800 x 457 scrollArea (QScrollArea) - 800 x 550 scrollAreaWidgetContents (QWidget) - 798 x 548 (this can not be modified). All the examples I have seen (even on Qt site) use custom code to create QWidget or QWindow. But I am using Qt creator to create the form and I couldn't find much help. Date: Sat, 5 Jun 2010 21:52:29 +0300 Subject: Re: How to get kinetic scrolling working using Qt creator From: daniil.iva...@gmail.com To: scifi@hotmail.com CC: maemo-developers@maemo.org Hi Sudheer! There is no such property as FingerScrollable and kinetic srolling is enabled by default for QScrollArea http://doc.qt.nokia.com/qt-maemo-4.6/qabstractkineticscroller.html#details http://doc.qt.nokia.com/qt-maemo-4.6/qabstractkineticscroller.html#details Thanks, Daniil. On Sat, Jun 5, 2010 at 8:10 PM, Sudheer K. scifi@hotmail.com wrote: Hi All, I have created a QScrollArea to a QMainWindow in a form using Qt Creator. I have set the dynamic property FingerScrollable to true (bool) for QMainWindow, QScrollArea and the contents of QScrollArea. This is the structure of my form objects in the format objectname (ClassName): ConfigWindow (QMainWindow) -- centralWidget (QWidget) -- scrollArea (QScrollArea) -- scrollAreaWidgetContents (QWidget) --groupBox (QGroupBox). I have set the FingerScrollable property to true for all these objects. But still I am not able to get kinetic scrolling working for the form. Am I missing something? Hotmail is redefining busy with tools for the New Busy. Get more from your inbox. See how. ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers https://lists.maemo.org/mailman/listinfo/maemo-developers _ The New Busy is not the too busy. Combine all your e-mail accounts with Hotmail. http://www.windowslive.com/campaign/thenewbusy?tile=multiaccountocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_4 http://www.windowslive.com/campaign/thenewbusy?tile=multiaccountocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_4 - Hotmail has tools for the New Busy. Search, chat and e-mail from your inbox. Learn more. http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_1 - Hotmail is redefining busy with tools for the New Busy. Get more from your inbox. See how.
Re: How to force landscape mode in Qt 4.6.2?
one way would be to disable the accelerometer, saves battery as well if its not needed. - Original Message - From: Sascha Mäkelä Sent: 06/08/10 09:37 AM To: maemo-developers Subject: How to force landscape mode in Qt 4.6.2? Hi, In my app I have setAttribute(Qt::WA_Maemo5AutoOrientation, true) in the main.cpp. The auto orientation works fine. However, I have some stacked windows that I want to display only in landscape. I've tried using setAttribute(Qt::WA_Maemo5LandscapeOrientation, true) when creating the window or in the window it self, but it doesn't seem to have any effect. How can I force some of the windows to be only landscape? Cheers, Sascha ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: How to force landscape mode in Qt 4.6.2?
sorry my browser acts funny sometimes so my previous message was incomplete... one way would be to disable the accelerometer, saves battery as well if its not needed. QDBusConnection::systemBus().call(QDBusMessage::createMethodCall(MCE_SERVICE, MCE_REQUEST_PATH, MCE_REQUEST_IF, MCE_ACCELEROMETER_DISABLE_REQ)); -krk969 - Original Message - From: Sascha Mäkelä Sent: 06/08/10 09:37 AM To: maemo-developers Subject: How to force landscape mode in Qt 4.6.2? Hi, In my app I have setAttribute(Qt::WA_Maemo5AutoOrientation, true) in the main.cpp. The auto orientation works fine. However, I have some stacked windows that I want to display only in landscape. I've tried using setAttribute(Qt::WA_Maemo5LandscapeOrientation, true) when creating the window or in the window it self, but it doesn't seem to have any effect. How can I force some of the windows to be only landscape? Cheers, Sascha ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: How to force landscape mode in Qt 4.6.2?
also I think you need to setAttribute(Qt::WA_Maemo5AutoOrientation, true) on a QMainWindow to set that to landscape afterwards. Haven't checked if its a widget/application attribute also. -krk969 - Original Message - From: Ram Kurvakat Sent: 06/08/10 12:10 PM To: Sascha Mäkelä, maemo-developers Subject: Re: How to force landscape mode in Qt 4.6.2? sorry my browser acts funny sometimes so my previous message was incomplete... one way would be to disable the accelerometer, saves battery as well if its not needed. QDBusConnection::systemBus().call(QDBusMessage::createMethodCall(MCE_SERVICE, MCE_REQUEST_PATH, MCE_REQUEST_IF, MCE_ACCELEROMETER_DISABLE_REQ)); -krk969 - Original Message - From: Sascha Mäkelä Sent: 06/08/10 09:37 AM To: maemo-developers Subject: How to force landscape mode in Qt 4.6.2? Hi, In my app I have setAttribute(Qt::WA_Maemo5AutoOrientation, true) in the main.cpp. The auto orientation works fine. However, I have some stacked windows that I want to display only in landscape. I've tried using setAttribute(Qt::WA_Maemo5LandscapeOrientation, true) when creating the window or in the window it self, but it doesn't seem to have any effect. How can I force some of the windows to be only landscape? Cheers, Sascha ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: QtSql and Debian package probelm
you need libqt4-sql and probably libqt4-sql-plugin ( plugin = sqlite , if you are using sqlite plugin ) - Original Message - From: Sascha Mäkelä Sent: 06/10/10 01:01 PM To: maemo-developers Subject: QtSql and Debian package probelm Hi, I just made a Debian package of my app. I'm using QtSql in it. But for some reason when I install the package, all the SQL things don't work. My guess is that I'm missing something in the Build-Depends line in the control file. How can I check what libs I need to add there and what are their correct names? Cheers, Sascha PS. Currently it's like this: Build-Depends: dephelper (5), libqt4-dev, libqt4-network ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: extras-devel .install files issue
yes I agree. for example for an app in extras-devel and if you specify distribution = fremantle in the .install file, in my phone(PR1.2) it was looking for fremantle-1.2 by default, some users reported the same. Not sure if this is connected to what is being discussed. I can post the example install file if needed. P.S : the install file worked fine in PR1.1. thanks -krk969 - Original Message - From: Daniil Ivanov Sent: 06/10/10 03:24 PM To: tero.k...@nokia.com Subject: Re: extras-devel .install files issue Hi Tero! The problem is that there is no fremantle-1.2 for extras-devel. Thanks, Daniil. On Thu, Jun 10, 2010 at 5:21 PM, tero.k...@nokia.com wrote: The N900 automatically inserts the proper dist when you open the install file in Application manager. fremantle-1.2 for PR1.2 and just fremantle for all prior PR's Could you describe what the problem you exactly were experiencing and where? Tero From: maemo-developers-boun...@maemo.org [maemo-developers-boun...@maemo.org] On Behalf Of ext Daniil Ivanov [daniil.iva...@gmail.com] Sent: 10 June 2010 14:00 To: Antonio Aloisio Cc: maemo-developers@maemo.org Subject: Re: extras-devel .install files issue Hi Antonio! Extras has it, but extras-devel not. At least at the moment of writing this. Thanks, Daniil. On Thu, Jun 10, 2010 at 1:58 PM, Antonio Aloisio antonio.aloi...@gmail.com wrote: Hi Ram, According to [1] there is just one devel repsit ory and it's fremantle. Btw extras has the fremantle-1.2 rep too. Cheers, Antonio [1] http://repository.maemo.org/extras-devel/pool/ On Thu, Jun 10, 2010 at 1:47 PM, Ram Kurvakat rkma...@gmx.com wrote: is it dist = fremantle or dist = fremantle-1.2 ? I thought the latter is linked to the PR1.2 repos, or has it changed ? Ive had similar issues with .install files. Thanks for raising it Daniil. Regards, -krk969 - Original Message - From: Daniil Ivanov Sent: 06/10/10 11:24 AM To: maemo-developers@maemo.org Subject: extras-devel .install files issue Hi all! It seems that are the problems http://repository.maemo.org/extras-devel/dists/fremantle/install/ and that dist = fremantle should be added to the .install files. Thanks, Daniil. ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers