Re: [Interest] Is it possible to override dll in runtime in Qt?

2014-04-09 Thread manish sharma
i think it should work using pluginloader something like below: QObject* getPrmt(QString path) { QDir pluginsDir(path) QPluginLoader loader(pluginsDir.absoluteFilePath(fileName)); return loader.instance(); } and call getPrmt function with any of A/Prmt.dll, B/Prmt.dll?

Re: [Interest] Is it possible to override dll in runtime in Qt?

2014-04-09 Thread Koehne Kai
-Original Message- From: interest-bounces+kai.koehne=digia@qt-project.org [mailto:interest-bounces+kai.koehne=digia@qt-project.org] On Behalf Of Vincent Cai Sent: Wednesday, April 09, 2014 7:04 AM To: interest@qt-project.org Subject: [Interest] Is it possible to override

Re: [Interest] Is it possible to override dll in runtime in Qt?

2014-04-09 Thread Vincent Cai
Hi manish, Thanks for the reply. I am totally new to QPlugin and QLibrary. I don't quite understand your meaning. With your method below, can I load A/Prmt.dll then unload A/Prmt.dll and then load B/Prmt.dll in runtime without

Re: [Interest] Can QSortFilterProxyModel sort the filtered data only?

2014-04-09 Thread André Somers
Mark Gaiser schreef op 8-4-2014 17:41: Hi, When reading through the QSortFilterProxyModel i get the feeling that sorting is done on the source model regardless of a filter. That is no problem with small models since sorting is quite fast, but that can be a bit of a pain if you have

[Interest] Dragging between separate windows in Qml

2014-04-09 Thread Paweł Pietraszko
Hi! I am trying to accomplish dragging objects beetween QML windows. So far I have created my own tab view with draggable tabs (beetwen other tab views). Now I want to implement the possibility to drag tabs out to separate windows and putting windows back as tabs. Ideally, object after being

Re: [Interest] Is it possible to override dll in runtime in Qt?

2014-04-09 Thread manish sharma
I think you might have to design your application something like below: For instance all the Prmt.dlls should implement a common interface for instance: PrmtInterface and place it under PrmtInterface.h And your Core.dll only know about PrmtInterface.h, it should not link to any of the Prmt.dll.

Re: [Interest] Is it possible to override dll in runtime in Qt?

2014-04-09 Thread manish sharma
you might want to take a look at http://qt-project.org/doc/qt-5/qtwidgets-tools-plugandpaint-example.html On Wed, Apr 9, 2014 at 3:29 PM, manish sharma 83.man...@gmail.com wrote: I think you might have to design your application something like below: For instance all the Prmt.dlls should

Re: [Interest] Dragging between separate windows in Qml

2014-04-09 Thread manish sharma
And about moving the window while mouse is being moved while in external drag is not possible as startDrag starts a different event loop. About the question on setting a pixmap for Drag attached property i have raised a jira ticket https://bugreports.qt-project.org/browse/QTBUG-37366and so far

Re: [Interest] Is it possible to override dll in runtime in Qt?

2014-04-09 Thread Vincent Cai
Thanks a lot! I have already implemented Core.dll and Prmt.dll in the way you suggested. Will learn how to use QPluginLoder for such case. If anyone can provide a sample code, that would be greatly helpful. :) From: manish sharma [mailto:83.man...@gmail.com] Sent: Wednesday, April 09, 2014 6:06

Re: [Interest] Is it possible to override dll in runtime in Qt?

2014-04-09 Thread Thiago Macieira
Em qua 09 abr 2014, às 05:04:27, Vincent Cai escreveu: Dear All, I have an Qt application, which uses 2 dll, one is Prmt.dll and the other is Core.dll. Core.dll is dependent on Prmt.dll. Prmt.dll has multiple instances in different folders, for example: A/Prmt.dll, B/Prmt.dll... The Qt

Re: [Interest] [Development] qmake option to find qt library location

2014-04-09 Thread Thiago Macieira
Em qua 09 abr 2014, às 17:41:21, Sandeep escreveu: Hello, I have an application which links to Qt shared libraries. I build the application with Qt creator, so I manually configure the qmake to be chosen by the qtcreator. So all the qt libraries are automatically linked in accordance

Re: [Interest] Is it possible to override dll in runtime in Qt?

2014-04-09 Thread Thiago Macieira
Em qua 09 abr 2014, às 06:52:01, Vincent Cai escreveu: With your method below, can I load A/Prmt.dll then unload A/Prmt.dll and then load B/Prmt.dll in runtime without restarting Application? Not a good idea. Unloading plugins is not recommended. Simply restart the application

[Interest] Low-level font identifier

2014-04-09 Thread Yves Bailly
Greetings all, Having to reuse some piece of very old code, I need to get the low-level handle on a font - specifically the HFONT, as we're running on Windows. In the Qt3 days, there was a method QFont::handle() which was providing this information, but it seems it's gone in Qt5. Having a

Re: [Interest] Speech recognition in Qt5

2014-04-09 Thread Jason H
This may be of interest http://sdt.bz/content/article.aspx?ArticleID=69042page=1 From: Frederik Gladhorn frederik.gladh...@digia.com To: interest@qt-project.org Cc: Ramakanthreddy Kesireddy ramakanthreddy.kesire...@techmahindra.com Sent: Tuesday, April 8,

[Interest] Insert without scrolling

2014-04-09 Thread Hugo Teso
Hi, I am trying to insert some text at the top of a QPlainTextEdit. To do so I'm am using this lines of code: ui-textEdit-moveCursor(QTextCursor::Start, QTextCursor::MoveAnchor); ui-textEdit-insertPlainText(Some text here); The problem is that, by doing this, the textEdit is scrolled to the top

Re: [Interest] Insert without scrolling

2014-04-09 Thread Tony Rietwyk
Hi Hugo, Try using an explicit QTextCursor rather than the QTextEdit interfaces. Hope that helps, Tony -Original Message- Sent: Thursday, 10 April 2014 2:23 AM Hi, I am trying to insert some text at the top of a QPlainTextEdit. To do so I'm am using this lines of code: