Re: [Interest] invalidated copies of QString in QCommonStyle::cachedOption

2016-01-18 Thread Igor Mironchik
On 18.01.2016 13:46, Mojmír Svoboda wrote: On 18.1.2016 10:21, Igor Mironchik wrote: Can you reset model on closing of your table view, drop any data, etc... And then close view. Yes i am doing that. I am trying to close everything i know i created (models, proxy models, context menus

[Interest] QGraphicsScene & removing item

2016-06-25 Thread Igor Mironchik
Hi, I ran into a problem. When I delete item (QGraphicsItem) from scene I received following crash: 1 QGraphicsSceneFindItemBspTreeVisitor::visit qgraphicsscene_bsp.cpp 77 0x776aeb24 2 QGraphicsSceneBspTree::climbTree qgraphicsscene_bsp.cpp 245 0x776ae6dc 3

Re: [Interest] QGraphicsScene & removing item

2016-06-25 Thread Igor Mironchik
So problem is very old. May be somebody know what is the reason? On 25.06.2016 19:40, Igor Mironchik wrote: Hi, I ran into a problem. When I delete item (QGraphicsItem) from scene I received following crash: 1 QGraphicsSceneFindItemBspTreeVisitor::visit qgraphicsscene_bsp.cpp

[Interest] Fwd: Re: QUndoStack

2016-06-24 Thread Igor Mironchik
Forwarded Message Subject:Re: [Interest] QUndoStack Date: Fri, 24 Jun 2016 19:38:22 +0300 From: Igor Mironchik <igor.mironc...@gmail.com> To: Bob Hood <bho...@comcast.net> Your approach is possible. But guess that you move rect in scene by mous

[Interest] Fwd: Re: QUndoStack

2016-06-24 Thread Igor Mironchik
Forwarded Message Subject:Re: [Interest] QUndoStack Date: Fri, 24 Jun 2016 19:35:44 +0300 From: Igor Mironchik <igor.mironc...@gmail.com> To: Alan Ezust <alan.ez...@gmail.com> How I missed it?! Thank you for the links. I solved it by

Re: [Interest] QGaphicsItem deletion

2016-06-16 Thread Igor Mironchik
Hi, On 16.06.2016 09:21, Michael Sué wrote: Hi, I would think you get less problems and more code working automatically if your Line is graphicsitem parent of the grips. Agree. If you want the boundingRect function of your Line to return something special you can just overwrite it as

[Interest] WIndows | QMake | DLL

2016-02-10 Thread Igor Mironchik
Hi guys, I'm trying to build my project on windows using MSVC 2013. Project consist of shared lib project and app project. app project depends on shared lib. Everything is fine, but on final link I always receive error like: "cannot open input file MyDll.lib". MyDll.dll is built, but

Re: [Interest] WIndows | QMake | DLL

2016-02-10 Thread Igor Mironchik
Thank you. Yves Bailly is right, I forgot about Q_DECL_EXPORT & Q_DECL_IMPORT On 10.02.2016 18:13, Yves Bailly wrote: -Original Message- I'm trying to build my project on windows using MSVC 2013. Project consist of shared lib project and app project. app project depends on shared

Re: [Interest] Customize QTableView selection color

2016-02-05 Thread Igor Mironchik
Hi, you can simple use QSS, for example: QTableView::item:selected { background: #6a6ea9; } On 05.02.2016 18:34, Murphy, Sean wrote: I’m still struggling with how to customize the selection color for items on a QTableView (previously posted as

[Interest] QGraphicsTextItem & editing

2016-02-09 Thread Igor Mironchik
Hi, I create QGraphicsTextItem and setTextInteractionFlags( Qt::TextEditorInteraction ), but text is not editable, I don't see cursor, etc... How to start editing in QGraphicsTextItem? Thank you. ___ Interest mailing list Interest@qt-project.org

Re: [Interest] QGraphicsTextItem & editing

2016-02-09 Thread Igor Mironchik
On 09.02.2016 19:03, Igor Mironchik wrote: On 09.02.2016 18:26, Igor Mironchik wrote: Hi, I create QGraphicsTextItem and setTextInteractionFlags( Qt::TextEditorInteraction ), but text is not editable, I don't see cursor, etc... How to start editing in QGraphicsTextItem? I got one

Re: [Interest] QGraphicsTextItem & editing

2016-02-09 Thread Igor Mironchik
On 09.02.2016 18:26, Igor Mironchik wrote: Hi, I create QGraphicsTextItem and setTextInteractionFlags( Qt::TextEditorInteraction ), but text is not editable, I don't see cursor, etc... How to start editing in QGraphicsTextItem? I got one point - setTextInteractionFlags( Qt

Re: [Interest] QGraphicsTextItem & editing

2016-02-09 Thread Igor Mironchik
On 09.02.2016 19:03, Igor Mironchik wrote: On 09.02.2016 18:26, Igor Mironchik wrote: Hi, I create QGraphicsTextItem and setTextInteractionFlags( Qt::TextEditorInteraction ), but text is not editable, I don't see cursor, etc... How to start editing in QGraphicsTextItem? I got one

[Interest] Starting drag operation from slot.

2016-02-12 Thread Igor Mironchik
Hi folks, I need to start drag operation in slot connected to QAction::triggered(). Below is what I do in the slot. { const QString fileName = QFileDialog::getOpenFileName( this, tr( "Select Image" ), QStandardPaths::standardLocations(

Re: [Interest] Starting drag operation from slot.

2016-02-12 Thread Igor Mironchik
rag->exec(); } else QMessageBox::warning( this, tr( "Wrong Image..." ), tr( "Failed to load image from \"%1\"." ).arg( fileName ) ); } } On 12.02.2016 15:25, Igor Mironchik wrote: Hi folks, I need to start drag oper

[Interest] QtCreator & generated headers

2016-01-29 Thread Igor Mironchik
Hi folks, If I add extra compiler to pro file: QMAKE_EXTRA_COMPILERS += generate generate.name = GEN generate.input = TO_GENERATE generate.output = ${QMAKE_FILE_BASE}.hpp generate.CONFIG = no_link generate.variable_out = HEADERS generate.commands = do_stuff PRE_TARGETDEPS +=

Re: [Interest] QtArg version 2.0.0

2016-01-26 Thread Igor Mironchik
On 26.01.2016 15:00, Ben Lau wrote: On 26 January 2016 at 19:52, Igor Mironchik <igor.mironc...@gmail.com <mailto:igor.mironc...@gmail.com>> wrote: Hi, On 26.01.2016 14:11, Nikos Chantziaras wrote: On 25/01/16 13:48, Igor Mironchik wrote:

Re: [Interest] QtArg version 2.0.0

2016-01-26 Thread Igor Mironchik
Hi, On 26.01.2016 14:11, Nikos Chantziaras wrote: On 25/01/16 13:48, Igor Mironchik wrote: Hello guys, I'm glad to present QtArg version 2.0.0 In new version were * implemented commands in command line, * improved hierarchy of argument classes, * improved help system, * improved

Re: [Interest] How to display custom data entry form on QLineEdit click ?

2016-02-01 Thread Igor Mironchik
Hi, On 01.02.2016 19:11, Edward Sutton wrote: I want to display a form with a numeric touch key pad plus a decimal point when user clicks on a QLIneEdit field. I did not see any signal such as editingStarted. What are approaches to implementing a custom data entry? I am targeting Android

Re: [Interest] Best practice to packages on Ubuntu with QtIF

2016-02-22 Thread Igor Mironchik
QMAKE_RPATHDIR = It works now. Thank you. On 22/02/16 10:31, Igor Mironchik wrote: In my Makefile I have: LFLAGS= -Wl,-O1 -Wl,-rpath,/home/igor/Qt/5.5/gcc_64 -Wl,-rpath,${ORIGIN} -Wl,-rpath,/home/igor/Qt/5.5/gcc_64/lib On 22.02.2016 10:26, Nikos Chantziaras wrote: That doesn't do

Re: [Interest] Tempalted QObjects

2016-02-22 Thread Igor Mironchik
On 22.02.2016 19:07, Thiago Macieira wrote: On segunda-feira, 22 de fevereiro de 2016 14:43:57 PST Jean-Michaël Celerier wrote: Hello, Following Oliver Goffart's blog bost : https://woboq.com/blog/moc-myths.html "For example, I implemented support for templated QObjects in moc

Re: [Interest] Tempalted QObjects

2016-02-22 Thread Igor Mironchik
Hello. On 22.02.2016 16:43, Jean-Michaël Celerier wrote: Hello, Following Oliver Goffart's blog bost : https://woboq.com/blog/moc-myths.html "For example, I implemented support for templated QObjects in moc , but this was not merged because it did

Re: [Interest] Deploy Qt on windows with relative paths

2016-01-19 Thread Igor Mironchik
On Windows you can try to set up working directory in the shortcut... On 19.01.2016 20:56, Denis Shienkov wrote: Hi all. I want to launch my QML application, based on Qt 5.x, QtQuick 2 with following deployment tree: deploy |-> deploy-qt-runtime |-> deploy-my-app where 1)

Re: [Interest] Build a Photos(Mac) copy with Qt Widgets

2016-01-20 Thread Igor Mironchik
, I’ll check it out. :D 在 2016年1月20日,下午10:48,Igor Mironchik <igor.mironc...@gmail.com> 写道: Hi, On 20.01.2016 17:09, Hualet Wang wrote: And one more, what about QTableWidget with icons? And why you decided that QTableView will not do the trick? Because I’m not sure if QTableView is c

Re: [Interest] Build a Photos(Mac) copy with Qt Widgets

2016-01-20 Thread Igor Mironchik
nd( QString::number( i ) ); model.setStringList( items ); view.setModel( ); view.show(); return app.exec(); } On 20.01.2016 17:52, Hualet Wang wrote: Really ? That’s quite good enough for me if it’s true. Thank you for you suggestion, I’ll check it out. :D 在 2016年1月20日,

