Re: [Interest] Generating unique string

2014-02-14 Thread Etienne Sandré-Chardonnal
Have a look also to this : http://qt-project.org/doc/qt-4.8/quuid.html Etienne 2014-02-15 7:58 GMT+01:00 Jonathan Greig : > Igor, > You might want to look at QCryptographicHash and then truncate or > concatenate to N chars. Either that or QDateTime using the epoch. Your > solution depends on ho

Re: [Interest] Generating unique string

2014-02-14 Thread Jonathan Greig
Igor, You might want to look at QCryptographicHash and then truncate or concatenate to N chars. Either that or QDateTime using the epoch. Your solution depends on how you are defining unique. Either way should be fairly simple. On Sat, Feb 15, 2014 at 1:49 AM, wrote: > Hi. > > Does Qt have so

[Interest] Generating unique string

2014-02-14 Thread igor.mironchik
Hi. Does Qt have something for generating unique string of N chars? Or maybe does somebody know simple way to do it? Thanks.___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest

Re: [Interest] Final QAbstractVideoSurface questions

2014-02-14 Thread Jason H
In a last ditch effort, I got this to work. I needed to change my m_dests to m_videoSurfaces, then set the source of the dest to this. I only figured this out by reviewing the VideoOutput source code.  I had seen a statement about providing a writable mediaObject or videoSurface property, which

Re: [Interest] QSqlTableModel remove row

2014-02-14 Thread Karl Ruetz
One possible way would be to connect the rowsRemoved signal for the model to a slot that calls model.select() or some other function that resets the model and updates the view. Karl On Feb 14, 2014, at 3:59 PM, wrote: > Hi. > > How to correctly remove row from QSqlTableModel? > > I’ve u

[Interest] QSqlTableModel remove row

2014-02-14 Thread igor.mironchik
Hi. How to correctly remove row from QSqlTableModel? I’ve used removeRow() and removeRows() but they are half-worked. They remove row from the database table and in the view I see that data is gone, but empty row in the view is still displayed...___ I

[Interest] Final QAbstractVideoSurface questions

2014-02-14 Thread Jason H
Recap: I am setting up a QML element to intercept frames from a VideoSource going to a VideoOutput. It looks like: {VideoSource}-frames-> {MySurfaceImplementation}-frames->{VideoOutput} Thanks to all the people here, I got the first part of it working. Now I'm confused on the last half.  MySurf

Re: [Interest] Qt5: single- vs double-click file/folder-open behaviour on KDE4/Linux

2014-02-14 Thread George Tasopoulos
I think the Qt libraries in Ubuntu's repositories haven't been updated and probably won't be until the next Ubuntu version. That was the reason why I used the installer from Qt's website instead. It has its own updater and you can stay up-to-date. --- Yours sincerely, George Tasopoulos On 14 Feb 2

Re: [Interest] Qt Maintenance Tool vs Online Installer

2014-02-14 Thread Thiago Macieira
Em sex 14 fev 2014, às 10:14:00, Alan Ezust escreveu: > I wanted to update from Qt 5.2.0 to Qt 5.2.1 on Linux. > > I ran MaintenanceTool and it spent about 3 minutes contacting the server > before it told me it had to update > itself. Then it did, it restarted, spent another 3 minutes looking for

Re: [Interest] Qt5: single- vs double-click file/folder-open behaviour on KDE4/Linux

2014-02-14 Thread Alan Ezust
I still see the problem with the latest version of QtCreator 3.0.1, (file system browser and file-open dialog) and I upgraded all my KDE ubuntu packages too. On Fri, Feb 14, 2014 at 9:29 AM, George Tasopoulos < tasopoulos.yorg...@gmail.com> wrote: > When I first downloaded Qt5 that was the case

[Interest] Qt Maintenance Tool vs Online Installer

2014-02-14 Thread Alan Ezust
I wanted to update from Qt 5.2.0 to Qt 5.2.1 on Linux. I ran MaintenanceTool and it spent about 3 minutes contacting the server before it told me it had to update itself. Then it did, it restarted, spent another 3 minutes looking for updates, and the told me I had one for QtCreator. But no update

Re: [Interest] Qt5: single- vs double-click file/folder-open behaviour on KDE4/Linux

