In QML you can provide a QNAM factory. This is supposed to return a new
QNAM for the calling thread. So having multiple QNAM in an app is not
really an issue?
On Thu, Jan 30, 2014 at 3:33 AM, Thiago Macieira
thiago.macie...@intel.comwrote:
On quarta-feira, 29 de janeiro de 2014 21:45:47,
Such operation should be possible, yet it fails cause setProperty calls:
QDynamicPropertyChangeEvent ev(name);
QCoreApplication::sendEvent(this, ev);
sendEvent cannot be called from another thread the object does not belong
to. Is this a bug? Shouldn't that be postEvent instead?
I have the following problem. I want to have only one QNAM in the (heavily
plugin based) app.
So I create one QNAM in the main thread when the app starts and assign it
to the qApp-setProperty(qnam).
Now I have several threads that can run in the background and once in a
while need network access
are they available somewhere? They are not installed.
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest
The source informations can be fixed during runtime. VS asks to locate the
source files (which we do have installed).
So it would be very, very helpful to have them available *without* forcing
us to build Qt ourselfs (which could introduce bugs because of different
compilers/linkers used than in
, Philipp Kursawe wrote:
Does it support the behaviour of std::recursive_mutex?
What behaviour, in specific?
--
Thiago Macieira - thiago.macieira (AT) intel.com
Software Architect - Intel Open Source Technology Center
___
Interest mailing list
was telling about is
the one that provides the behavior that Philipp was asking about, right?
André
Den 23-01-2014 09:24, Philipp Kursawe skrev:
To be re-entrant from the same thread. We have the case that functions
running in the same thread can each ask for the DB connection. That
should
I have QDialog with
setWindowFlags(Qt::Popup | Qt::FramelessWindowHint);
and it displays just fine (with shadow and all).
However my nativeEvent handler is never called with the WM_NCHITTEST
message. It is called with WM_LBUTTONDOWN and others. When I replace
Qt::Popup with Qt::Dialog the
Your database class uses a std::recursive_mutex (not the Qt mutex, its a
resource waster!) to synchronize access to the database.
Then in the method that returns a new shared pointer of QSqlDatabase you
use a std::lock_guard with that mutex to allow only one thread to use the
DB. I usually also
-feira, 22 de janeiro de 2014 16:39:24, Philipp Kursawe wrote:
Your database class uses a std::recursive_mutex (not the Qt mutex, its a
resource waster!)
Do you have any numbers? QMutex is very small and optimised (on Linux).
QWaitCondition suffers because QMutex is so small.
--
Thiago
...@intel.com
wrote:
On quarta-feira, 22 de janeiro de 2014 22:01:39, Philipp Kursawe wrote:
sorry got that mixed up. Qt uses Events under Windows (was that changed
in
Qt5?), which is still not as efficient as CriticalSections.
Yes, QMutex got a large rewrite in Qt 5.
I'd like to see your
In Win32 thats pretty easy to achieve. However I found no way to create a
resizable popup dialog in Qt. Specifying the Popup style does not even
generate the WM_NCHITTEST Win32 messages I would need to add resizing
behaviour. But I would also be happy to use the system provided thick
resize frame
I don't know about other multi-plugin projects realized with Qt but I am
having massive troubles to facilitate the Qt translation system correctly.
First flaw I see is the whole Embedd the default text in the source code.
Translations should always be external and id based. The Qt tools cannot
The OpenGL dependency should be dropped altogether for the QtGUI dll, imho.
Just use the platforms own rendering engine to do all the rendering.
On Fri, Dec 13, 2013 at 8:54 AM, Yves Bailly yves.bai...@sescoi.fr wrote:
Le 13/12/2013 08:50, Michael Sué a écrit :
I think support for VS 2010
Why are they not part of this release, but only VS2010 comes with x86
OpenGL support?
For the desktop I would love to go completly without any dependency on
OpenGL but since that is not an option anymore (QtGUI depends on it for
whatever reason) I would like to have the smallest deploy size
+kai.koehne=digia@qt-project.org] On Behalf
Of
Philipp Kursawe
Sent: Thursday, December 12, 2013 11:05 AM
To: interest@qt-project.org
Subject: [Interest] Where are the 5.2 VS2012 x86 OpenGL binaries
Why are they not part of this release, but only VS2010 comes with x86
OpenGL support
Uhmm, what do you mean by providing REST Services?
Are you talking about a HTTP framework like Rails or Sinatra? Imho such
functionality has no place in the default distribution of Qt. You can
easily develop that as an addon library. In fact, to develop a basic REST
HTTP Server in plain C++ with
(6,7))
add a PUT/POST for storage:
POST /O1/p2
7
calls O1::setP2(7)
etc. Basically REST services are object hierarchies, and we do that with
QObjects (RestObjects)
--
*From:* Philipp Kursawe phil.kurs...@gmail.com
*To:* Jason H scorp...@yahoo.com
*Cc
When you have complex chain of ProxyModels you cannot use the result index
from a call to mapToSource because you cannot know how many proxy models
are down the chain.
Imagine this chain:
p2 - p1 - m0
pX are Proxy models, m0 is the base model.
I know only about p2 in my part of the code and
Is there a way to change the behaviour of a view to expand its height
instead of displaying a toolbar to make all items visible? I would like the
parent container to be scrollable, because it contains multiple listviews
in a vertical layout.
___
Interest
I wonder if that is a bug:
If I style a QComboBox's border with a 2px solid red it looses its style
on the dropdown arrow, which happened to be flat styled (on Windows) and
then appears in 3D beveled style like old Win95. No more styles have been
applied to this combo via css.
Whats going on
That's what I already did. I am using the second variant.
On Wed, Nov 27, 2013 at 12:07 PM, Nurmi J-P jpnu...@digia.com wrote:
On 27 Nov 2013, at 11:10, Philipp Kursawe phil.kurs...@gmail.com wrote:
I wonder if that is a bug:
If I style a QComboBox's border with a 2px solid red it looses
Well, I am not applying the style to the combobox itself, but to the apps
global stylesheet like this:
QComboBox.error {
border:2px solid red;
}
And the combobox property is set like this:
combo-setProperty(class, error);
On Wed, Nov 27, 2013 at 12:46 PM, Philipp Kursawe phil.kurs
jpnu...@digia.com wrote:
On 27 Nov 2013, at 12:46, Philipp Kursawe phil.kurs...@gmail.com wrote:
That's what I already did. I am using the second variant.
On Wed, Nov 27, 2013 at 12:07 PM, Nurmi J-P jpnu...@digia.com wrote:
On 27 Nov 2013, at 11:10, Philipp Kursawe phil.kurs
It seems the QListView icon mode calculates individual item sizes based on
the items display role. It does not take the set TextElideMode into account
and also does not workbreak the text.
I would like to have all items the same size 90x100 and the text under the
icon max 2 lines height with
I would like to select all QLabel which do not have the error class
property.
This would select all QLabel which have the error in their class
property.
QLabel[class~=error] {
}
However, I would like to have the reverse way, all items *not* having this
class. In CSS3 we have not(x) but its not
No. I tried and it lacking basic UI features of the desktop like proper
keyboard handling and a proper combos, treeview.
Also the weird domain language which is a mix of JavaScript and json does
not help. Worst if all, it's difficult to debug.
--
From: Graham Labdon
the Qt5-way?
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary2424312414441479834==
--===2424312414441479834==
Content-Type: multipart/signed; boundary=nextPart6567963.r7pnNChBp8;
micalg=pgp-sha1; protocol=application/pgp-signature
And post the code fragment here maybe? ;)
On Wed, Nov 20, 2013 at 10:58 AM, Joseph W. Joshua jos...@megvel.me.kewrote:
On 20-Nov-13 12:36 PM, André Somers wrote:
Joseph W. Joshua schreef op 20-11-2013 9:40:
Hi all,
In the attached image, you can see how I am able to group items in a
Thats the focused pseudo style.
On Thu, Nov 21, 2013 at 6:11 PM, Graham Labdon
graham.lab...@avalonsciences.com wrote:
Hi William
Thanks for that
Say I have a push button for which I have set an icon and set the text to
an empty string.
When this is displayed all I see is the Icon,
understood you correctly the
behavior should be that without a valid Icon the text should be at the same
height as the one with valid icons. Am I right ?
On 19 nov. 2013, at 11:23, Philipp Kursawe phil.kurs...@gmail.com wrote:
sure:
http://pastebin.com/5ncqUJrs
On Mon, Nov 18, 2013
Yes sure I could use this hack, but I hoped there is a better way of
achieving a behaviour which is the default under Win32 (where I come from
and never have to fight such issues :)
On Wed, Nov 20, 2013 at 12:50 AM, Tony Rietwyk t...@rightsoft.com.auwrote:
Hi Philipp,
Can't you use a
sure:
http://pastebin.com/5ncqUJrs
On Mon, Nov 18, 2013 at 9:39 PM, Samuel Gaist samuel.ga...@edeltech.chwrote:
Do you have a minimum sample that reproduce the problem ?
On 18 nov. 2013, at 21:31, Philipp Kursawe phil.kurs...@gmail.com wrote:
Its a mixed problem I guess. When the items
The mechanism to be notified would be different depending on where the
settings are stored. E.g. if they are stored in a file, you could try
using a QFileSystemWatcher (although I haven't tried that myself), but you
still wouldn't know which setting changed. (Although maybe
I wonder whats broken with the QListView.
I want it to display 64x64 icons and a label (which can be quite long).
What properties do I have to set so the listview renders the items (even
the ones without a Qt::Decoration role) correctly in a 64x64 grid?
the other items text appears (at the bottom of the icon).
On Mon, Nov 18, 2013 at 9:29 PM, Samuel Gaist samuel.ga...@edeltech.chwrote:
On 18 nov. 2013, at 18:02, Philipp Kursawe phil.kurs...@gmail.com wrote:
I wonder whats broken with the QListView.
I want it to display 64x64 icons and a label
I set it to true in my SizePolicy for a widget, however the layout still
jiggles around when this widget is being hidden and shown.
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest
It seems a QAbstractProxyModel subclass is useless and not working properly
if you not connect all the source models signals as forwarding signals in
setModel().
I saw the QSortFilterProxyModel does all this connecting and disconnecting
too. Shouldn't this be in the QAPM class in the first place?
:16, Philipp Kursawe skrev:
Thanks André. It's things like this that make me wonder if we have
chosen the right framework from time to time. Given that the Win32
ListView has all this functionality and much more what Qt has to offer.
But then Win32 API has no concept of signals/slots like
Is there a reason why UUIDs are not saved using toRfc4122().toLatin1() in
the database?
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest
My code just broke when I wanted to use the return value of
requestQuery.queryItemValue(redirect_uri);
and expected it to be schema://authorized (as in 5.2) but instead got it
back as undecoded value.
So has the default behaviour changed? I couldn't find anything in the
commit history about it.
Thanks, I found the commit before, but missed that it also changed decoding
of ://
On Thu, Nov 7, 2013 at 6:50 PM, Thiago Macieira
thiago.macie...@intel.comwrote:
On quinta-feira, 7 de novembro de 2013 14:02:06, Philipp Kursawe wrote:
My code just broke when I wanted to use the return value
So we hacked out version of lupdate to compile id based .ts files from ui
files but thats only the first step. Now the ui compiler also has to be
changed to generate code for retranslateUI that uses qtTrid instead
of QApplication::translate
That is a huge amount of work.
Why oh why was id based
I tried to subclass it and setMinimumWidth(12). That make it wieder but now
it seems to reach inthe the next widget of the splitter. Same when I set
the min-width using CSS. So how can I force Qt to correctly honor different
sized QSplitterHandles?
___
I wonder... what are the reasons for this dependency?
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest
Why is that, when I add a border-image style to a QPB it changes its size
to be very small instead of staying at the same size just have a different
border renderer?
QPushButton {
font: Open Sans Semibold;
border-image: url(:/images/ui_bigbtn.png);
color: white;
border-color:
Shouldn't they be in Qt5OpenGL.dll?
On Wed, Nov 6, 2013 at 4:41 PM, Thiago Macieira
thiago.macie...@intel.comwrote:
On quarta-feira, 6 de novembro de 2013 13:26:56, Philipp Kursawe wrote:
I wonder... what are the reasons for this dependency?
The QOpenGL* classes that are in QtGui
Why don't you like the dynamic loading solution? I would always prefer it
over static linking, if possible. All plugin based systems (even Qt, where
platform is a plugin) are based on dynamic code loading.
OpenGL should not be a dependency on a base windowing framework imho.
On Wed, Nov 6, 2013
I wonder why lupdate does not allow to translate UI with id instead of
message string.
All other strings in the app can also be translated id based though.
Now, when I have such mixed .ts file, lrelease on the other hand can only
create qm files for either id-based or non-id-based sources. So how
Since we cannot easily (with QCSS at least) style QLabels I resorted
to use QPushButtons for clickable items in the canvas and styled them
to look like links. However I would like to set
text-decoration:underline on hover for those type of buttons but it
does not work. I digged into the source
I want to style my QLineEdit in case of an error like this:
QLineEdit.error { border: 2px solid orange; }
I have set this style on the QLE parent widget. When I add the dynamic
class property in the designer and set it to error the QLE gets a nice
thick orange border.
However if I do the same in
Well, it seems these 3 lines solve the issue:
widget-style()-unpolish(widget);
widget-style()-polish(widget);
widget-update();
However this should be handled by the QWidget internally, when it knows
that a dynamic property is used in a style.
On Thu, Oct 31, 2013 at 3:18 PM, Philipp Kursawe
widget = qobject_castQWidget*(object)) {
widget-style()-unpolish(widget);
widget-style()-polish(widget);
widget-update();
}
}
}
return __super::eventFilter(object, event);
}
On Thu, Oct 31, 2013 at 3:55 PM, Philipp Kursawe phil.kurs...@gmail.comwrote:
Well
I would have to do that for every of my widgets, which sounds like a bug to
me.
On Wed, Oct 30, 2013 at 8:48 AM, Bo Thorsen bthor...@ics.com wrote:
Den 29-10-2013 18:36, Philipp Kursawe skrev:
That is really anyoing. When I set a widgets objectName I expect it to
not modify this name
Any way to find that out?
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest
I want to detect how users usually work with the application. Do they click
more or use the shortcuts. This way we can optimize the UI.
On Wed, Oct 30, 2013 at 11:09 AM, Bo Thorsen bthor...@ics.com wrote:
Den 30-10-2013 10:59, Philipp Kursawe skrev:
Any way to find that out?
No. Just like
Thanks for the explanation. There are quite a lot of times on this
mailing list, where instead of helping someone to achieve what they
want, the proper solution is to stop them from doing it. We see that
over and over again. This is a good example of a problem that smelled
this way, but
I would like to log all executed QActions in a global way without having a
QActionManager or the like that every component in the app has to use. Is
that possible in Qt?
___
Interest mailing list
Interest@qt-project.org
Well, at least the QComboBox in QML is a big joke (on the desktop). It
usese a popup menu which is slow as hell and unscrollable with more
than 10 entries. QML has to go a lng way until it works on the
Desktop
On Mon, Sep 30, 2013 at 9:54 AM, Thiago Macieira
thiago.macie...@intel.com wrote:
Is there a reason why Qt does not allow us to have access to defined
stylesheets?
In my QStyledItemDelegate I would like to query for certain CSS style
definitions to know which icon to draw and in which color based on the
items content/state.
I think a workaround would be to create a QWidget on
I know I can fake CSS classes using
obj-setProperty(class, myClass);
//CSS
*[class=myClass] {
}
However, are there plans to support the .myClass notation in the future?
___
Interest mailing list
Interest@qt-project.org
hmmm just tested it, and it works already in 5.1!
.italic {
font: italic;
}
.error {
font: bold;
}
obj-setProperty(class, error italic)
:)
On Thu, Sep 12, 2013 at 4:52 PM, Bo Thorsen bthor...@ics.com wrote:
Den 12-09-2013 13:20, Philipp Kursawe skrev:
I know I can fake CSS classes using
Thanks for the 5.2 update. Currently I keep the result from connect as you say.
On Mon, Sep 9, 2013 at 1:08 AM, Thiago Macieira
thiago.macie...@intel.com wrote:
On domingo, 8 de setembro de 2013 23:55:15, Philipp Kursawe wrote:
Well, my example was not complete.Of course the lambda code does
Hello,
the common trick to move a captionless window on Windows is to call
its DefWndProc like this:
if (msg-message == WM_LBUTTONDOWN) {
*result = DefWindowProc(msg-hwnd, WM_NCLBUTTONDOWN, HTCAPTION, msg-lParam);
return false;
}
I do that in my QMainWindow nativeEvent handler. However now
Great! Spacibo ;) I had not seen that in the docs.
On Tue, Sep 3, 2013 at 10:05 AM, Konstantin Tokarev annu...@yandex.ru wrote:
03.09.2013, 11:59, Philipp Kursawe phil.kurs...@gmail.com:
I did not find a way to write unit-tests for my QNAM based code. My
objects take a QNAM and perform
65 matches
Mail list logo