Re: [Interest] Build a Photos(Mac) copy with Qt Widgets

2016-01-20 Thread Igor Mironchik
t. :D 在 2016年1月20日,下午10:48,Igor Mironchik <igor.mironc...@gmail.com> 写道: Hi, On 20.01.2016 17:09, Hualet Wang wrote: And one more, what about QTableWidget with icons? And why you decided that QTableView will not do the trick? Because I’m not sure if QTableView is capable of re-layouti

[Interest] QtArg version 2.0.0

2016-01-25 Thread Igor Mironchik
Hello guys, I'm glad to present QtArg version 2.0.0 In new version were * implemented commands in command line, * improved hierarchy of argument classes, * improved help system, * improved syntax, * fixed different issues. http://imironchik.blogspot.com.by/2016/01/qtarg-version-200.html

Re: [Interest] QtArg version 2.0.0

2016-01-26 Thread Igor Mironchik
txt", where two first add is values of --crazy and third add is the command that receive value file.txt? Just for fun :) And I always open for communications and can fix a bug in a day, or implement some functionality in few days... :) On Tue, Jan 26, 2016 at 3:49 PM Igor Mir

Re: [Interest] QtArg version 2.0.0

2016-01-26 Thread Igor Mironchik
you :) On Tue, Jan 26, 2016 at 3:00 PM Ben Lau <xben...@gmail.com <mailto:xben...@gmail.com>> wrote: On 26 January 2016 at 19:52, Igor Mironchik <igor.mironc...@gmail.com <mailto:igor.mironc...@gmail.com>> wrote: Hi, On 26.01.2016 14:11,

