Re: [Interest] Calling QSettings::value() with an empty key name triggers an assert

2013-10-02 Thread Vadim Peretokin
Got it, thanks. ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest

Re: [Interest] Calling QSettings::value() with an empty key name triggers an assert

2013-10-02 Thread André Somers
Op 3-10-2013 7:38, Vadim Peretokin schreef: He's wanting to *set* the key to the default value however, not access it. Unless QSettings::value(".") or QSettings::value("Default") will set it to the default value as you suggest? No, QSettings::value(".") is a getter. But QSettings::setValue(".",

Re: [Interest] Calling QSettings::value() with an empty key name triggers an assert

2013-10-02 Thread Vadim Peretokin
He's wanting to *set* the key to the default value however, not access it. Unless QSettings::value(".") or QSettings::value("Default") will set it to the default value as you suggest? ___ Interest mailing list Interest@qt-project.org http://lists.qt-proje

Re: [Interest] Calling QSettings::value() with an empty key name triggers an assert

2013-10-02 Thread Andre Somers
Op 2-10-2013 17:35, Etienne Sandré-Chardonnal schreef: Dear all, I'm under windows, where registry supports a default value per key. This means, a value with an empty name. Using QSettings::setValue("", value) and QSettings::value("") works fine and as expected in release mode. It creates an

Re: [Interest] Can Qt 5.1.1 Commercial be compiled on RasPi?

2013-10-02 Thread Turunen Tuukka
Hi Mike, Yes, it runs on Rasperry Pi. Please contact Qt Enterprise support via: http://qt.digia.com/en/Log-in-Customer-Portal/ They will help you with this and other issues you may have. Yours, Tuukka Lähettäjä: interest-bounces+tuukk

Re: [Interest] Qt on PS4 and SteamOS

2013-10-02 Thread Mandeep Sandhu
On Wed, Oct 2, 2013 at 2:43 PM, Mojmír Svoboda < mojmir.svob...@warhorsestudios.cz> wrote: > * Mandeep Sandhu [2013-09-30 16:08:44 > +0530]: > > > As for PS4 I don't know what OS it runs. You might have to add a QPA > plugin > > for it for running Qt on its graphics stack. > > It is a fork of Fre

Re: [Interest] Can Qt 5.1.1 Commercial be compiled on RasPi?

2013-10-02 Thread Thiago Macieira
On quarta-feira, 2 de outubro de 2013 16:29:41, Mike Short wrote: > There was an issue when using -commercial flag, due to "licheck". > > I looked at all the files and the script for licheck which appears to > check the license key given to validate it. You may want to ask your commercial suppor

[Interest] Can Qt 5.1.1 Commercial be compiled on RasPi?

2013-10-02 Thread Mike Short
I recently compiled Qt 5.1.1 on RasPi but had to use the -opensource on the configure. (compiled natively, was faster than expected, took under 2 days) There was an issue when using -commercial flag, due to "licheck". I looked at all the files and the script for licheck which appears to chec

Re: [Interest] Help with Model / View Programming (FilterProxyModel) -- sorry complex question!!