2014-02-14 Thread George Tasopoulos
When I first downloaded Qt5 that was the case with me too. But I found a bug report about it and since a certain version (I don't remember which) it seems to have been fixed, as it follows my KDE settings. Make sure you have the latest version. -- Yours sincerely, George Tasopoulos On 14 Februar

[Interest] QAxWidget and Winword

2014-02-14 Thread Petric Frank
Hello, i use QAxWidget/QAxObject to automate a mailmerge process. The Mailmerge works well, but at end i find three Winword.exe processes in the task manager left over. A subsequent run adds 3 additional Winword processes and so on. At the end i get an interval error dialog box from Winword. T

Re: [Interest] Fwd: QtCompositor API : is it bit-rotting ?

2014-02-14 Thread Thiago Macieira
Em sex 14 fev 2014, às 12:32:28, Rutledge Shawn escreveu: > If it works, then the next question is, can we change Qt so that xcb is > completely optional at runtime, even if it exists and configure has found > it, if you are using the wayland plugin; while at the same time the same Qt > library wil

Re: [Interest] Qt5: single- vs double-click file/folder-open behaviour on KDE4/Linux

2014-02-14 Thread Thiago Macieira
Em sex 14 fev 2014, às 08:53:48, Alan Ezust escreveu: > I assume KDE4 can't pick up styles from Qt5, but is there some way to get > Qt5 apps to respect these style options in KDE4? Weird, I'm getting single click behaviour here. I thought that we were looking up the KDE 4 settings. Still, the ri

Re: [Interest] metaObject from class name

2014-02-14 Thread Thiago Macieira
Em sex 14 fev 2014, às 10:50:38, Graham Labdon escreveu: > Hi > In my application I have a class name as a string > This is the name of a class derived from QObject. > Now what I would like to do is the get metaObject for this class from the > string > > Is this at all possible? Yes, sure. Just

[Interest] Qt5: single- vs double-click file/folder-open behaviour on KDE4/Linux

2014-02-14 Thread Alan Ezust
In the KDE3 days, whenever my source-built (or binary downloaded) versions of Qt4 behaved differently than the debian builds with respect to my KDE preferences for mouse-click-open files and folders behaviour, I could fix it by running "qtconfig" and changing it from single to a double-click (which

Re: [Interest] metaObject from class name

2014-02-14 Thread Stephen Kelly
On Friday, February 14, 2014 10:02:29 you wrote: > > QMetaType::metaObjectForType is not documented. > > > > http://qt-project.org/doc/qt-5/qmetatype.html#metaObjectForType Ok then, it is documented :). My grep was wrong. > It was introduced in Qt 5.0. Yes. I wrote it. Thanks, -- Stephen Ke

Re: [Interest] metaObject from class name

2014-02-14 Thread Keith Gardner
> > QMetaType::metaObjectForType is not documented. > > http://qt-project.org/doc/qt-5/qmetatype.html#metaObjectForType It was introduced in Qt 5.0. ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest

Re: [Interest] metaObject from class name

2014-02-14 Thread Stephen Kelly
On Friday, February 14, 2014 09:21:20 Keith Gardner wrote: > class Foo : public QObject > { > ... > }; > Q_DECLARE_METATYPE(Foo*) This is not needed. > > const char *string = "Foo"; > const QMetaObject* metaObject = > QMetaType::metaObjectForType(QMetaType::type(string)); > > I haven't tri

Re: [Interest] metaObject from class name

2014-02-14 Thread Graham Labdon
Ok Thanks From: Keith Gardner [mailto:kreios4...@gmail.com] Sent: 14 February 2014 15:21 To: Jason H Cc: Graham Labdon; interest@qt-project.org Subject: Re: [Interest] metaObject from class name If you register the class with QMetaType with Q_DECLARE_METATYPE(Class*), you can then call QMetaType

Re: [Interest] metaObject from class name

2014-02-14 Thread Keith Gardner
If you register the class with QMetaType with Q_DECLARE_METATYPE(Class*), you can then call QMetaType::type("Class"). With the returned int, you can then call QMetaType::metaObjectForType(integer). I think this is what you are looking for. class Foo : public QObject { ... }; Q_DECLARE_METATY

Re: [Interest] metaObject from class name

2014-02-14 Thread Jason H
I'm not 10% udnerstanding your intentions, but this might help. You can create any QObject through QMetaObject by the class name, then get the meta object for the created object. Look at QMetaObject::newInstance(..) You need a "class factory" design pattern. Here is an example: http://www.ics.c

Re: [Interest] qmake project file questions

2014-02-14 Thread Koehne Kai
> -Original Message- > From: interest-bounces+kai.koehne=digia@qt-project.org > files =\ >foo.cpp \ >foo.h \ >bar.cpp \ >bar.h > > for(file, files) { >contains(file, '.*.h') { > message(header = $$file) > HEADERS *= $$file >} >contains(file, '.*.

Re: [Interest] Fastest Way to convert a QVideoFrame to an QImage?

2014-02-14 Thread Till Oliver Knoll
Changing the subject of an email is /not/ enough when replying to an email in a /different/ thread: emails do have "message IDs" which are not only evaluated by the NSA, but also by every decent email client on this planet which supports "threaded views". So I took the liberty to "re-hijack" y

Re: [Interest] QSqlTableModel couldn't insert new record.

2014-02-14 Thread Mark Brand
On 02/14/2014 01:11 PM, igor.mironc...@gmail.com wrote: > I’m trying to insert new record to the table with: > QSqlRecord r; > r.setValue( 0, 0 ); > r.setValue( 1, QString() ); > r.setValue( 2, QString() ); > r.setValue( 3, QString() ); > if( !d->model->insertRecord( -1, r ) ) >

Re: [Interest] Fwd: QtCompositor API : is it bit-rotting ?

2014-02-14 Thread Rutledge Shawn
On 14 Feb 2014, at 11:12 AM, Jean-Michaël CELERIER wrote: > I tried to compile it, however I get numerous errors related to Wayland and > Wayland functions that seem to have changed. > > For instance : wl_display_add_object which looks like it has disappeared some > time ago : https://gitoriou

Re: [Interest] metaObject from class name

2014-02-14 Thread Mandeep Sandhu
On Fri, Feb 14, 2014 at 4:20 PM, Graham Labdon < graham.lab...@avalonsciences.com> wrote: > > Hi > In my application I have a class name as a string > This is the name of a class derived from QObject. > Now what I would like to do is the get metaObject for this class from the > string > > Is this

Re: [Interest] QSqlTableModel couldn't insert new record.

2014-02-14 Thread igor.mironchik
I’ve found the problem... The problem solved with: QSqlRecord r = d->model->record(); From: igor.mironc...@gmail.com Sent: Friday, February 14, 2014 2:07 PM To: interest@qt-project.org Subject: QSqlTableModel couldn't insert new record. Hi. I have the next SQLite table: QSqlQuery table( QLat

[Interest] QSqlTableModel couldn't insert new record.

2014-02-14 Thread igor.mironchik
Hi. I have the next SQLite table: QSqlQuery table( QLatin1String( "CREATE TABLE IF NOT EXISTS contacts ( " "marked INTEGER, contact TEXT, ""type TEXT, comment TEXT )" ) ); And the next QSqlTableModel: model = new QSqlTableModel( w, db );model->setTable( QLatin1Str

[Interest] metaObject from class name

2014-02-14 Thread Graham Labdon
Hi In my application I have a class name as a string This is the name of a class derived from QObject. Now what I would like to do is the get metaObject for this class from the string Is this at all possible? Many thanks ___ Interest mailing list Inte

[Interest] Fwd: QtCompositor API : is it bit-rotting ?

2014-02-14 Thread Jean-Michaël CELERIER
I tried to compile it, however I get numerous errors related to Wayland and Wayland functions that seem to have changed. For instance : wl_display_add_object which looks like it has disappeared some time ago : https://gitorious.org/weston/wayland/commit/3ac8757 This is quite sad, I would really h

Re: [Interest] Get Android (or OS) version via Qt API?

2014-02-14 Thread Blasche Alexander
Hi, The SDK version is available via: QtAndroid::androidSdkVersion() see qtandroidextras/src/androidextras/android/qandroidfunctions.h There might be a tiny bit more information hidden in private headers but they come along with the usual "use at your own risk we may change it" statement. -