Re: [Interest] QtArg version 2.0.0

2016-01-26 Thread Igor Mironchik
... On Tue, Jan 26, 2016 at 3:00 PM Ben Lau <xben...@gmail.com <mailto:xben...@gmail.com>> wrote: On 26 January 2016 at 19:52, Igor Mironchik <igor.mironc...@gmail.com <mailto:igor.mironc...@gmail.com>> wrote: Hi, On 26.01.2016 14:11, Nikos Chantziaras w

Re: [Interest] Qt component repositories

2016-01-26 Thread Igor Mironchik
On 26.01.2016 15:24, André Somers wrote: Op 26/01/2016 om 13:00 schreef Ben Lau: Moreover, will you consider to publish your library on qpm.io ? What's the difference between qpm.io and inqlude.org? As I understood on inqlude.org you can look at the web page and

Re: [Interest] Build a Photos(Mac) copy with Qt Widgets

2016-01-19 Thread Igor Mironchik
Hello, On 19.01.2016 17:47, Hualet Wang wrote: Hi friends. I’m trying to build a Photos like application with Qt Widgets. The main view should be able to display the photos, delete items on demand. I’m not sure if QTableView is sufficient to accomplish the task. Any ideas or any suggested

Re: [Interest] Build a Photos(Mac) copy with Qt Widgets

2016-01-19 Thread Igor Mironchik
On 19.01.2016 17:47, Hualet Wang wrote: Hi friends. I’m trying to build a Photos like application with Qt Widgets. The main view should be able to display the photos, delete items on demand. I’m not sure if QTableView is sufficient to accomplish the task. Any ideas or any suggested project

Re: [Interest] invalidated copies of QString in QCommonStyle::cachedOption

2016-01-20 Thread Igor Mironchik
Hi, On 20.01.2016 12:45, Mojmír Svoboda wrote: On 19.1.2016 10:37, Giuseppe D'Angelo wrote: Please trim down to a small testcase and submit a bug report. If your model is well-behaving the view can't cache the option that way. I managed to reproduce the behaviour with QStandardItemModel, so

Re: [Interest] invalidated copies of QString in QCommonStyle::cachedOption

2016-01-20 Thread Igor Mironchik
On 20.01.2016 14:25, Mojmír Svoboda wrote: On 20.1.2016 11:38, Igor Mironchik wrote: Why are you deleting model? i am trying to remove everything i can so that there are no references to the underlying data (m_strings). Just implement clear() method and between beginResetModel

Re: [Interest] invalidated copies of QString in QCommonStyle::cachedOption

2016-01-20 Thread Igor Mironchik
On 20.01.2016 12:45, Mojmír Svoboda wrote: On 19.1.2016 10:37, Giuseppe D'Angelo wrote: Please trim down to a small testcase and submit a bug report. If your model is well-behaving the view can't cache the option that way. I managed to reproduce the behaviour with QStandardItemModel, so

Re: [Interest] invalidated copies of QString in QCommonStyle::cachedOption

2016-01-20 Thread Igor Mironchik
On 20.01.2016 14:34, Mojmír Svoboda wrote: On 20.1.2016 11:26, Igor Mironchik wrote: Just looked a little at your code. And that what I can say: your code has nothing with QStringLiteral. QStringDataTable uses the same technique as QStringLiteral. QStringLiteral uses static structs! You

Re: [Interest] Build a Photos(Mac) copy with Qt Widgets

2016-01-20 Thread Igor Mironchik
On 20.01.2016 17:09, Hualet Wang wrote: And one more, what about QTableWidget with icons? And why you decided that QTableView will not do the trick? Because I’m not sure if QTableView is capable of re-layouting the items after I delete one or more cells from it. And that’s the whole point of

Re: [Interest] Build a Photos(Mac) copy with Qt Widgets

2016-01-20 Thread Igor Mironchik
Hi, On 20.01.2016 17:09, Hualet Wang wrote: And one more, what about QTableWidget with icons? And why you decided that QTableView will not do the trick? Because I’m not sure if QTableView is capable of re-layouting the items after I delete one or more cells from it. And that’s the whole point

[Interest] QGraphicsItem and QPointer analog

2016-02-16 Thread Igor Mironchik
Hi folks, Let's say you need a group and some move/resize handles for this group (I'm talking about QGraphicsView). Such handles can't be children of the group because then they won't receive any mouse events. So you have to set parent of such handles to group's parent. Easy? Yes! But it's

[Interest] QTextDocument, QPdfWriter, QSvgRender

2016-02-19 Thread Igor Mironchik
Hi, I want to print QTextDocument to PDF, it's simple. My question: is it possible to say to QTextDocument to draw images as vector graphics if they are SVG images? Thanks. ___ Interest mailing list Interest@qt-project.org

[Interest] QTextDocument | QPdfWriter | Internal Links

2016-02-19 Thread Igor Mironchik
Hi, I'm trying to understand how to work with internal links in PDF. Here is the simple code: #include #include #include #include #include int main( int argc, char ** argv ) { QApplication app( argc, argv ); QPdfWriter pdf( "/home/igor/test.pdf" ); QTextDocument doc;

Re: [Interest] QTextDocument, QPdfWriter, QSvgRender

2016-02-20 Thread Igor Mironchik
ion(QPointF(0.0,0.0));if((y +r.height())>body.height()){pdf.newPage();y =0.0;}block.layout()->draw(,QPointF(0.0,y ));y +=r.height();}block =block.next();}p.end();} On 19.02.2016 12:50, Igor Mironchik wrote: Hi, I want to print QTextDocument to PDF, it's simple. My question: is it possibl

Re: [Interest] QTextDocument | QPdfWriter | Internal Links

2016-02-21 Thread Igor Mironchik
Again the answer to my own question: seems that currently QTextDocument supports external links only. Even if set HTML with and doesn't work... It's good suggestion to Qt's guys to implement internals links in QTextDocument. On 20.02.2016 10:01, Igor Mironchik wrote: Hi, I'm trying

[Interest] Best practice to packages on Ubuntu with QtIF

2016-02-21 Thread Igor Mironchik
Hi, What is the best practices to create packages on Ubuntu with QtIF? I'm interested in one stuff: if my application consists of executable and shared libraries, so to application start I have to "export LD_LIBRARY_PATH=." in working directory. So my question is it possible to set

Re: [Interest] Best practice to packages on Ubuntu with QtIF

2016-02-21 Thread Igor Mironchik
Hi, Got it: QMAKE_RPATHDIR += ${ORIGIN} On 22.02.2016 10:11, Nikos Chantziaras wrote: On 22/02/16 08:55, Igor Mironchik wrote: On 22.02.2016 09:22, Koehne Kai wrote: You should rather utilize rpath, and set it e.g. to $ORIGIN https://en.wikipedia.org/wiki/Rpath Interesting

Re: [Interest] Best practice to packages on Ubuntu with QtIF

2016-02-22 Thread Igor Mironchik
RIGIN" to the linker: QMAKE_LFLAGS += -Wl,-rpath,\$\$ORIGIN This results in: -Wl,-rpath,$ORIGIN in the Makefile. On 22/02/16 09:13, Igor Mironchik wrote: Hi, Got it: QMAKE_RPATHDIR += ${ORIGIN} On 22.02.2016 10:11, Nikos Chantziaras wrote: On 22/02/16 08:55, Igor Mironchik wrote: On 22.

Re: [Interest] Best practice to packages on Ubuntu with QtIF

2016-02-21 Thread Igor Mironchik
Hi, On 22.02.2016 09:22, Koehne Kai wrote: -Original Message- From: Interest [mailto:interest- bounces+kai.koehne=theqtcompany@qt-project.org] On Behalf Of Igor Mironchik Sent: Monday, February 22, 2016 5:56 AM To: interest@qt-project.org Subject: [Interest] Best practice

Re: [Interest] QGraphicsWidget vs QGraphicsProxyWidget

2016-03-08 Thread Igor Mironchik
Hi, On 09.03.2016 07:54, maitai wrote: Hello, QGraphicsProxyWidget is quite nice and works. There is a number of caveats though: It doesn't inherit QGraphicsItem, so you cannot make it moveable etc. It's not true... QGraphicsItem->QGraphicsObject->QGraphicsWidget->QGraphicsProxyWidget

Re: [Interest] QML id

2016-04-11 Thread Igor Mironchik
a horizontalAlignment: Text.AlignHCenter verticalAlignment: Text.AlignVCenter } } Item { width: offset; height: offset; } } On 11.04.2016 17:06, Gian Maxera wrote: On 11 Apr 2016, at 14:49, Igor Mironchik <igor.mironc...@gmail.com>

[Interest] QML properties

2016-04-11 Thread Igor Mironchik
Hi, How to correctly name that that when in QML I write "width: parent.width / 2", for example, then when parent.width changed then changed and width too? I.e. automatic propagation? Thank you. ___ Interest mailing list Interest@qt-project.org

Re: [Interest] QML id

