[Interest] Custom .prf files for QMake in project root?

2014-08-17 Thread Elvis Stansvik
is QMake only loading the .prf files in the project root if there's a cache file? It seems an arbitrary limitation to me, but perhaps I'm missing something? AFAICS this makes it impossible to ship custom .prf files with your project and rely on them being loaded by QMake :( Best regards, Elvis

Re: [Interest] Custom .prf files for QMake in project root?

2014-08-17 Thread Elvis Stansvik
2014-08-17 18:23 GMT+02:00 Elvis Stansvik elvst...@gmail.com: Hi folks, According to point 3 in the second list at [1], I should be able to put my own .prf feature files for QMake in the project root. I tried putting my foo.prf in features/win32/foo.prf with a simple message(foo.prf loaded

Re: [Interest] Custom .prf files for QMake in project root?

2014-08-17 Thread Elvis Stansvik
make it a .pri to be include()ed instead. Thanks for the tip. Elvis BR, Filip On Sun, Aug 17, 2014 at 6:23 PM, Elvis Stansvik elvst...@gmail.com wrote: Hi folks, According to point 3 in the second list at [1], I should be able to put my own .prf feature files for QMake in the project

Re: [Interest] Daydreaming about browser-hosted Qt apps

2014-09-25 Thread Elvis Stansvik
2014-09-25 4:03 GMT+02:00 Bob Hood bho...@comcast.net: I was just daydreaming about writing a web-based interface to a secure cloud storage (ala DropBox) using Qt. I imagined clients who would need to use Desktop-based browsers (Chrome, Firefox, etc.) for the ability to securely access

Re: [Interest] What is the difference.

2014-09-26 Thread Elvis Stansvik
2014-09-26 22:09 GMT+02:00 Karl Ruetz karl.ru...@ruetzdogz.com: On Sep 26, 2014, at 2:37 PM, Karl Ruetz karl.ru...@ruetzdogz.com wrote: On Sep 24, 2014, at 10:22 AM, Thiago Macieira thiago.macie...@intel.com wrote: On Wednesday 24 September 2014 10:41:09 Koehne Kai wrote: I think

[Interest] Restricting QXmlQuery to QPath 2.0

2014-10-18 Thread Elvis Stansvik
Hi folks, I'm considering using QtXmlPatterns, but I need to be able to restrict queries to only accept XPath 2.0 expressions, not the full XQuery 1.0 language. This seems impossible at the moment; QXmlQuery supports either XQuery10 or XSLT20 as values for queryLanguage. However, the

Re: [Interest] Restricting QXmlQuery to QPath 2.0

2014-10-18 Thread Elvis Stansvik
2014-10-18 14:03 GMT+02:00 Elvis Stansvik elvst...@gmail.com: Hi folks, I'm considering using QtXmlPatterns, but I need to be able to restrict queries to only accept XPath 2.0 expressions, not the full XQuery 1.0 language. This seems impossible at the moment; QXmlQuery supports either

Re: [Interest] How does QDesktopServices decide what application to use?

2015-02-15 Thread Elvis Stansvik
2015-02-14 20:05 GMT+01:00 Benjamin Block b...@mageta.org: Hello folks, just a short question about QDesktopServices. When you call the openUrl() function, the documentation states that the URL will be opened with a suitable application. But how does qt decide what application to use? For

Re: [Interest] Qt support for WebSocket Subprotocol

2015-03-15 Thread Elvis Stansvik
2015-01-13 7:54 GMT+01:00 Juergen Bocklage-Ryannel li...@ryannel.org: Hi All, I try to implement the wamp.ws (http://wamp.ws) websocket protocol, which would allow instances of Qt to talk to any WAMP backend. For this Qt websockets ideally would support the subprotocol non-normative

Re: [Interest] XML schema validation alternatives?

2015-05-12 Thread Elvis Stansvik
2015-05-11 21:49 GMT+02:00 Murphy, Sean smur...@walbro.com: I was trying to use QXmlSchemaValidator to validate XML files vs. their associated schema and I'm encountering an infinite loop that eventually causes the application to crash. It's been reported (over 5 years ago) in

Re: [Interest] Using QWebSocketServer in a thread other than the GUI thread?

2015-05-27 Thread Elvis Stansvik
2015-05-27 9:43 GMT+02:00 Rainer Wiesenfarth rainer_wiesenfa...@trimble.com : (Qt 5.3.2 Windows msvc-2010 64bit) I would like to add a QWebSocketServer to an existing application. I would like to have all its operation handled by a thread different from the GUI thread to get communication

Re: [Interest] Relevant industrial buses

2015-07-03 Thread Elvis Stansvik
QtSerialPort. Modbus was the only thing that came to mind right now. Currently we use pymodbus, which is very well-written, if you need inspiration. Qt for industrial automation is an interesting prospect though. Best regards, Elvis Stansvik Yours, Tuukka Turunen Director, RD The Qt

Re: [Interest] [SOLVED] Text rendering problem.

2015-07-24 Thread Elvis Stansvik
2015-07-24 1:20 GMT+02:00 william.croc...@analog.com william.croc...@analog.com: I have this working with DirectWrite on Windows, but it only appears to work when my app is built with debug mode. If I build it in release mode then it does *not* work and the text appears badly kerned. This

Re: [Interest] Text rendering problem.

2015-07-18 Thread Elvis Stansvik
2015-07-18 1:13 GMT+02:00 Bill Crocker william.croc...@analog.com: Hello: I am having a text rendering problem. The following code creates a QLabel and QGraphicsTextItem. The QLabel text is 60 pt. The QGraphicsTextItem text size is 6 pt, but then the view is scaled up by 10x. So, in the

Re: [Interest] Qt.io confusing website ... where are the pricing table and how to get indie license ?

2015-07-18 Thread Elvis Stansvik
2015-07-18 16:48 GMT+02:00 Bob Hood bho...@comcast.net: On 7/18/2015 8:30 AM, Elvis Stansvik wrote: Another small nitpick on that page (see attached screenshot) is the two subtitles Commercial. When they are juxtaposed like that it looks kind of weird. It's also weird that they are the _only_

Re: [Interest] QFile::size() and QTextStream::pos()

2015-10-29 Thread Elvis Stansvik
2015-10-29 23:43 GMT+01:00 Igor Mironchik : > > > On 30.10.2015 00:05, Thiago Macieira wrote: >> >> On Thursday 29 October 2015 21:49:40 Igor Mironchik wrote: >>> >>> On 29.10.2015 06:51, Thiago Macieira wrote: On Thursday 29 October 2015 05:51:36 Igor Mironchik

Re: [Interest] QFile::size() and QTextStream::pos()

2015-10-28 Thread Elvis Stansvik
2015-10-28 20:57 GMT+01:00 Igor Mironchik : > Hi, > > On 28.10.2015 22:50, Thiago Macieira wrote: >> >> On Wednesday 28 October 2015 22:37:06 Igor Mironchik wrote: >>> >>> Hi, >>> >>> Can I expect that values returned by QFile::size() and >>> QTextStream::pos() are equal

Re: [Interest] QPixmapCache considerations on ios and android

2015-10-25 Thread Elvis Stansvik
2015-10-25 15:53 GMT+01:00 maitai : > Hello, > > I have several relatively big pixmap I'd like to manage through cache. > Big meaning 1024x1024 at a maximum (one edge is 1024 while the other is > less or equal). I need to keep something like 10 of those in a cache >

Re: [Interest] MSVC 2013 Bug?

2015-11-12 Thread Elvis Stansvik
2015-11-12 23:22 GMT+01:00 Igor Mironchik : > > > On 13.11.2015 00:44, Thiago Macieira wrote: >> >> On Thursday 12 November 2015 23:56:20 Igor Mironchik wrote: First of all, allocating memory when throwing exceptions is bad practice. Avoid it by

Re: [Interest] MSVC 2013 Bug?

2015-11-12 Thread Elvis Stansvik
2015-11-12 23:57 GMT+01:00 Elvis Stansvik <elvst...@gmail.com>: > 2015-11-12 23:22 GMT+01:00 Igor Mironchik <igor.mironc...@gmail.com>: >> >> >> On 13.11.2015 00:44, Thiago Macieira wrote: >>> >>> On Thursday 12 November 2015 23:56:20 Igor Mi

Re: [Interest] Adding OpenSSL Support to Android 6.0 - Provided instructions fail to build

2015-11-03 Thread Elvis Stansvik
Den 3 nov 2015 1:30 em skrev "Nuno Santos" : > > Hi, > > I’m trying to cross build openssl in order to bundle it with my APK. I don’t know if the instructions are imprecise or outdated but I couldn’t manage to build openssl with the provide instructions:

Re: [Interest] Adding OpenSSL Support to Android 6.0 - Provided instructions fail to build

2015-11-03 Thread Elvis Stansvik
ch-arm/usr/include Not sure if you solved this issue already, but I would assume setting CFLAGS in the environment should do the trick. Elvis > > >> On 03 Nov 2015, at 13:35, Elvis Stansvik <elvst...@gmail.com> wrote: >> >> I have no experience with cross building

Re: [Interest] Adding OpenSSL Support to Android 6.0 - Provided instructions fail to build

2015-11-03 Thread Elvis Stansvik
rt CC and export AR does the trick, however it still doesn’t find stdlib.h without passing -I/Users/nsantos/android/ndk/platforms/android-9/arch-arm/usr/include >> >> >>> On 03 Nov 2015, at 13:35, Elvis Stansvik <elvst...@gmail.com> wrote: >>> >>> I have no e

Re: [Interest] Odd new-style connect()/disconnect() error with Qt 5.5.0

2015-10-14 Thread Elvis Stansvik
2015-10-14 19:50 GMT+02:00 Bob Hood : > I'm having an odd compiler error using the new-style connect() and > disconnect() with a QTcpSocket object. I'm working under Linux with Qt 5.5.0 > and QtCreator. I built Qt 5.5.0 myself without modifications, and then built > QtCreator

Re: [Interest] Odd new-style connect()/disconnect() error with Qt 5.5.0

2015-10-14 Thread Elvis Stansvik
2015-10-14 20:26 GMT+02:00 Bob Hood <bho...@comcast.net>: > On 10/14/2015 12:04 PM, Elvis Stansvik wrote: >> >> I believe it is because QAbstractSocket::error is an overloaded >> function, so it is ambiguous in your connect/disconnect calls. It >> needs t

Re: [Interest] Is here memory leaks?

2015-10-08 Thread Elvis Stansvik
2015-10-08 20:57 GMT+02:00 Igor Mironchik : > Hi guys, > > Can anybody explain me, please. Is here memory leaks or no? Yes. Just look at the leak summary at the end. Elvis > > Please look in the attachment... > > -- > Best Regards, > Igor Mironchik. > > >

Re: [Interest] Is moc obsolete?

2015-07-08 Thread Elvis Stansvik
2015-07-08 22:21 GMT+02:00 Till Oliver Knoll till.oliver.kn...@gmail.com: Am 08.07.15 um 20:56 schrieb Konstantin Tokarev: 08.07.2015, 21:26, Till Oliver Knoll till.oliver.kn...@gmail.com: Am 08.07.2015 um 08:57 schrieb Igor Mironchik igor.mironc...@gmail.com: Hi, Does

Re: [Interest] remote backgound-image in stylesheet

2015-09-20 Thread Elvis Stansvik
Hi Amadeo, 2015-09-20 11:44 GMT+02:00 Amedeo Sorpreso : > Ciao! > > I have a QWidget... > ..can I set a remote image as his background image in the QWidget's > stylesheet ? > I tried: > >

Re: [Interest] Installing Qt for Android Binaries without GUI

2015-09-22 Thread Elvis Stansvik
2015-09-22 15:32 GMT+02:00 Andreas Cord-Landwehr : > On Tuesday 22 September 2015 07:19:33 m...@rpzdesign.com wrote: >> Yes, write a bash script. > > Sorry, but I do not get your point. > > Actually, I am already writing a bash script but the problem is that I do not > see a

Re: [Interest] Installing Qt for Android Binaries without GUI

2015-09-22 Thread Elvis Stansvik
2015-09-22 16:08 GMT+02:00 Andreas Cord-Landwehr <cordlandw...@kde.org>: > On Tuesday 22 September 2015 15:58:42 Elvis Stansvik wrote: >> If I understood him right, he wants to make a Dockerfile that creates >> a Docker image from scratch (i.e. something that anyone could us

Re: [Interest] Installing Qt for Android Binaries without GUI

2015-09-22 Thread Elvis Stansvik
2015-09-22 15:43 GMT+02:00 m...@rpzdesign.com : > If you are using a docker container, why use the installer at all. > > Create a docker image with the binaries already in the search path. > > You can figure out the dependencies and paths using "nm" utility in linux. > > So if

Re: [Interest] MacOSx: Qt::KeypadModifier for arrow keys?

2015-09-19 Thread Elvis Stansvik
Hi Alan, 2015-09-18 22:52 GMT+02:00 Alan Ezust : > I am running a keyboard test program on the MacOS > with Qt 5.4 on MacOSx 10.10.5, Clang. > All it does is print out the modifiers and the keycodes when I type arrow > keys. > > > void Dialog::keyPressEvent(QKeyEvent *ke) {

Re: [Interest] Windows deployment. Failed to start because of missing platform plugin...

2015-08-28 Thread Elvis Stansvik
2015-08-28 16:56 GMT+02:00 Bo Thorsen b...@vikingsoft.eu: Yes, although this is frowned upon. You are supposed to install the redist package from VS instead. But I also choose to deliver those as well as the SSL libraries. I'm also guilty of the same transgression in a very simple project of

Re: [Interest] Qmake: execute two different link steps?

2015-12-03 Thread Elvis Stansvik
Hi André, 2015-12-03 10:51 GMT+01:00 André Hartmann : > Hello, > > I have a Qmake based project that is developed in Qt Creator (currently > compiled with Linux/gcc and Windows/MinGW). > > Depending on a configuration variable the PRO file my program links to one > of

Re: [Interest] Qmake: execute two different link steps?

2015-12-03 Thread Elvis Stansvik
2015-12-03 13:02 GMT+01:00 Konstantin Tokarev <annu...@yandex.ru>: > > > 03.12.2015, 15:00, "Elvis Stansvik" <elvst...@gmail.com>: >> Hi André, >> >> 2015-12-03 10:51 GMT+01:00 André Hartmann <andre.hartm...@iseg-hv.de>: >>> Hell

Re: [Interest] zipping with Qt

2015-12-11 Thread Elvis Stansvik
Hi Michael, 2015-12-11 21:44 GMT+01:00 Michael Vetter : > Hello list, > > I am developing an application which should have a custom file format > which in reality will just be a .tar.gz file. In is will be some xml > files and images. I will need to install such a file and

Re: [Interest] SOLVED: QStyledItemDelegate's sizeHint() height being ignored by QTableWidget?

2016-01-04 Thread Elvis Stansvik
2016-01-04 16:19 GMT+01:00 Bob Hood : > On 1/3/2016 7:30 PM, Bob Hood wrote: > > Am I going to have to use a QTableView with a model in order to get the > height I need in each cell, or might this be a bug? > > > Since all my images are the same height, I solved this by

Re: [Interest] Dynamically created item destroyed with original parent despite reparenting

2015-12-20 Thread Elvis Stansvik
4.x docs, it says there are limitations on .push (it'll only create a new list, not modify an existing, but don't know if this holds for 5.x). Elvis > > On 20 Dec 2015, at 17:02, Elvis Stansvik <elvst...@gmail.com> wrote: > > Elvis > > ___

Re: [Interest] Dynamically created item destroyed with original parent despite reparenting

2015-12-20 Thread Elvis Stansvik
2015-12-20 15:51 GMT+01:00 Personal Gmail : > As the documentation says: http://doc.qt.io/qt-5/qml-qtqml-component.html > Dynamically created instances can be deleted with the destroy() method. See > Dynamic QML Object Creation from JavaScript for more information. >

Re: [Interest] Dynamically created item destroyed with original parent despite reparenting

2015-12-20 Thread Elvis Stansvik
>> >> On the other hand, the information that Elvis provided about the >> distinction between visual parent and QObject parents seems to hit the nail >> on the head. I will test and report back! >> >> Best regards, >> koffy >> >> On Mon, Dec 2

Re: [Interest] Dynamically created item destroyed with original parent despite reparenting

2015-12-20 Thread Elvis Stansvik
e blue rectangle > gets destroyed with oldParent). Yea, I tried and got the same result. So strange, the docs clearly speaks of assigning to the data property. Elvis > > > On Mon, Dec 21, 2015 at 2:13 AM, Peter Klosowski <klo...@gmail.com> wrote: >> >> >> &

Re: [Interest] Distance from point to path.

2015-12-30 Thread Elvis Stansvik
2015-12-29 19:47 GMT+01:00 william.croc...@analog.com : > > Given a QPoint and a QPainterPath. > How do I find the distance from the QPoint to the > closest point along the QPainterPath. > >> >> Perhaps. But you should consider that QPainterPath is,

Re: [Interest] Distance from point to path.

2015-12-29 Thread Elvis Stansvik
2015-12-28 22:49 GMT+01:00 william.croc...@analog.com : > Hello: > > Given a QPoint and a QPainterPath. > How do I find the distance from the QPoint to the > closest point along the QPainterPath. > > I could step along the path with pointAtPercent > looking for the

Re: [Interest] Distance from point to path.

2015-12-29 Thread Elvis Stansvik
2015-12-29 15:07 GMT+01:00 william.croc...@analog.com <william.croc...@analog.com>: > On 12/29/2015 06:42 AM, Elvis Stansvik wrote: >> >> 2015-12-28 22:49 GMT+01:00 william.croc...@analog.com >>> >>> >>> Given a QPoint and a QPainterPath

Re: [Interest] How to create a list.

2016-01-12 Thread Elvis Stansvik
2016-01-12 15:37 GMT+01:00 Bill Crocker : > Hello: > > Could someone please show me the few lines of code required > to add a list *of three elements* to a QTextDocument using low > level (i.e QTextBlock, QTextCursor, QTextList, etc.) classes. This would be one way:

Re: [Interest] Define map of static items in QML

2016-06-03 Thread Elvis Stansvik
Hi Alejandro, I realized I never got back to this and answered you, sorry about that. 2016-04-02 17:02 GMT+02:00 Alejandro Exojo <s...@badopi.org>: > El Wednesday 30 March 2016, Elvis Stansvik escribió: >> > not at all if that suit you for your key, it's all good. objec

Re: [Interest] Define map of static items in QML

2016-06-03 Thread Elvis Stansvik
2016-06-03 17:55 GMT+02:00 Elvis Stansvik <elvst...@gmail.com>: > Hi Alejandro, > > I realized I never got back to this and answered you, sorry about that. > > 2016-04-02 17:02 GMT+02:00 Alejandro Exojo <s...@badopi.org>: >> El Wednesday 30 March 2016, Elvis St

Re: [Interest] Awkwardness of delegates in heterogenous ListViews

2016-06-08 Thread Elvis Stansvik
's really no way to make a delegate that can be used in both the "normal" situation and in the indirect-through-Loader approach. Elvis > > (Not tested, just an idea) > > -Even > > -Original Message- > From: Interest [mailto:interest-bounces+even.kristoffersen= h

[Interest] childrenRect of TableView rowDelegate always QRectF(0, 0, 0, 0)?

2016-06-09 Thread Elvis Stansvik
Hi, Like the topic says, it seems the childrenRect of a rowDelegate is always QRectF(0,0,0,0), and not related to the items contained in the row. How can I get access to the max height and max width of the items in a row inside the rowDelegate? I want the row to always take on the height of the

Re: [Interest] Awkwardness of delegates in heterogenous ListViews

2016-06-09 Thread Elvis Stansvik
her types of items. I think this can work for me, since my item types are quite simple and "mutually exclusive" so to speak, so I won't have conflicting properties to alias. Thanks for all the input! Elvis 2016-06-09 9:38 GMT+02:00 Elvis Stansvik <elvst...@gmail.com>: > 2016-06

Re: [Interest] Awkwardness of delegates in heterogenous ListViews

2016-06-09 Thread Elvis Stansvik
2016-06-09 10:22 GMT+02:00 Elvis Stansvik <elvst...@gmail.com>: > Okay, this thread is getting long, but I've now found a solution I > think I'm happy with, I thought I'd share it: > > First, my ColorDelegate, a delegate for items of type "color": > > ColorDele

Re: [Interest] Awkwardness of delegates in heterogenous ListViews

2016-06-09 Thread Elvis Stansvik
2016-06-09 8:20 GMT+02:00 Elvis Stansvik <elvst...@gmail.com>: > 2016-06-09 7:54 GMT+02:00 Elvis Stansvik <elvst...@gmail.com>: >> 2016-06-08 23:59 GMT+02:00 Jason H <jh...@gmx.com>: >>> I'm coming into this late, but can't you just set up: >>> >&

[Interest] Awkwardness of delegates in heterogenous ListViews

2016-06-08 Thread Elvis Stansvik
Hi all, I'm currently using a "type" role in my items and then a Loader as delegate, to give a level of indirection and let me choose the actual delegate based on the "type" of the item. This explains it better (from my ListView): delegate: Loader { sourceComponent: {

Re: [Interest] Awkwardness of delegates in heterogenous ListViews

2016-06-08 Thread Elvis Stansvik
2016-06-08 15:32 GMT+02:00 Elvis Stansvik <elvst...@gmail.com>: > Hi all, > > I'm currently using a "type" role in my items and then a Loader as > delegate, to give a level of indirection and let me choose the actual > delegate based on the "type" of the i

[Interest] Adjust rows to content in QML TableView

2016-06-07 Thread Elvis Stansvik
Is it possible? Seems there's only resizeColumnsToContents, no resizeRowsToContents like in QTableView :/ If I really must create my own rowDelegate to do this, is there some way of getting access to the default row delegate, so that I can selectively override just the height property? Thanks in

Re: [Interest] Adjust rows to content in QML TableView

2016-06-07 Thread Elvis Stansvik
2016-06-07 13:08 GMT+02:00 Elvis Stansvik <elvst...@gmail.com>: > Is it possible? Seems there's only resizeColumnsToContents, no > resizeRowsToContents like in QTableView :/ > > If I really must create my own rowDelegate to do this, is there some In fact, I'm not even sure

[Interest] TableView has no rows/columns when initial modelChanged is emitted, bug?

2016-06-08 Thread Elvis Stansvik
Hi all, Consider the following: import QtQuick 2.4 import QtQuick.Window 2.2 import QtQuick.Controls 1.3 Window { width: 500 height: 500 ListModel { id: libraryModel ListElement { title: "A Masterpiece" } } TableView { model:

Re: [Interest] TableView has no rows/columns when initial modelChanged is emitted, bug?

2016-06-08 Thread Elvis Stansvik
2016-06-08 9:46 GMT+02:00 Elvis Stansvik <elvst...@gmail.com>: > Hi all, > > Consider the following: > > import QtQuick 2.4 > import QtQuick.Window 2.2 > import QtQuick.Controls 1.3 > > Window { > width: 500 > height: 500 > > ListModel { >

[Interest] Keyboard navigation into, out of and within TableView in QML

2016-06-07 Thread Elvis Stansvik
Hi all, I'm working with a device that has only a pushwheel button as input. Turning the button gives keyboard Up/Down presses. Given: import QtQuick 2.4 import QtQuick.Window 2.2 import QtQuick.Controls 1.3 Window { visible: true width: 400 height: 400 ListModel { id:

Re: [Interest] Keyboard navigation into, out of and within TableView in QML

2016-06-07 Thread Elvis Stansvik
(Qt.BottomEdge) } } } But this is also a horrible kludge. Surely there's some easier way of achieving such a simple thing? 2016-06-07 15:31 GMT+02:00 Elvis Stansvik <elvst...@gmail.com>: > Hi all, > > I'm working with a device that has only a pushwheel button as input. > T

Re: [Interest] Animate rotation at given speed, how to set direction?

2016-06-03 Thread Elvis Stansvik
2016-05-15 15:08 GMT+02:00 Elvis Stansvik <elvst...@gmail.com>: > Hi folks, > > With RotationAnimation I can control the direction of the rotation > (cw/ccw). But I'd like to animate rotation at a certain speed, using > SmoothedAnimation: > >

Re: [Interest] Help parsing output of "mksquashfs" command

2016-06-03 Thread Elvis Stansvik
2016-06-03 12:32 GMT+02:00 Juan Navarro : > Hey Elvis, thank you for the tip. I'm convinced that this is the source of > the problem: the "output device" to which "mksquashfs" is writing, doesn't > show any number of "available columns" in my C++ code, thus it is probably >

[Interest] "Pausing" a QML state transition?

2016-06-14 Thread Elvis Stansvik
Hi all, I have a relatively complex QML item which is used to visualize and control a rotating sample holder with 4 sample slots. I model this as four visual states ("one", "two", "three" and "four"), and I've defined a Transition with a RotationAnimation which is used for all transition, in

Re: [Interest] TableView has no rows/columns when initial modelChanged is emitted, bug?

2016-06-13 Thread Elvis Stansvik
TableView item and making it ready for our input device (only Up, Down and Enter), and styling it has been pretty painful :/ Elvis 2016-06-08 9:49 GMT+02:00 Elvis Stansvik <elvst...@gmail.com>: > 2016-06-08 9:46 GMT+02:00 Elvis Stansvik <elvst...@gmail.com>: >> Hi al

Re: [Interest] Awkwardness of delegates in heterogenous ListViews

2016-06-08 Thread Elvis Stansvik
e text: value + " (flag)" visible: type === "flag" } Text { id: choiceDelegate text: value + " (choice)" visible: type === "choice" }

Re: [Interest] Awkwardness of delegates in heterogenous ListViews

2016-06-09 Thread Elvis Stansvik
2016-06-09 7:54 GMT+02:00 Elvis Stansvik <elvst...@gmail.com>: > 2016-06-08 23:59 GMT+02:00 Jason H <jh...@gmx.com>: >> I'm coming into this late, but can't you just set up: >> >> Item { // delegate >> >> Item { >> id: view1 >>

Re: [Interest] Awkwardness of delegates in heterogenous ListViews

2016-06-09 Thread Elvis Stansvik
Den 9 juni 2016 8:20 fm skrev "Elvis Stansvik" <elvst...@gmail.com>: > > 2016-06-09 7:54 GMT+02:00 Elvis Stansvik <elvst...@gmail.com>: > > 2016-06-08 23:59 GMT+02:00 Jason H <jh...@gmx.com>: > >> I'm coming into this late, but can't you just set

[Interest] Advanced QString::arg overloads from QML?

2016-05-29 Thread Elvis Stansvik
Hi all, Is there any way to tap into the functionality of the various QString::arg overloads such as http://doc.qt.io/qt-5/qstring.html#arg-4 from QML? I know QML extends the string type with .arg, but it seems it only supports one argument. I'd like to do '%1'.arg(value, 2, 10, '0')

Re: [Interest] Advanced QString::arg overloads from QML?

2016-05-30 Thread Elvis Stansvik
For leading 0 on 16 value: > ("000" + myIntValue.toString(10)).substr(-16) Alright. Would have been neat if more of the .arg overloads were available. But at the moment I have a utility JS function to do it, similar to the above. Thanks, Elvis > > Jerome > &

[Interest] Documentation missing for QAbstractListModel::columnCount/hasChildren ?

2016-06-02 Thread Elvis Stansvik
Hi all, There's currently this [1]: /*! \internal Returns the number of columns in the list with the given \a parent. \sa rowCount() */ int QAbstractListModel::columnCount(const QModelIndex ) const { return parent.isValid() ? 0 : 1; } bool QAbstractListModel::hasChildren(const

Re: [Interest] Documentation missing for QAbstractListModel::columnCount/hasChildren ?

2016-06-02 Thread Elvis Stansvik
2016-06-02 9:35 GMT+02:00 Elvis Stansvik <elvst...@gmail.com>: > Hi all, > > There's currently this [1]: > > /*! > \internal > Returns the number of columns in the list with the given \a parent. > \sa rowCount() > */ > > int QAbstractListModel

Re: [Interest] Help parsing output of "mksquashfs" command

2016-06-02 Thread Elvis Stansvik
2016-06-02 13:47 GMT+02:00 Juan Navarro : > Hello, > > I'm building a GUI tool under Kubuntu Linux 14.04, which among other things, > creates SquashFS (https://en.wikipedia.org/wiki/SquashFS) images with the > command-line command "mksquashfs". Due to the size of the images,

Re: [Interest] Help parsing output of "mksquashfs" command

2016-06-02 Thread Elvis Stansvik
2016-06-02 15:19 GMT+02:00 Elvis Stansvik <elvst...@gmail.com>: > 2016-06-02 13:47 GMT+02:00 Juan Navarro <oneorj...@gmail.com>: >> Hello, >> >> I'm building a GUI tool under Kubuntu Linux 14.04, which among other things, >> creates SquashFS (https:/

[Interest] Question about advice regarding dynamicSortFilter of QSFPM in the docs

2016-06-01 Thread Elvis Stansvik
Hi all, I've used QSortFilterProxyModel in the past, but it was quite a while ago and now I'm a little confused by the advice given in the docs. The description of the dynamicSortFilter property [1] reads: "Note that you should not update the source model through the proxy model when

Re: [Interest] Question about advice regarding dynamicSortFilter of QSFPM in the docs

2016-06-01 Thread Elvis Stansvik
2016-06-01 8:54 GMT+02:00 Elvis Stansvik <elvst...@gmail.com>: > Hi all, > > I've used QSortFilterProxyModel in the past, but it was quite a while > ago and now I'm a little confused by the advice given in the docs. > > The description of the dynamicSortFilter prope

Re: [Interest] Question about advice regarding dynamicSortFilter of QSFPM in the docs

2016-06-01 Thread Elvis Stansvik
2016-06-01 9:02 GMT+02:00 Elvis Stansvik <elvst...@gmail.com>: > 2016-06-01 8:54 GMT+02:00 Elvis Stansvik <elvst...@gmail.com>: >> Hi all, >> >> I've used QSortFilterProxyModel in the past, but it was quite a while >> ago and now I'm a little c

Re: [Interest] About Qt StyleSheet

2016-05-31 Thread Elvis Stansvik
2016-05-31 16:20 GMT+02:00 André Somers : > Hi, > > What I _think_ happens is that you currently are using a style that does > not support style sheets. Only build in styles do, up to a point. If you > then apply a style sheet, Qt probably switches to a fall-back style

Re: [Interest] QUndoStack

2016-06-17 Thread Elvis Stansvik
2016-06-17 18:18 GMT+02:00 Mike Jackson : > We are using the QUndoStack and when we "push()" onto the stack the actual > QUndoCommand is being executed. In the documentation is seems as though I > could set the "id" of the QUndoCommand to -1 and NOT have it executed but >

Re: [Interest] QUndoStack

2016-06-17 Thread Elvis Stansvik
2016-06-17 19:33 GMT+02:00 Elvis Stansvik <elvst...@gmail.com>: > 2016-06-17 18:18 GMT+02:00 Mike Jackson <imikejack...@gmail.com>: >> We are using the QUndoStack and when we "push()" onto the stack the actual >> QUndoCommand is being executed. In the docume

[Interest] Enable sample buffers / samples on QGLWidget from Python

2016-06-23 Thread Elvis Stansvik
Hi all, Sorry if this is slightly off-topic. I'm working with a QGLWidget-based widget. I know it's deprecated, but I'm tied to it for the moment since I'm working with VTK (something QOpenGLWidget-based will come eventually..). I have a need to enable sample buffers and set the number of

[Interest] Replacing icudtXX.dll without rebuilding Qt?

2016-01-17 Thread Elvis Stansvik
Hi all, In an effort to cut down on the size of the standalone ZIP distribution of my small command line tool [1] which only uses QtCore, and which to my knowledge does not depend on any localization features, I'd like to try replacing the icudtXX.dll that I currently take from the Qt bin

Re: [Interest] Replacing icudtXX.dll without rebuilding Qt?

2016-01-17 Thread Elvis Stansvik
2016-01-17 14:48 GMT+01:00 Elvis Stansvik <elvst...@gmail.com>: > Hi all, > > In an effort to cut down on the size of the standalone ZIP > distribution of my small command line tool [1] which only uses QtCore, > and which to my knowledge does not depend on any localization

Re: [Interest] Replacing icudtXX.dll without rebuilding Qt?

2016-01-17 Thread Elvis Stansvik
2016-01-17 15:44 GMT+01:00 Konstantin Tokarev <annu...@yandex.ru>: > > > 17.01.2016, 17:30, "Elvis Stansvik" <elvst...@gmail.com>: >> 2016-01-17 14:48 GMT+01:00 Elvis Stansvik <elvst...@gmail.com>: >>> Hi all, >>> >>> In an

Re: [Interest] Replacing icudtXX.dll without rebuilding Qt?

2016-01-17 Thread Elvis Stansvik
2016-01-17 15:46 GMT+01:00 John Layt <jl...@kde.org>: > > > On 17 January 2016 at 14:30, Elvis Stansvik <elvst...@gmail.com> wrote: >> >> 2016-01-17 14:48 GMT+01:00 Elvis Stansvik <elvst...@gmail.com>: >> > Hi all, >> > >&g

Re: [Interest] Replacing icudtXX.dll without rebuilding Qt?

2016-01-17 Thread Elvis Stansvik
2016-01-17 14:48 GMT+01:00 Elvis Stansvik <elvst...@gmail.com>: > Hi all, > > In an effort to cut down on the size of the standalone ZIP > distribution of my small command line tool [1] which only uses QtCore, > and which to my knowledge does not depend on any localization

Re: [Interest] QGaphicsItem deletion

2016-06-16 Thread Elvis Stansvik
Den 15 juni 2016 6:00 em skrev "Igor Mironchik" : > > Hello. > > > On 15.06.2016 16:59, Konstantin Shegunov wrote: >> >> Hello, >> >> >> On Wed, Jun 15, 2016 at 4:15 PM, Igor Mironchik wrote: >>> >>> Parent of the handles is the same as Line's.

Re: [Interest] Item editor at preferred size when using custom delegate?

2016-02-12 Thread Elvis Stansvik
2016-02-12 14:59 GMT+01:00 Elvis Stansvik <elvst...@gmail.com>: > Hi all, > > I have a very basic item delegate which opens up a custom editor: > > class MineralLevelsDelegate(QStyledItemDelegate): > > def createEditor(self, parent, option, index): > ret

[Interest] Item editor at preferred size when using custom delegate?

2016-02-12 Thread Elvis Stansvik
Hi all, I have a very basic item delegate which opens up a custom editor: class MineralLevelsDelegate(QStyledItemDelegate): def createEditor(self, parent, option, index): return MineralLevelsEditor(parent) def updateEditorGeometry(self, editor, option, index):

Re: [Interest] Item editor at preferred size when using custom delegate?

2016-02-12 Thread Elvis Stansvik
2016-02-12 14:59 GMT+01:00 Elvis Stansvik <elvst...@gmail.com>: > Hi all, > > I have a very basic item delegate which opens up a custom editor: > > class MineralLevelsDelegate(QStyledItemDelegate): > > def createEditor(self, parent, option, index): > ret

Re: [Interest] Item editor at preferred size when using custom delegate?

2016-02-12 Thread Elvis Stansvik
2016-02-12 14:59 GMT+01:00 Elvis Stansvik <elvst...@gmail.com>: > Hi all, > > I have a very basic item delegate which opens up a custom editor: > > class MineralLevelsDelegate(QStyledItemDelegate): > > def createEditor(self, parent, option, index): > ret

Re: [Interest] how to add a buton to the hovered item from a qtreeview

2016-01-28 Thread Elvis Stansvik
Den 29 jan 2016 4:47 fm skrev "Nicolas Jäger" : > > Hi > I have a `QTreeView`, I control the background colors of items trough a css. When the pointer is > over an item his background is greyed. > > I use the signal `entered` to detect which item, aka `QModelIndex`, aka

[Interest] Stacked area chart and chart orientation in Qt Charts

2016-01-26 Thread Elvis Stansvik
Hi all, I noticed that Qt Charts has a stacked bar chart, but no stacked area chart like this: http://www.highcharts.com/demo/area-stacked Though you could of course compose one of multiple area charts yourself. But doesn anyone know if there's API planned for simplifying working with

Re: [Interest] Minimal MSVC-built ICU DLLs available for download

2016-01-25 Thread Elvis Stansvik
2016-01-25 22:06 GMT+01:00 Gunnar Roth : > >> Woah. So all this work for nothing, I can simply skip shipping the ICU >> DLLs? I'm only using QtCore. Oh well, then I learned something :) > > Maybe you should use depends.exe from dependancywalker.com to have a look > which dlls

Re: [Interest] Stacked area chart and chart orientation in Qt Charts

2016-01-31 Thread Elvis Stansvik
Den 1 feb 2016 1:59 fm skrev "Nikita Krupenko" <krne...@gmail.com>: > > 2016-01-27 8:56 GMT+02:00 Elvis Stansvik <elvst...@gmail.com>: > > Hi all, > > > > I noticed that Qt Charts has a stacked bar chart, but no stacked area > > chart like t

Re: [Interest] x-platform way to pull app version?

2016-02-02 Thread Elvis Stansvik
Den 1 feb 2016 8:20 em skrev "André Somers" : > > Easiest is to let your buildsystem generate some cpp code with the version numbers in each build. We compiled in version number, git id an time & date with a simple script called from qmake on every build. Small related tip

Re: [Interest] x-platform way to pull app version?

2016-02-02 Thread Elvis Stansvik
2016-02-02 18:45 GMT+01:00 Elvis Stansvik <elvst...@gmail.com>: > Den 1 feb 2016 8:20 em skrev "André Somers" <an...@familiesomers.nl>: >> >> Easiest is to let your buildsystem generate some cpp code with the version >> numbers in each build. We compil

Re: [Interest] moveToThread used in constructor to move "this"

2016-02-25 Thread Elvis Stansvik
2016-02-25 19:23 GMT+01:00 Elvis Stansvik <elvst...@gmail.com>: > 2016-02-25 19:10 GMT+01:00 Elvis Stansvik <elvst...@gmail.com>: >> 2016-02-25 18:24 GMT+01:00 Murphy, Sean <smur...@walbro.com>: >>>> >Foo() : QObject(nullptr) { >>>> >

Re: [Interest] moveToThread used in constructor to move "this"

2016-02-25 Thread Elvis Stansvik
2016-02-25 18:24 GMT+01:00 Murphy, Sean : >> >Foo() : QObject(nullptr) { >> > moveToThread(_thread); >> > m_thread.start(); >> >} >> > >> >~Foo() { >> > m_thread.quit(); >> > m_thread.wait(); >> >} >> >> This destructor is either never

Re: [Interest] moveToThread used in constructor to move "this"

2016-02-25 Thread Elvis Stansvik
2016-02-25 19:10 GMT+01:00 Elvis Stansvik <elvst...@gmail.com>: > 2016-02-25 18:24 GMT+01:00 Murphy, Sean <smur...@walbro.com>: >>> >Foo() : QObject(nullptr) { >>> > moveToThread(_thread); >>> > m_thread.start(); >>&

Re: [Interest] Replacing icudtXX.dll without rebuilding Qt?

2016-01-19 Thread Elvis Stansvik
2016-01-17 15:46 GMT+01:00 John Layt <jl...@kde.org>: > > > On 17 January 2016 at 14:30, Elvis Stansvik <elvst...@gmail.com> wrote: >> >> 2016-01-17 14:48 GMT+01:00 Elvis Stansvik <elvst...@gmail.com>: >> > Hi all, >> > >&g

  1   2   3   4   5   >