2013-10-02 Thread h
On Wed, 02 Oct 2013 14:53:54 +0200 André Somers wrote: > Hi, > > Op 2-10-2013 14:34, h schreef: > > Hi, > > I have a QT project I am developing on OpenSUSE 12.3, using QT 5.1 > > (64 bit) > > I am using the QT Model /View, currently using table views. > > > > My raw data in my model (subclass of

Re: [Interest] Segfault: qHash(QString const&) in libQtCore.so.4

2013-10-02 Thread Thiago Macieira
On quarta-feira, 2 de outubro de 2013 17:26:21, Peter Smith wrote: > Hi all, > > I'm having problems with QGIS seg faulting, and it looks like the > problem is in QT (hence posting on this list): No, it isn't. > (gdb) bt > #0 0x759445a3 in qHash(QString const&) () from > /usr/lib64/libQ

[Interest] Segfault: qHash(QString const&) in libQtCore.so.4

2013-10-02 Thread Peter Smith
Hi all, I'm having problems with QGIS seg faulting, and it looks like the problem is in QT (hence posting on this list): Program received signal SIGSEGV, Segmentation fault. 0x759445a3 in qHash(QString const&) () from /usr/lib64/libQtCore.so.4 (gdb) bt #0 0x759445a3 in qHash(QSt

Re: [Interest] Pointers as Q_PPOPERTY

2013-10-02 Thread Николай Шатохин
I tried in Qt5.1 and it's working. Thanks. 2013/10/2 Дмитрий Козлов > 02.10.2013 19:18, Stephen Kelly пишет: > > On Wednesday, October 02, 2013 19:02:54 Дмитрий Козлов wrote: > > Q_PROPERTY(Hull * hull READ hull) > Q_PROPERTY(Reactor * reactor READ reactor) > Q_PROPERTY(Shields * shields READ

Re: [Interest] Pointers as Q_PPOPERTY

2013-10-02 Thread Дмитрий Козлов
02.10.2013 19:18, Stephen Kelly пишет: On Wednesday, October 02, 2013 19:02:54 Дмитрий Козлов wrote: Q_PROPERTY(Hull * hull READ hull) Q_PROPERTY(Reactor * reactor READ reactor) Q_PROPERTY(Shields * shields READ shields) This approach should work in your case. This will work with QML with Qt 5

[Interest] Calling QSettings::value() with an empty key name triggers an assert

2013-10-02 Thread Etienne Sandré-Chardonnal
Dear all, I'm under windows, where registry supports a default value per key. This means, a value with an empty name. Using QSettings::setValue("", value) and QSettings::value("") works fine and as expected in release mode. It creates and read default values in the registry. However, I was surpr

Re: [Interest] Pointers as Q_PPOPERTY

2013-10-02 Thread Stephen Kelly
On Wednesday, October 02, 2013 19:02:54 Дмитрий Козлов wrote: > Q_PROPERTY(Hull * hull READ hull) > Q_PROPERTY(Reactor * reactor READ reactor) > Q_PROPERTY(Shields * shields READ shields) > > This approach should work in your case. This will work with QML with Qt 5.2. https://codereview.qt-proj

Re: [Interest] Pointers as Q_PPOPERTY

2013-10-02 Thread Дмитрий Козлов
02.10.2013 18:12, Николай Шатохин пишет: Hello I registered as QML Type class Ship inherited from QObject that have fields: Q_PROPERTY(Hull hull READ hull) Q_PROPERTY(Reactor reactor READ reactor) Q_PROPERTY(Shields shields READ shields) (all field classes inherited from QObject too) But in

Re: [Interest] Does Qt have a cross platform + mobile "QSystemTrayIcon"?

2013-10-02 Thread Joseph Crowell
On 02/10/2013 10:33 PM, Mark wrote: On Wed, Oct 2, 2013 at 7:52 AM, Rutledge Shawn mailto:shawn.rutle...@digia.com>> wrote: On 2 Oct 2013, at 12:07 AM, Mark wrote: > Hi, > > First of, the QSystemTrayIcon doc [1] seems extremely outdated so i don't know if this question is

[Interest] Pointers as Q_PPOPERTY

2013-10-02 Thread Николай Шатохин
Hello I registered as QML Type class Ship inherited from QObject that have fields: Q_PROPERTY(Hull hull READ hull) Q_PROPERTY(Reactor reactor READ reactor) Q_PROPERTY(Shields shields READ shields) (all field classes inherited from QObject too) But in ship class I'm using this fields as pointers

Re: [Interest] Help with Model / View Programming (FilterProxyModel) -- sorry complex question!!

2013-10-02 Thread André Somers
Hi, Op 2-10-2013 14:34, h schreef: > Hi, > I have a QT project I am developing on OpenSUSE 12.3, using QT 5.1 (64 > bit) > I am using the QT Model /View, currently using table views. > > My raw data in my model (subclass of QAbstractTableModel) is a linked > list of pointers. Each item in the list

[Interest] Help with Model / View Programming (FilterProxyModel) -- sorry complex question!!

2013-10-02 Thread h
Hi, I have a QT project I am developing on OpenSUSE 12.3, using QT 5.1 (64 bit) I am using the QT Model /View, currently using table views. My raw data in my model (subclass of QAbstractTableModel) is a linked list of pointers. Each item in the list maps to a row in the view and there are a fixed

Re: [Interest] Does Qt have a cross platform + mobile "QSystemTrayIcon"?

2013-10-02 Thread Mark
On Wed, Oct 2, 2013 at 7:52 AM, Rutledge Shawn wrote: > > On 2 Oct 2013, at 12:07 AM, Mark wrote: > > > Hi, > > > > First of, the QSystemTrayIcon doc [1] seems extremely outdated so i > don't know if this question is valid with that specific class name. > > What is outdated about the docs? Just t

Re: [Interest] How can i animate Layout.preferredWidth and friends?

2013-10-02 Thread Mark
On Wed, Oct 2, 2013 at 11:51 AM, Saether Jan-Arve < jan-arve.saet...@digia.com> wrote: > Of course it should not crash. > > I get an ASSERT: "mo" in file qml\qqmlvme.cpp, line 849 (this is with > current stable branch though). > > ** ** > > I'm a bit curious to know why do you want to ani

Re: [Interest] How can i animate Layout.preferredWidth and friends?

2013-10-02 Thread Saether Jan-Arve
Of course it should not crash. I get an ASSERT: "mo" in file qml\qqmlvme.cpp, line 849 (this is with current stable branch though). I'm a bit curious to know why do you want to animate that property? What do you want to achieve? Jan Arve From: interest-bounces+jan-arve.saether=digia@qt-proj

Re: [Interest] Qt on PS4 and SteamOS

2013-10-02 Thread Mojmír Svoboda
* Mandeep Sandhu [2013-09-30 16:08:44 +0530]: > As for PS4 I don't know what OS it runs. You might have to add a QPA plugin > for it for running Qt on its graphics stack. It is a fork of FreeBSD, with OpenGL. Have a nice day, Mojmir ___ Interest maili

Re: [Interest] Cannot enable dragging from QAbstractItemModel

2013-10-02 Thread Etienne Sandré-Chardonnal
Thanks, this worked! So this came from the view and not the model... 2013/10/2 Alex Malyushytskyy > Did you try to set setDragDropMode of the tree view to > QAbstractItemView::DragDrop? > QAbstractItemView::InternalMove accepts only move operation from itself > and does not accept copy. > > Reg

Re: [Interest] Dynamic translation using Qt Quick 2.x in Qt5.1.1

2013-10-02 Thread Bo Thorsen
It's one possibility to listen for a localeChange, yes. That has the advantage that it will catch the change no matter where it came from. But since language changes don't happen automatically I usually emit the signal after setting the new QTranslator myself. This has the advantage that I can