2016-04-11 Thread Igor Mironchik
Hello, Thank you. I successfully drawn chess board. Nice. Column { spacing: 0 Row { // top letters Item { width: offset; height: offset; } Repeater { model: [ "A", "B", "C", "D", "E", "F", "G", "H" ] delegate:

Re: [Interest] QML id

2016-04-11 Thread Igor Mironchik
On 11.04.2016 15:10, Gian Maxera wrote: On 11 Apr 2016, at 11:44, Igor Mironchik <igor.mironc...@gmail.com <mailto:igor.mironc...@gmail.com>> wrote: Hello, On 11.04.2016 13:19, Gian Maxera wrote: On 11 Apr 2016, at 11:14, Igor Mironchik <igor.mironc...@gm

Re: [Interest] QML Grid's children and findChild doesn't work

2016-04-11 Thread Igor Mironchik
Hi, Seems that delegate can't be found with findChild()... I solved problem as I use model. I fully removed direct interacting with Cells on Board... Thank you guys for your suggestions and help. On 11.04.2016 18:49, Igor Mironchik wrote: Hi, I have chess board defined in QML as: Grid

[Interest] QML suggestions...

2016-04-10 Thread Igor Mironchik
Hello guys, Some time ago I received test task - to implement basic Chess game with Qt/QML. For some reasons I didn't do this task then, but now I've decided to improve my QML skill and implement this task. Please look at it... https://github.com/igormironchik/chess I need your suggestions

[Interest] QML id

2016-04-11 Thread Igor Mironchik
Hello, Is it possible to generate id of item in Repeater, for example? Thank you. ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest

Re: [Interest] QML id

2016-04-11 Thread Igor Mironchik
} ... On 11.04.2016 12:40, Gian Maxera wrote: Hello, I don’t think so. Why do you need it ? Maybe we can suggest to you an alternative solution. Ciao, Gianluca. On 11 Apr 2016, at 10:38, Igor Mironchik <igor.mironc...@gmail.com> wrote: Hello, Is it possible to generate id of item in Repeater, for e

Re: [Interest] QML id

2016-04-11 Thread Igor Mironchik
Hello, On 11.04.2016 13:19, Gian Maxera wrote: On 11 Apr 2016, at 11:14, Igor Mironchik <igor.mironc...@gmail.com <mailto:igor.mironc...@gmail.com>> wrote: On 11.04.2016 12:57, Gian Maxera wrote: If the Text is inside the generated rectangle into the repeater you don’t need

Re: [Interest] PRO File defines

2016-04-24 Thread Igor Mironchik
simulator and device libraries. If you want to build for a single target, use the|-sdk|argument with either|iphoneos|or|iphonesimulator|. But I don't remember where I found that first time, just google a little... :) Il giorno 24/apr/2016, alle ore 18:47, Igor Mironchik <igor.mir

Re: [Interest] Migration path from QGraphicsScene to QtQuick2

2016-04-15 Thread Igor Mironchik
On 15.04.2016 15:57, Jean-Michaël Celerier wrote: On Fri, Apr 15, 2016 at 12:15 PM, Igor Mironchik <igor.mironc...@gmail.com <mailto:igor.mironc...@gmail.com>> wrote: Can I ask you why you need to migrate from QGraphicsScene to QtQuick? Hi, I like the scene graph ren

Re: [Interest] AndroidManifest Minimum required API not working as expected

2016-05-09 Thread Igor Mironchik
Hi, Do you build with QtCreator? If so then when QtCreator configures project it invokes tools/android Android NDK tool and select highest API available and build with such settings. On 09.05.2016 22:47, Nuno Santos wrote: Nuno Santos Founder / CEO / CTO www.imaginando.pt

Re: [Interest] AndroidManifest Minimum required API not working as expected

2016-05-09 Thread Igor Mironchik
Based on Qt 5.6.0 (Clang 7.0 (Apple), 64 bit) Built on Mar 14 2016 09:38:07 From revision 53b8ca08bf I had to open the generated Makefile and make a global replace of android-9 for android-21 to be able to build with API 21 On 09 May 2016, at 21:10, Igor Mironchik <igor.mironc...@gmail.

Re: [Interest] AndroidManifest Minimum required API not working as expected

2016-05-09 Thread Igor Mironchik
Really weird... What is command lines when you compiling? Is there android-9 or android-23 in pathes? On 10.05.2016 00:12, Nuno Santos wrote: Even more weird... ➜ ~ cat app.pro.user | grep Sdk android-23 android-23 android-23 ➜ ~ On 09 May 2016, at 22:03, Igor Mironchik

Re: [Interest] Error : QImage: out of memory,

2016-08-01 Thread Igor Mironchik
In any way: QImage::QImage(uchar <../qtcore/qtglobal.html#uchar-typedef>*data, intwidth, intheight, Format format, QImageCleanupFunction cleanupFunction= Q_NULLPTR, void*cleanupInfo= Q_NULLPTR) Constructs an image with the

Re: [Interest] Error : QImage: out of memory,

2016-08-01 Thread Igor Mironchik
Hi, You get this error in slot onImageReceived()? or you are talking about this lines: QImage img(cdata, 288, 352, QImage::Format_RGB888); img = img.scaled(QSize(288*1.5,352*1.5)); delete[] cdata; On 01.08.2016 17:24, Nilesh Kokane wrote: Hello, I've a function as follows. With

Re: [Interest] Error : QImage: out of memory,

2016-08-01 Thread Igor Mironchik
Hi, What type of connection do you use for slot onImageReceived()? If connection is queued then my guess can be correct. On 01.08.2016 22:14, Igor Mironchik wrote: Hi, On 01.08.2016 20:19, Nilesh Kokane wrote: On Aug 1, 2016 8:20 PM, "Igor Mironchik" <igor.mironc

Re: [Interest] Error : QImage: out of memory,

2016-08-01 Thread Igor Mironchik
Hi, On 01.08.2016 20:19, Nilesh Kokane wrote: On Aug 1, 2016 8:20 PM, "Igor Mironchik" <igor.mironc...@gmail.com <mailto:igor.mironc...@gmail.com>> wrote: > > Hi, > > You get this error in slot onImageReceived()? No > or you are talking about this li

[Interest] Qt Windows console app

2016-07-12 Thread Igor Mironchik
Hello. I've written console app that prints to stdout with QTextStream and qDebug(). On Linux all messages print to console, while on Windows I see nothing. But when I launch app from QtCreator I see output of the application in QtCreator. What it can be? Hot to fix it? Thank you. P.S.

Re: [Interest] Qt Windows console app

2016-07-13 Thread Igor Mironchik
Thank you guys, I really forgot to add CONFIG += console... Fixed. On 13.07.2016 09:11, Thiago Macieira wrote: Em quarta-feira, 13 de julho de 2016, às 08:34:32 PDT, Igor Mironchik escreveu: Hello. I've written console app that prints to stdout with QTextStream and qDebug(). On Linux all

Re: [Interest] Qt Windows console app

2016-07-12 Thread Igor Mironchik
onsole app correctly prints in terminal on Windows 10? May be this is an issue of Qt in Windows 10? Thank you. 8:34, 13 jule 2016 г., Igor Mironchik <igor.mironc...@gmail.com>: Hello. I've written console app that prints to stdout with QTextStream and qDebug(). On Li

[Interest] Qt5Core uses plugins?

2016-07-12 Thread Igor Mironchik
Hi, Does Qt5Core use any plugins? Does Qt's console app that uses only Qt5Core need platforms plugin or something else? Thank you. ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest

[Interest] Fwd: Tests selection page

2016-08-05 Thread Igor Mironchik
Forwarded Message Subject:Tests selection page Date: Fri, 5 Aug 2016 16:03:34 +0300 From: Igor Mironchik <igor.mironc...@gmail.com> To: qt-crea...@qt-project.org <qt-crea...@qt-project.org> Hello, How can I navigate to tests selection page?

Re: [Interest] Fwd: Tests selection page

2016-08-05 Thread Igor Mironchik
I've found. Sorry for the mess. On 05.08.2016 16:04, Igor Mironchik wrote: Forwarded Message Subject:Tests selection page Date: Fri, 5 Aug 2016 16:03:34 +0300 From: Igor Mironchik <igor.mironc...@gmail.com> To: qt-crea...@qt-project.org <qt-c

Re: [Interest] Design Issue with QAbstractItemModel & QTreeView

2016-08-04 Thread Igor Mironchik
Hi, I'm not sure what are you talking about. But what about beginInsertRows() and endInsertRows()? Between this methods you should add new data, and this data can has child rows. What is the problem? On 04.08.2016 19:48, Sébastien Le Ray wrote: Hi list, I'm currently designing an

Re: [Interest] Design Issue with QAbstractItemModel & QTreeView

2016-08-04 Thread Igor Mironchik
the data is "this row was added|removed". You can use signal/slot mechanism to notify your model. I can't understand what is the problem. There are different solutions. Where you receive this notification? Regards Le 04/08/2016 à 19:33, Igor Mironchik a écrit : Hi, I'm not sure wh

Re: [Interest] QFileSystemModel

2016-08-07 Thread Igor Mironchik
. But how can I select all checked files to the list? Top directory can be checked, then some directories in it can be unchecked, and I want to know what files were selected... André Verstuurd vanaf mijn iPhone Op 7 aug. 2016 om 11:21 heeft Igor Mironchik <igor.mironc...@gmail.com&g

Re: [Interest] QFileSystemModel

2016-08-07 Thread Igor Mironchik
. It works. :) André Verstuurd vanaf mijn iPhone Op 7 aug. 2016 om 11:21 heeft Igor Mironchik <igor.mironc...@gmail.com> het volgende geschreven: Hi, I derived from QFileSystemModel to have check boxes on files and directories. It works. I want to recursively check all files and all direc

[Interest] QFileSystemModel

2016-08-07 Thread Igor Mironchik
Hi, I derived from QFileSystemModel to have check boxes on files and directories. It works. I want to recursively check all files and all directories within checked one, but rowCount() for checked directory returns 0 if this directory wasn't expanded in tree view. I played with

Re: [Interest] QFileSystemModel

2016-08-07 Thread Igor Mironchik
amazing code! What do you think if to change license to BSD or MIT? This is very useful classes, I tell about CheckableProxyModel. It works like a charm. :) André Verstuurd vanaf mijn iPhone Op 7 aug. 2016 om 11:21 heeft Igor Mironchik <igor.mironc...@gmail.com> het volgende geschreven:

[Interest] QWidgetTextControl

2016-07-01 Thread Igor Mironchik
Hi. I'm debugging strange behavior of QGraphicsTextItem. In: QTextDocument *QWidgetTextControl::document() const { Q_D(const QWidgetTextControl); return d->doc; } d->doc is 0x-76b71fba74b7928c What is can be? Thank you. ___ Interest mailing

Re: [Interest] QWidgetTextControl

2016-07-01 Thread Igor Mironchik
those broken pointer. updateDocItemInMap() is: void Form::updateDocItemInMap( QObject * doc, FormText * text ) { d->m_docs[ doc ] = text; } where d->m_docs is: //! Map of text documents. QMap< QObject*, FormText* > m_docs; What's wrong? On 01.07.2016 13:39, Igor Mironchik wrote: Hi

Re: [Interest] QWidgetTextControl

2016-07-01 Thread Igor Mironchik
Hi, I found the problem. Please forget. On 01.07.2016 13:55, Igor Mironchik wrote: Hi. This happens in two lines of code: m_form->updateDocItemInMap( elem->document(), elem ); QObject::connect( elem->document(), ::undoCommandAdded, m_form, ::undoCommandInTextAdded ); w

[Interest] QTextDocument and Undo

2016-07-01 Thread Igor Mironchik
Hi, Let's say I'm doing vector graphics editor with QGraphicsScene. I'm adding undo/redo commands to the editor. Everything is done, but... I have Text item derived from QGraphicsTextItem. QGraphicsTextItem implemented with QTextDocument and QTextDocument has its own undo stack. Fine! But...

Re: [Interest] QTextDocument and Undo

2016-07-01 Thread Igor Mironchik
Hi. On 01.07.2016 10:17, Rainer Wiesenfarth wrote: 2016-07-01 9:01 GMT+02:00 Igor Mironchik <igor.mironc...@gmail.com>: What if I create Text, then change text in it, then make two undo commands?! It undo changing text and creation of Text item. Ok. But... Then I want to redo th

[Interest] QML Map & MapQuest

2016-08-22 Thread Igor Mironchik
Hi, Since July 11, 2016 MapQuest disabled direct tile access. So QML Map doesn't support MapQuest anymore. So my question when MapQuest support will be implemented again? -- Best Regards, Igor Mironchik. ___ Interest mailing list Interest@qt

Re: [Interest] QCamera | Qt 5.7 | MultimediaWidgets::Camera example.

2016-08-29 Thread Igor Mironchik
Hi, Solved. I installed all from gstreamer 0.10 and voila... Cameras initialize now. On 29.08.2016 19:57, Igor Mironchik wrote: Hi, One more thing: cameras working in Skype, I checked... On 29.08.2016 19:55, Igor Mironchik wrote: Hi, I remember that with previous version of my Kubuntu

Re: [Interest] QMediaRecorder blocks

2016-08-30 Thread Igor Mironchik
Hi, It seems that QMediaRecorder has problems with sync when working in pair with QAbstractVideoSurface as view finder in QCamera... On 30.08.2016 13:13, Igor Mironchik wrote: Hi, In the code below: qDebug() << "Starting rec."; d->m_rec->record(); qDebug() <&

[Interest] QMediaRecorder blocks

2016-08-30 Thread Igor Mironchik
responding. What it can be? Thank you. -- Best Regards, Igor Mironchik. ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest

[Interest] QCamera | Qt 5.7 | MultimediaWidgets::Camera example.

2016-08-29 Thread Igor Mironchik
_IS_OBJECT (object)' failed -- Best Regards, Igor Mironchik. ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest

Re: [Interest] QML Map & MapQuest

2016-08-26 Thread Igor Mironchik
ased alternative of QML Map. But I can't do this job because I don't have ability to test. I need free geo map provider for testing... Maybe Qt plans to implement such widget? -- Best Regards, Igor Mironchik. ___ Interest mailing list Interest@qt-project

Re: [Interest] QCamera | Qt 5.7 | MultimediaWidgets::Camera example.

2016-08-29 Thread Igor Mironchik
Hi, I remember that with previous version of my Kubuntu (15.04, 15.10) and earlier versions of Qt camera worked. Can anybody check if this example works with his camera on Kubuntu 16.04 and Qt 5.7? Thank you. On 29.08.2016 19:05, Igor Mironchik wrote: Hi, I try to start camera example

Re: [Interest] QCamera | Qt 5.7 | MultimediaWidgets::Camera example.

2016-08-29 Thread Igor Mironchik
Hi, One more thing: cameras working in Skype, I checked... On 29.08.2016 19:55, Igor Mironchik wrote: Hi, I remember that with previous version of my Kubuntu (15.04, 15.10) and earlier versions of Qt camera worked. Can anybody check if this example works with his camera on Kubuntu 16.04

[Interest] GStreamer

2016-10-19 Thread Igor Mironchik
Hello, Does Qt plan to move Multimedia on Linux to GStreamer 1.0? Thank you. ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest

[Interest] CPU usage

2016-12-30 Thread Igor Mironchik
Hello, I do app that uses USB camera. And I found that this app uses very much CPU time. Profiler says that: AMGetErrorTextW8.82s11.22s38.74%49.28% quartz [unknown]00x5ded687f MsgWaitForMultipleObjectsEx6.62s6.62s29.08% 29.09% USER32[unknown]

[Interest] Cross-platform screen capture

2017-03-28 Thread Igor Mironchik
Hello, Doesn anybody know and cross-platform solution that allows to capture given rectangle but without active window (or any given window). Thank you. ___ Interest mailing list Interest@qt-project.org

Re: [Interest] What is a mistake?

2017-03-26 Thread Igor Mironchik
Hi, Great thanks. 26.03.2017 23:40, Konstantin Shegunov пишет: On Sun, Mar 26, 2017 at 11:13 PM, Igor Mironchik <igor.mironc...@gmail.com <mailto:igor.mironc...@gmail.com>> wrote: Hello, What is this a mistake? Look at the screenshot... Hi, Judging from the sequence o

[Interest] What is a mistake?

2017-03-26 Thread Igor Mironchik
Hello, What is this a mistake? Look at the screenshot... WTF ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest

Re: [Interest] QMenu

2017-03-29 Thread Igor Mironchik
Hi, It's a fade effect... And I found only one solution: void MainWindow::x5() { QEventLooploop; QTimer::singleShot(1000,,::quit); loop.exec(); 29.03.2017 13:38, Konstantin Shegunov пишет: Hi, On Wed, Mar 29, 2017 at 1:22 PM, Igor Mironchik <igor.mironc...@gmail.com> wrote:

[Interest] QMenu

2017-03-29 Thread Igor Mironchik
Hello, I've implemented small magnifier tool. It's transparent window with border. User can invoke menu and call magnify slot from that menu. In the magnify slot I have QApplication::processEvents() to allow menu be hidden before making screen capture. Such approach works on my Win 10, but

Re: [Interest] Subclassing of QEntity

2017-04-09 Thread Igor Mironchik
Hi, 09.04.2017 18:43, Igor Mironchik пишет: Hi, What should I know when subclassing QEntity? I subclassed, in c_tor() gave parent node to c_tor() of QEntity. All is ok. If I populate scene before first rendering - everything is fine - I see all entities. But if I dynamically populate

<    1   2   3   4   5   6   >