Re: [Interest] QTableView
Hi As far as I understand the problem, A proxy model on top of your current sql model should do the job. Look at QAbstractProxyModel Regards, Pritam From: interest-bounces+pritam_ghanghas=infosys@qt-project.org [interest-bounces+pritam_ghanghas=infosys@qt-project.org] on behalf of pengliang(彭亮) [pengli...@founder.com] Sent: Wednesday, March 27, 2013 11:13 AM To: interest@qt-project.org Subject: [Interest] QTableView Hi All QtableView display sql table. But I want to merge data of two columns in sql table to one column in QtableView. Eg: Sql table: 1 2 3 4 5 6 Aabb cc dd ee ff Gghh ii jj kk ll QtableView 1 23 Aabb ccdd eeff Gghh iijj kkll I want to design a Sql Model for QtableView,but I don’t know how to do it! Anybody has good idea? Thanks Ken CAUTION - Disclaimer * This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely for the use of the addressee(s). If you are not the intended recipient, please notify the sender by e-mail and delete the original message. Further, you are not to copy, disclose, or distribute this e-mail or its contents to any other person and any such actions are unlawful. This e-mail may contain viruses. Infosys has taken every reasonable precaution to minimize this risk, but is not liable for any damage you may sustain as a result of any virus in this e-mail. You should carry out your own virus checks before opening the e-mail or attachment. Infosys reserves the right to monitor and review the content of all messages sent to or from this e-mail address. Messages sent to or from this e-mail address may be stored on the Infosys e-mail system. ***INFOSYS End of Disclaimer INFOSYS*** ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
Re: [Interest] QTableView
Hi, First of all, please don't hijack somebody elses thread. Create a completely new message to the list instead of a reply in which you just edit the subject line. You're messing up threading. Op 27-3-2013 6:43, pengliang(??) schreef: Hi All QtableView display sql table. But I want to merge data of two columns in sql table to one column in QtableView. Eg: Sql table: 1 2 3 4 5 6 Aabb cc dd ee ff Gghh ii jj kk ll QtableView 1 23 Aabb ccdd eeff Gghh iijj kkll I want to design a Sql Model for QtableView,but I don't know how to do it! Anybody has good idea? Either do the merge in SQL, or create a proxy model to do the merge for you. André -- You like Qt? I am looking for collegues to join me at i-Optics! ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
Re: [Interest] QTableView
Or create a SQL query that does this instead of just SELECT *. That is going to be much faster than a proxy model. Bo. Den 27-03-2013 10:00, Pritam Ghanghas skrev: As far as I understand the problem, A proxy model on top of your current sql model should do the job. Look at QAbstractProxyModel From: interest-bounces+pritam_ghanghas=infosys@qt-project.org [interest-bounces+pritam_ghanghas=infosys@qt-project.org] on behalf of pengliang(彭亮) [pengli...@founder.com] Subject: [Interest] QTableView QtableView display sql table. But I want to merge data of two columns in sql table to one column in QtableView. Eg: Sql table: 1 2 3 4 5 6 Aabb cc dd ee ff Gghh ii jj kk ll QtableView 1 23 Aabb ccdd eeff Gghh iijj kkll -- Bo Thorsen, European Qt Manager, Integrated Computer Solutions ICS - Delivering World-Class Applications for Embedded Mobile Devices http://ics.com/services ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
Re: [Interest] QRegExp help: boundaries
- Original Message - You need to esc the \b. Write \\b instead. Hi There's a QRegExp tester in the Qt examples. I've always found this very useful for checking that the regexp is valid and that it does as expected. It can also produce correctly quoted strings that you can copy and paste into your source code. A+ Paul ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
Re: [Interest] QRegExp help: boundaries
On 3/27/13 11:47am, pa...@free.fr wrote: - Original Message - You need to esc the \b. Write \\b instead. Hi There's a QRegExp tester in the Qt examples. I've always found this very useful for checking that the regexp is valid and that it does as expected. It can also produce correctly quoted strings that you can copy and paste into your source code. Paul, that saved my day! It's a very useful tool! There is a little catch here, though: I must use \\documentclass\\b, without a preceding \b, or it wouldn't be recognized. I assume that nothing isn't a valid boundary here. Am I right? Thank you very much, again: that qt example is neat! Cheers! ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
[Interest] WebGL with eglfs on Qt5.0.1 WebKit
WebGL is one of the key missing features in Webkit with non-X platforms today. I have WebGL functional with eglfs (GLES2 + native fb on ARM) working with a dirty patch set, needs some more attention. Patches are in below bug report. https://bugreports.qt-project.org/browse/QTBUG-30405 regards Prabindh ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
Re: [Interest] [Mingw-w64-public] Compiling Qt (4 or 5) with -std=c++11
I just tested 4.8.0, it works like a charm Etienne Date: Fri, 22 Mar 2013 10:46:08 +0100 From: Etienne Sandr?-Chardonnal etienne.san...@m4x.org Subject: Re: [Interest] [Mingw-w64-public] Compiling Qt (4 or 5) with -std=c++11 I did test it in my app, with no improvement, but I may have to recompile Qt as well. I will test with the file you posted. Thanks, Etienne 2013/3/22 Jonathan Liu net...@gmail.com: Hi Etienne, See http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55898 for GCC bug report. It occurs with SJLJ exception handling on x86_64. You can check by compiling with -fno-exceptions and see if it debugging works. It can be resolved by using SEH exception handling in GCC 4.8.0 which should be released soon (see http://gcc.gnu.org/ml/gcc/2013-03/msg00127.html for GCC 4.8.0 release candidate announcement). Regards, Jonathan ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
[Interest] Class static members access on QThreads
Hi all, I am a newbie in QT, and I have difficulties in using QThreads. What occurs is that i created one class named Logger what functions like a stream to a log file. This class maintains some static attributes (QFile and QTextStream) what refers to a log file. I use this class always I want to write logs, but when I try to use a Logger inside a QThread, the application crash. I cannot use this class Logger inside a Thread? How can I fix this? Sorry for my English, I am a newbie in English too. ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
[Interest] Qt Installer Framework 1.3.0 released
We released Qt Installer Framework v1.3.0 today. The Qt Installer Framework can be used to write installers for all major desktop platforms, and is e.g. used in the Qt Creator, Qt SDK installers. Blog post: https://blog.qt.digia.com/blog/2013/03/27/qt-installer-framework-1-3-released/ Download: http://releases.qt-project.org/qt-installer-framework/1.3.0/ Happy hacking! Kai Koehne -- Kai Koehne, Senior Software Engineer - Digia, Qt Digia Germany GmbH, Rudower Chaussee 13, D-12489 Berlin Geschäftsführer: Mika Pälsi, Juha Varelius, Anja Wasenius Sitz der Gesellschaft: Berlin, Registergericht: Amtsgericht Charlottenburg, HRB 144331 B ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
Re: [Interest] Class static members access on QThreads
On quarta-feira, 27 de março de 2013 11.20.32, Michael Dougras Silva wrote: I am a newbie in QT, and I have difficulties in using QThreads. What occurs is that i created one class named Logger what functions like a stream to a log file. This class maintains some static attributes (QFile and QTextStream) what refers to a log file. I use this class always I want to write logs, but when I try to use a Logger inside a QThread, the application crash. I cannot use this class Logger inside a Thread? How can I fix this? You can use QFile and QTextStream in a thread. What you can't do is use the same *objects* from two threads at the same time. See Qt's definition of thread-safe and reentrant. Those two classes are reentrant. -- Thiago Macieira - thiago.macieira (AT) intel.com Software Architect - Intel Open Source Technology Center signature.asc Description: This is a digitally signed message part. ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
Re: [Interest] Qt Installer Framework 1.3.0 released
On 27 March 2013 23:06, Koehne Kai kai.koe...@digia.com wrote: We released Qt Installer Framework v1.3.0 today. The Qt Installer Framework can be used to write installers for all major desktop platforms, and is e.g. used in the Qt Creator, Qt SDK installers. Blog post: https://blog.qt.digia.com/blog/2013/03/27/qt-installer-framework-1-3-released/ Download: http://releases.qt-project.org/qt-installer-framework/1.3.0/ Happy hacking! Kai Koehne -- Kai Koehne, Senior Software Engineer - Digia, Qt Digia Germany GmbH, Rudower Chaussee 13, D-12489 Berlin Geschäftsführer: Mika Pälsi, Juha Varelius, Anja Wasenius Sitz der Gesellschaft: Berlin, Registergericht: Amtsgericht Charlottenburg, HRB 144331 B Great! Will there be a public link at http://qt-project.org/downloads too? Regards, Sze-Howe ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
Re: [Interest] Qt Installer Framework 1.3.0 released
-Original Message- From: interest-bounces+kai.koehne=digia@qt-project.org [mailto:interest-bounces+kai.koehne=digia@qt-project.org] On Behalf Of Sze Howe Koh Sent: Wednesday, March 27, 2013 4:18 PM To: Qt Interest (interest@qt-project.org) Subject: Re: [Interest] Qt Installer Framework 1.3.0 released [...] Great! Will there be a public link at http://qt-project.org/downloads too? Good point, will ask whether we can add it to other downloads ... Regards Kai ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
[Interest] problem with qml rendering
Hi all, I'm making a qml aplication, I designed it without problem but wen I run the application and maximize it there is an horizontal lines, I don' t know wath is happend. thanks. ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
Re: [Interest] Class static members access on QThreads
Em 27/03/2013 12:09, Thiago Macieira escreveu: On quarta-feira, 27 de março de 2013 11.20.32, Michael Dougras Silva wrote: I am a newbie in QT, and I have difficulties in using QThreads. What occurs is that i created one class named Logger what functions like a stream to a log file. This class maintains some static attributes (QFile and QTextStream) what refers to a log file. I use this class always I want to write logs, but when I try to use a Logger inside a QThread, the application crash. I cannot use this class Logger inside a Thread? How can I fix this? You can use QFile and QTextStream in a thread. What you can't do is use the same *objects* from two threads at the same time. See Qt's definition of thread-safe and reentrant. Those two classes are reentrant. ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest Thanks. I will study more about QThreads, QMutex and QMutexLocker and try to restructure my class. If I have success, I will post the solution here. ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
Re: [Interest] problem with qml rendering
Hi Herlin, You provided very little information. Probably the problem is connected with wrong layout of the QML objects. Can you give a small self-consistent example that shows the problem? Best regards, Igor Grivko On Wed, Mar 27, 2013 at 10:20 PM, Herlin Matos Lastres hma...@grm.uci.cuwrote: Hi all, I'm making a qml aplication, I designed it without problem but wen I run the application and maximize it there is an horizontal lines, I don' t know wath is happend. thanks. ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
[Interest] Default delegate with QTableView and QSqlTableModel
Hi all, I have a QTableView and a connected QSqlTableModel. The database is an SQLite database with two columns, the types are TEXT and INTEGER. Everything is works as expected, except I don't get QSpinbox as a editor for the INTEGER column, so I can write there anything, and since the SQLite can store TEXT in an INTEGER column, I don't even get an error... So what can I do? Can I set the type (QVarinat::Int) of the column somehow (in the model or in the view)? If I use setItemDelegateForColumn on the view manually, can I use a ready made delegate somehow or the only possible solution is to create a SpinBoxDelegate for myself? Cheers, tr3w ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
Re: [Interest] Default delegate with QTableView and QSqlTableModel
Another piece of information: the model-data(...) returns a QVariant::LongLong... tr3w On Wed, Mar 27, 2013 at 8:32 PM, Tr3wory t...@freemail.hu wrote: Hi all, I have a QTableView and a connected QSqlTableModel. The database is an SQLite database with two columns, the types are TEXT and INTEGER. Everything is works as expected, except I don't get QSpinbox as a editor for the INTEGER column, so I can write there anything, and since the SQLite can store TEXT in an INTEGER column, I don't even get an error... So what can I do? Can I set the type (QVarinat::Int) of the column somehow (in the model or in the view)? If I use setItemDelegateForColumn on the view manually, can I use a ready made delegate somehow or the only possible solution is to create a SpinBoxDelegate for myself? Cheers, tr3w ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
Re: [Interest] problem with qml rendering
I have a library of components make by me and my friend, we have: LineEdits, Buttons, etc. I push a Dialogs component in a javascript stack with Qt.createComponent() On 27/03/13 15:25, Igor Grivko wrote: Hi Herlin, You provided very little information. Probably the problem is connected with wrong layout of the QML objects. Can you give a small self-consistent example that shows the problem? Best regards, Igor Grivko On Wed, Mar 27, 2013 at 10:20 PM, Herlin Matos Lastres hma...@grm.uci.cu mailto:hma...@grm.uci.cu wrote: Hi all, I'm making a qml aplication, I designed it without problem but wen I run the application and maximize it there is an horizontal lines, I don' t know wath is happend. thanks. ___ Interest mailing list Interest@qt-project.org mailto:Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
Re: [Interest] Default delegate with QTableView and QSqlTableModel
You may be able to use QIntValidator for that particular column, by default Qt delegate will show everything as lineedit where you can put anything. If you want to show QSpinBox you need to tell that for xyz column QSpinBox Widget should open.. On Wed, Mar 27, 2013 at 2:46 PM, Tr3wory t...@freemail.hu wrote: Another piece of information: the model-data(...) returns a QVariant::LongLong... tr3w On Wed, Mar 27, 2013 at 8:32 PM, Tr3wory t...@freemail.hu wrote: Hi all, I have a QTableView and a connected QSqlTableModel. The database is an SQLite database with two columns, the types are TEXT and INTEGER. Everything is works as expected, except I don't get QSpinbox as a editor for the INTEGER column, so I can write there anything, and since the SQLite can store TEXT in an INTEGER column, I don't even get an error... So what can I do? Can I set the type (QVarinat::Int) of the column somehow (in the model or in the view)? If I use setItemDelegateForColumn on the view manually, can I use a ready made delegate somehow or the only possible solution is to create a SpinBoxDelegate for myself? Cheers, tr3w ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
Re: [Interest] Default delegate with QTableView and QSqlTableModel
This might help you -- http://qt-project.org/doc/qt-4.8/itemviews-spinboxdelegate.html On Wed, Mar 27, 2013 at 3:01 PM, preeteesh kakkar preeteesh.kak...@gmail.com wrote: You may be able to use QIntValidator for that particular column, by default Qt delegate will show everything as lineedit where you can put anything. If you want to show QSpinBox you need to tell that for xyz column QSpinBox Widget should open.. On Wed, Mar 27, 2013 at 2:46 PM, Tr3wory t...@freemail.hu wrote: Another piece of information: the model-data(...) returns a QVariant::LongLong... tr3w On Wed, Mar 27, 2013 at 8:32 PM, Tr3wory t...@freemail.hu wrote: Hi all, I have a QTableView and a connected QSqlTableModel. The database is an SQLite database with two columns, the types are TEXT and INTEGER. Everything is works as expected, except I don't get QSpinbox as a editor for the INTEGER column, so I can write there anything, and since the SQLite can store TEXT in an INTEGER column, I don't even get an error... So what can I do? Can I set the type (QVarinat::Int) of the column somehow (in the model or in the view)? If I use setItemDelegateForColumn on the view manually, can I use a ready made delegate somehow or the only possible solution is to create a SpinBoxDelegate for myself? Cheers, tr3w ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
Re: [Interest] QRegExp help: boundaries
On 27 Mar 2013, at 11:57, Sensei wrote: On 3/27/13 11:47am, pa...@free.fr wrote: - Original Message - You need to esc the \b. Write \\b instead. Hi There's a QRegExp tester in the Qt examples. I've always found this very useful for checking that the regexp is valid and that it does as expected. It can also produce correctly quoted strings that you can copy and paste into your source code. Paul, that saved my day! It's a very useful tool! There is a little catch here, though: I must use \\documentclass\\b, without a preceding \b, or it wouldn't be recognized. I assume that nothing isn't a valid boundary here. Am I right? Hi Generally ^ and $ denote the beginning and end of a line. A+ Paul ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
Re: [Interest] Default delegate with QTableView and QSqlTableModel
Yes I know that, but based on this: http://qt-project.org/doc/qt-4.8/qitemeditorfactory.html#standard-editing-widgets I think it should work out of the box... tr3w On Wed, Mar 27, 2013 at 9:03 PM, preeteesh kakkar preeteesh.kak...@gmail.com wrote: This might help you -- http://qt-project.org/doc/qt-4.8/itemviews-spinboxdelegate.html On Wed, Mar 27, 2013 at 3:01 PM, preeteesh kakkar preeteesh.kak...@gmail.com wrote: You may be able to use QIntValidator for that particular column, by default Qt delegate will show everything as lineedit where you can put anything. If you want to show QSpinBox you need to tell that for xyz column QSpinBox Widget should open.. On Wed, Mar 27, 2013 at 2:46 PM, Tr3wory t...@freemail.hu wrote: Another piece of information: the model-data(...) returns a QVariant::LongLong... tr3w On Wed, Mar 27, 2013 at 8:32 PM, Tr3wory t...@freemail.hu wrote: Hi all, I have a QTableView and a connected QSqlTableModel. The database is an SQLite database with two columns, the types are TEXT and INTEGER. Everything is works as expected, except I don't get QSpinbox as a editor for the INTEGER column, so I can write there anything, and since the SQLite can store TEXT in an INTEGER column, I don't even get an error... So what can I do? Can I set the type (QVarinat::Int) of the column somehow (in the model or in the view)? If I use setItemDelegateForColumn on the view manually, can I use a ready made delegate somehow or the only possible solution is to create a SpinBoxDelegate for myself? Cheers, tr3w ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
Re: [Interest] QRegExp help: boundaries
Il 27/03/2013 11:57, Sensei ha scritto: I assume that nothing isn't a valid boundary here. Am I right? No, you're just falling into a very common error when using \b. \b matches the 0-length transition between a \w character and a \W, and the beginning and the end of the string are counted as a \W. But there's no such transition in your string: the \b is between the beginning (\W) and the leading backslash (\W again). Therefore, it will not match. HTH, -- Giuseppe D'Angelo | giuseppe.dang...@kdab.com | Software Engineer KDAB (UK) Ltd., a KDAB Group company Tel. UK +44-1738-450410, Sweden (HQ) +46-563-540090 KDAB - Qt Experts - Platform-independent software solutions ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
Re: [Interest] Qt builds
2013/3/28 Petric Frank pfr...@gmx.de Hello, On Wednesday, March 20, 2013, 09:54:35 Алексей Павлов wrote: Hi! I upload packages for Qt-5.0.2 preview with QtCreator-2.7.0-rc builded with MinGW-w64 toolchains. Links: Qt-5.0.2-preview-x32.7z http://sourceforge.net/projects/mingwbuilds/files/e xternal-binary-packages/Qt-Builds/Qt-5.0.2-preview-x32.7z/download - 32-bit Qt-5.0.2-preview-x64.7z http://sourceforge.net/projects/mingwbuilds/files/e xternal-binary-packages/Qt-Builds/Qt-5.0.2-preview-x64.7z/download - 64-bit thanks for the builds - especially the 64-Bit version. During my tests i revealed that the odbc sql driver is missing. Is that intentional ? If you compile the next iteration i would be happy to have the odbc plugin enabled also. Ok I try to add ODBC driver with Qt-5.0.2 release build. I never got qt5 compiled completely. It must be my selection of configure options to get the compile run break (after a couple of hours). So i was very happy that you got the thing built and let us benefit from your work. Only for my knowledge - which configure options/crafted environment variables did you use for building Qt5 ? You can view my configure options here: https://github.com/Alexpux/Qt-builds/blob/master/scenarios/qt-5.0.2.sh#L139 ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
Re: [Interest] Qt builds
Reload Qt-5.0.2 + QtCreator-2.7.0 (with patches for QTBUG 52290, 52330) 64-bit package. Package builded with MinGW-w64 GCC-4.8.0 SEH toolchain. Link to package - http://sourceforge.net/projects/mingwbuilds/files/external-binary-packages/Qt-Builds/Qt-5.0.2-preview-x64.7z/download SHA1s: qtsdk was archived from 56da4ebb368bbc3f68338b0481a8b9f6f8fb4f2e qtactiveqt was archived from de06fb45694171f5c914d8a61b17f6068b44a6c2 qtbase was archived from 6786000790f18f7fe56fe64dd7969e4a8fe9513b qtdeclarative was archived from 535695f01c02ee13d499ab59c3b23354fc3da564 qtdoc was archived from 5fdaa2bca2edebaad9d54970622702565e7aae64 qtgraphicaleffects was archived from a567c47b3785fafb51c6db0f660c3af198968271 qtimageformats was archived from bacb0bec3cc2b409b215093f8e6ea3ff00c2af45 qtjsbackend was archived from 04efcdf23b77c9dfdee25070a849523c835883a6 qtmultimedia was archived from 0f9ae06f317d3aab07b35010a11ef0658afbec22 qtquick1 was archived from 5ed36a9fe84f78c66692bb4a0395cb09eaf31d66 qtscript was archived from 965c36d851d3bac437939b641afed6554a75e35d qtsvg was archived from 95fca593cb08b3755cc72df6169afad9f75f0a7f qttools was archived from 207da54ca5b4d38eceb8e867e78dad922e9b0d9c qttranslations was archived from 3928bb7da27de9ec958288b24239e6cc6eb44576 ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest