Re: [Interest] Memory leak

2015-06-29 Thread Alex Malyushytskyy
Widget may be deleting itself when closed (for example if Qt::WA_DeleteOnClose qthelp://com.trolltech.qt.486/qdoc/qt.html#WidgetAttribute-enum flag is set ) which would be perfectly fine cool staff actually shows the widget one or another way. when std::shared_ptrWidget temp( new Widget () );

Re: [Interest] VS2013

2013-12-17 Thread Alex Malyushytskyy
I do not care about binaries, which I used to build myself anyway. They are built once. But I do not want to lose 2010 support. When your code is dependent on different languages and 3rd party products you tend to stay on the old compilers for long time. Often you have to skip versions cause

Re: [Interest] QDataStream::version() -- safe to assume 8-bit?

2013-10-30 Thread Alex Malyushytskyy
Typically it is a not magic number, it is a magic string, which solves most problems. I would recommend to keep it this way. If you want to use number there, write it to string first. then write the string. Alex On Sat, Oct 26, 2013 at 6:49 PM, Constantin Makshin cmaks...@gmail.comwrote:

Re: [Interest] Cannot enable dragging from QAbstractItemModel

2013-10-01 Thread 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. Regards, Alex On Tue, Oct 1, 2013 at 3:33 PM, Etienne Sandré-Chardonnal etienne.san...@m4x.org wrote:

Re: [Interest] QSettings possible bug on Windows

2013-09-30 Thread Alex Malyushytskyy
+scott.bloom=onshorecs@qt-project.org] *On Behalf Of *Alex Malyushytskyy *Sent:* Monday, September 30, 2013 7:02 PM *To:* interest@qt-project.org *Subject:* Re: [Interest] QSettings possible bug on Windows ** ** Just want to add that key is found, qDebug() child keys

Re: [Interest] QGraphicsScene crashed after removeItem() and delete item

2013-09-23 Thread Alex Malyushytskyy
I am not using qt 5, but if I am not mistaken QGraphicsScene code was migrated from QT4 On Sun, Sep 22, 2013 at 8:56 AM, 程梁 devb...@outlook.com wrote: Hi, there! I have a problem: when I called QGraphicsScene::removeItem() then delete the removed item, my application crashed. This happens on

Re: [Interest] What is different with the eventloop if I am setting Qt::WindowModal on Mac?

2013-09-19 Thread Alex Malyushytskyy
As far as I understand application event loop is not running until modal widget event loop is running. Closing the widget will start application event loop and you get your message printed. It would be worth if widget delete itself on closing, then you would have a crush. I guess comment in

Re: [Interest] 64 bit capable QVector

2013-09-03 Thread Alex Malyushytskyy
This question appears on the mailing lists since Qt 3 at least . At one point I was disappointed with having signed int restriction, but then I decided that QT containers are just a convenience classes which are designed to work with either widgets or data of limited size displayed by that

Re: [Interest] 64 bit capable QVector

2013-09-03 Thread Alex Malyushytskyy
, hence your remark about performances does not make sense. Philippe On Tue, 3 Sep 2013 14:44:58 -0700 Alex Malyushytskyy alexmal...@gmail.com wrote: This question appears on the mailing lists since Qt 3 at least . At one point I was disappointed with having signed int restriction

Re: [Interest] 64 bit capable QVector

2013-09-03 Thread Alex Malyushytskyy
Forgot to add, I am not trying to offend performance or any other aspect of Qt container. Personally all my code related to displaying data use them. I just believe it is not replacement for STL. Regards, Alex On Tue, Sep 3, 2013 at 4:16 PM, Alex Malyushytskyy alexmal...@gmail.comwrote

Re: [Interest] 64 bit capable QVector

2013-09-03 Thread Alex Malyushytskyy
a bit sad... On 09/04/2013 03:21 AM, Alex Malyushytskyy wrote: Forgot to add, I am not trying to offend performance or any other aspect of Qt container. Personally all my code related to displaying data use them. I just believe it is not replacement for STL. Regards, Alex

Re: [Interest] Strange undeletable QTemporaryFile. Is it a bug?

2013-08-27 Thread Alex Malyushytskyy
the primary idea of inheritance? On 08/27/2013 02:36 AM, Alex Malyushytskyy wrote: Making function which were public in the parent, private in the child shows that function should not be called. That is it. And that is the case. It does not make it impossible to shoot yourself at the feet

Re: [Interest] Strange undeletable QTemporaryFile. Is it a bug?

2013-08-26 Thread Alex Malyushytskyy
Making function which were public in the parent, private in the child shows that function should not be called. That is it. And that is the case. It does not make it impossible to shoot yourself at the feet (whatever way you choose) and access it. You can do everything in C++. But if you do it,

Re: [Interest] Strange undeletable QTemporaryFile. Is it a bug?

2013-08-23 Thread Alex Malyushytskyy
I can't say that I am very happy with a non-closing close() and a lying isOpen(). Even if documented, it goes against any expectations. I disagree, then You would have QTemporaryFile attached to file which is not anymore under control. This would be even more confusing and made documented

Re: [Interest] Default action for a QMenu added to a QToolBar

2013-08-20 Thread Alex Malyushytskyy
You can add any widget (QToolButton is a widget ) to toolbar with QAction ** addWidget qtoolbar.html#addWidget* ( QWidget * *widget* ) On Tue, Aug 20, 2013 at 11:03 AM, Etienne Sandré-Chardonnal etienne.san...@m4x.org wrote: Thanks Christoph, Is there any way to do this with a QToolBar? I

Re: [Interest] QWidget::render iincluding the frame?

2013-08-16 Thread Alex Malyushytskyy
The only way I can think of is creating a widget which would be size of the dialog including dialog frame, reparent dialog and render that widget. If QWidget::DrawChildren render flag is set I expect it will draw dialog including frame. You might reparent it back later and do some positioning so

Re: [Interest] QThread and QPixmap::grabWindow()

2013-08-09 Thread Alex Malyushytskyy
I guess my suggestion was not clear. Create a slot where: - QPixmap::grabWindow( QApplication::desktop()-winId() ); will be called. - QPixmap is converted to QImage - Signal and slot may contain reference to the QImage as a parameter, so you can access filled QImage after signal is emitted..

Re: [Interest] QThread and QPixmap::grabWindow()

2013-08-07 Thread Alex Malyushytskyy
As far as I understand you need to make sure that window is grabbed in the main thread. So the clean way to do it - do it in the main threat without changing affinity . and wait until picture is taken in the threat you need a picture at. This will also remove race conditions you are facing -

Re: [Interest] click on QComboBox caused application to crash in Windows Server 2012

2013-08-07 Thread Alex Malyushytskyy
I remember having problem with combobox when QT was built as static libraries with static CRTs. That is was one of the reason we gave up on static builds, is it your case? Alex On Mon, Aug 5, 2013 at 6:53 PM, Mehrdad Momeny mehrdad.mom...@gmail.comwrote: Hi everyone, Recently I encountered

Re: [Interest] QLineEdit with a validator set

2013-07-17 Thread Alex Malyushytskyy
Check for intermediate state has to be done when user initiated action which needs a valid input at lineEdit. There is no universal solution. Normally it is but not limited to either Apply button clicked in the dialog or line edit losing focus. When you found when this should be done, add code

Re: [Interest] bad_alloc raised : Amout of RAM available ?

2013-07-17 Thread Alex Malyushytskyy
Just my few cents: Is your application a 32-bit app? Under Windows, applications are restricted to 1.5 to 2 GB of memory even though the system has more available. This even includes running a 32-bit app on a 64-bit system. That is not exactly right. On Windows 32 , by default 32 bit

Re: [Interest] how to use QAction::changed() and doc missing

2013-07-03 Thread Alex Malyushytskyy
Connect changed to your custom slot where you will check if action changed the state, You will need somehow to get pointer to QAction and previous state there. There are multiple ways to do it. For example: You may subclass QAction, add variable which would keep previous enable state , add slot

Re: [Interest] Qt ifw, error message: Could not write installer configuration

2013-07-02 Thread Alex Malyushytskyy
If I run the installer by right clicking on it and select Run as administrator, the installation will finish without a problem. How can I make this work? Did not you mentioned how to fix a problem yourself? You have to run program which is changing files in system folders as an administrator,

Re: [Interest] QIcon on/off doesn't work on QAction

2013-07-02 Thread Alex Malyushytskyy
First. Your code should create a memory leak. Cause addAction will make a copy of icon and you never delete result of colorize Look at declaration: QAction **addAction qtoolbar.html#addAction-5* ( const QIcon *icon*, const QString *text*, const QObject * *receiver*, const char * *member*

Re: [Interest] Desktop deployment

2013-06-19 Thread Alex Malyushytskyy
I just wanted to point that you must to deploy all dependencies not only Qt. You will have to deploy VC CRTs at least if your application has no other dependencies. Alex On Wed, Jun 19, 2013 at 8:21 AM, Yves Bailly yves.bai...@sescoi.fr wrote: Greetings all, Here's a maybe silly question,

Re: [Interest] Long menus on Windows

2013-06-03 Thread Alex Malyushytskyy
I will try to recall what I did once. Instantiate and add subclass of QWidgetAction to the menu. Such subclass had to instantiate your widget (better not to derive it from dialog). To do this override createWidget. Such widget can be any complex or simple widget. If not mistaken I had explicitly

Re: [Interest] Container members in abstract base class?

2013-05-22 Thread Alex Malyushytskyy
They are not. static_cast exists for purpose. On Wed, May 22, 2013 at 10:10 AM, Constantin Makshin cmaks...@gmail.comwrote: Well, C-style casts are still useful because, unlike dynamic_cast, they need neither RTTI nor run-time checks, making the compiled code somewhat smaller and faster. You

Re: [Interest] Increase width of tab in QTabWidget

2013-05-16 Thread Alex Malyushytskyy
You may create your own style. example can be found at: http://harmattan-dev.nokia.com/docs/library/html/qt4/stylesheet-examples.html#customizing-qtabwidget-and-qtabbar You can specify left and right margins or minimum width for example. Regards, Alex On Thu, May 16, 2013 at 7:02 PM, Sujan

Re: [Interest] Unique - Hardware bound - ID

2013-05-15 Thread Alex Malyushytskyy
, Alex On Wed, May 15, 2013 at 3:52 AM, Konrad Rosenbaum kon...@silmor.de wrote: ** On Tuesday 14 May 2013 22:27:23 Alex Malyushytskyy wrote: Such things are normally resolved using MAC address on any system, which is unique for every network adapter, But there always may be a system

Re: [Interest] TableWidget size dynamically

2013-05-15 Thread Alex Malyushytskyy
Direct answer on your question will be ui.TableWidget-setColumnWidth(0,201); ui.TableWidget-setColumnWidth(1,120); ui.TableWidget-setColumnWidth(2,121); Ask yourself why you did not like solution above or your own solution and what you want to achieve. Then if you can't figure out how to

Re: [Interest] Unique - Hardware bound - ID

2013-05-14 Thread Alex Malyushytskyy
UUIDs is not unique for hardware/system, so I doubt QUuid will help. Such things are normally resolved using MAC address on any system, which is unique for every network adapter, But there always may be a system which does not have network adapter, have a few network adapters or does not let

Re: [Interest] Oops! Somebody's got a bad case of dependency bloat!

2013-04-10 Thread Alex Malyushytskyy
* we expect that most people who build Qt from sources are Qt developers themselves (majority of users will download binaries and the stats prove it); Thiago, I afraid your expectations are wrong. My statement is totally based on my experience. Most of my Qt life I was a Qt commercial

Re: [Interest] Layout expanding not as I would like...

2013-04-10 Thread Alex Malyushytskyy
It might be better also to attach ui file, so people can really see the source. Possible problems as I can guess: - You do not have widget (top) layout which created. If this is a case in designer click outside red boxes and click pn create vertical layout icon. - You are trying to re-size

Re: [Interest] Layout expanding not as I would like...

2013-04-10 Thread Alex Malyushytskyy
It might be better also to attach ui file, so people can really see the source. Possible problems as I can guess: - You do not have widget (top) layout which created. If this is a case in designer click outside red boxes and click pn create vertical layout icon. - You are trying to re-size

Re: [Interest] Layout expanding not as I would like...

2013-04-10 Thread Alex Malyushytskyy
dialog in 2 directions. Both directions matters, you might want to add resizer at the bottom to avoid scaling. Regards, Alex On Wed, Apr 10, 2013 at 5:21 PM, Alex Malyushytskyy alexmal...@gmail.comwrote: It might be better also to attach ui file, so people can really see the source. Possible

Re: [Interest] Layout expanding not as I would like...

2013-04-10 Thread Alex Malyushytskyy
I am sorry for multiple posts. Something happened to my gmail and it was not shoring any reaction on Send button click, and I was clicking and clicking On Wed, Apr 10, 2013 at 5:21 PM, Alex Malyushytskyy alexmal...@gmail.comwrote: It might be better also to attach ui file, so people can

Re: [Interest] Interest Digest, Vol 19, Issue 41

2013-04-10 Thread Alex Malyushytskyy
Danny, I have not tried LLDB and I am not sure it will support all languages we need, but TotalView (debugger we were using on Linux) which is providing close to VS features for debugging (but decently support multi-threading debugging) cost 3 times more than VS Professional Edition (not

Re: [Interest] QSqlDatabase left open

2013-04-05 Thread Alex Malyushytskyy
Do you say QStringList qstringlist.html QSqlDatabase::connectionNames () returns anything after QSqlDatabase::close is called? I believe in Qt 4.6 it worked on Windows. You may try QSqlDatabase::removeDatabase but it may cause some resource leeks if there are open queries. Regards,

Re: [Interest] QMainWindow::restoreState : where to call it?

2013-03-20 Thread Alex Malyushytskyy
It is supposed to be no difference when restore state as soon as all children (toolbars, etc) are created already. Also if you are using QSettings to save/load state make sure you already set atributes to QSettings so it is written/read from the same location. Regards, Alex On Wed, Mar 20,

Re: [Interest] Multiple windows app modal?

2013-03-12 Thread Alex Malyushytskyy
It might be different guidelines for different system, but the only restriction I would expect from top level disabled window is that it cannot receive input from the user. And it is supposed to be able to become active cause you might need to move the window. If in your case it seems

Re: [Interest] Multiple windows app modal?

2013-03-11 Thread Alex Malyushytskyy
I guess comment below was meant to send to mailing list. On Mon, Mar 11, 2013 at 3:46 PM, John Weeks j...@wavemetrics.com wrote: On 05-Mar-2013, at 5:02 PM, Alex Malyushytskyy wrote: Remember you can always disable any window at any time and leave only desired windows accessible to user

Re: [Interest] Multiple windows app modal?

2013-03-05 Thread Alex Malyushytskyy
I believe your case is outside of the normal usage pattern of modal windows/dialogs. Remember you can always disable any window at any time and leave only desired windows accessible to user. Alex On Mon, Mar 4, 2013 at 5:06 PM, John Weeks j...@wavemetrics.com wrote: I have a need to make a

Re: [Interest] Qt VS Addin

2013-03-05 Thread Alex Malyushytskyy
Digia had plans to add Qt4 support according to link below: http://blog.qt.digia.com/blog/2012/12/19/visual-studio-add-in-1-2-0-for-qt-5-released/ Alex On Fri, Mar 1, 2013 at 4:56 AM, Duane duane.heb...@group-upc.com wrote: On 12/10/2012 02:41 AM, Haataja Ismo wrote: Hi! Will there be a VS

Re: [Interest] how to remove QGraphicsEllipseItem from parent

2013-02-26 Thread Alex Malyushytskyy
Is it still shown if you force graphics window to update (might be just by minimizing/ maximizing or resizing) ? If not it means that scene was not updated and you can fix it calling QGraphicsScene::update yourself. Alex On Sun, Feb 24, 2013 at 5:00 AM, tang ke ta...@lemote.com wrote: On

Re: [Interest] DSLR Remote Pro for windows

2013-02-12 Thread Alex Malyushytskyy
Your main problem will be not GUI, it will be technical details on how to control Cannon cameras. I would advice you to check other that QT forum sources, cause it is not right place to ask such questions. For example: http://www.usa.canon.com/cusa/consumer/standard_display/sdk_homepage Google

Re: [Interest] Qt Installer Framework

2013-01-29 Thread Alex Malyushytskyy
I see same behavior in an INNO Setup, however MSI behaves different - it doesn't allow to install program twice. It all depends on the design of your installation: product and package codes. You can have multiple products with the same name ( for example different version of the products )

Re: [Interest] QGraphicsScene crash after removeItem() and delete item

2012-12-06 Thread Alex Malyushytskyy
It is mostly likely related it is related to improper code in QGraphicsItem subclass which probably did not call QGraphicsItem::prepareGeometryChange() as Pierre mentioned before. Alex On Wed, Dec 5, 2012 at 5:29 PM, Jan Kundrát j...@flaska.net wrote: On Thursday, 29 November 2012 12:33:58

Re: [Interest] HierarchicalHeaderView for a QTableView

2012-11-14 Thread Alex Malyushytskyy
As far as I understand cell either is hierarchical or not. If it is hierarchical it must have a root (otherwise it can be presented by a few regular cells). I just briefly played with the code, but I was able to get both regular and hierarchical sections, so I am not sure I understood your

Re: [Interest] Dependency Injection

2012-11-08 Thread Alex Malyushytskyy
http://en.wikipedia.org/wiki/Dependency_injection On Thu, Nov 8, 2012 at 12:44 PM, Yunior Bauta Pentón ypen...@uci.cu wrote: Hello. What is Dependency Injection Framework more used actually to Qt and C++ ? Any sample ? Thank -- Ing. Yunior Bauta Pentón Dpto: PostgreSQL/DATEC

Re: [Interest] Spell checking.

2012-10-31 Thread Alex Malyushytskyy
Since combobox is using QLineEdit for editing, it provides a pointer to it with: QLineEdit * QComboBox::lineEdit () const Also you force it to use QLineEdit subclass with setLineEdit() Alex On Wed, Oct 31, 2012 at 10:07 AM, Bill Crocker william.croc...@analog.com wrote: Hello: I am adding

Re: [Interest] Can't get menu with QWidgetAction to close after click! (Mac OS 10.6.8, Qt 4.8.3)

2012-10-09 Thread Alex Malyushytskyy
On Windows, QT 4.7 it works as as expected. I guess problem is specific to MAC Alex On Tue, Oct 9, 2012 at 3:39 PM, Jim Prouty j...@wavemetrics.com wrote: On Oct 9, 2012, at 12:31 PM, Stephen Chu wrote: Are you sure you want a push button or a text entry field in the menu from the menu

Re: [Interest] Can't get menu with QWidgetAction to close after click! (Mac OS 10.6.8, Qt 4.8.3)

2012-10-09 Thread Alex Malyushytskyy
handlers and calling QAction::trigger(). Alex On Tue, Oct 9, 2012 at 5:23 PM, Alex Malyushytskyy alexmal...@gmail.com wrote: On Windows, QT 4.7 it works as as expected. I guess problem is specific to MAC Alex On Tue, Oct 9, 2012 at 3:39 PM, Jim Prouty j...@wavemetrics.com wrote: On Oct

Re: [Interest] QTextStream: output representation of floating point number with exactly n digits

2012-10-05 Thread Alex Malyushytskyy
setRealNumberNotation ( QTextStream::ScientificNotation ) with setRealNumberPrecision() to specify number of digits? Alex On Fri, Oct 5, 2012 at 3:59 PM, Rui Maciel rui.mac...@gmail.com wrote: Is it possible to manipulate QTextStream so that it outputs a representation of a float or a double

Re: [Interest] how to run 21 threads concurrently

2012-10-04 Thread Alex Malyushytskyy
Why do you need Threads[th].cancel();? According to documentation not only the QFuture returned by QtConcurrent::run() does not support canceling,..., but I do not see any reason you could want to do this. Alex On Thu, Oct 4, 2012 at 6:25 AM, André Somers an...@familiesomers.nl wrote: Op

Re: [Interest] Aligning QProgressBar inside a QSplashScreen

2012-10-03 Thread Alex Malyushytskyy
from it. This should not happen, Stop is the best you can do. Alex On Wed, Oct 3, 2012 at 1:32 AM, Jan Kundrát j...@flaska.net wrote: On 10/02/12 05:07, Alex Malyushytskyy wrote: You would save a lot of time if u properly initialized this-progress to null Agreed, that's always a very good idea

Re: [Interest] Aligning QProgressBar inside a QSplashScreen

2012-10-03 Thread Alex Malyushytskyy
: On quarta-feira, 3 de outubro de 2012 15.50.30, Alex Malyushytskyy wrote: That's not so good; Q_CHECK_PTR will print Out of memory upon seeing a Q_ASSERT just prints an assert information in debug Not really. Q_ASSERT, if it fails, calls qt_assert, which will abort the application

Re: [Interest] packaging a build

2012-09-06 Thread Alex Malyushytskyy
Does anyone have an idea what's going on, or has anyone tried releasing something with qt5 and MSVC? I have not tried, Qt5 but I do not believe in mysteries, you are missing dependency or provide wrong executable ( debug for example) First thing to check is CRT (MSVCRT*.dll), other

Re: [Interest] memory fragmentation?

2012-08-23 Thread Alex Malyushytskyy
On Linux, you wouldn't allocate 1 GB of memory with sbrk. You'd use an anonymous mmap, which reserves address space but provides no memory backing. The allocation is done on faulting the page. That's how glibc's malloc() serves allocations above a certain adaptive threshold. Thiago, Many thanks

Re: [Interest] memory fragmentation?

2012-08-22 Thread Alex Malyushytskyy
Harri Pasanen ha...@mpaja.com wrote: I wonder why you say Linux is less flexible? Couldn't you just write a custom allocator directly using sbrk()? Also, 32 bit linux process leaves more application space free, so you can easily reach 2Gb process size, while I recall windows XP having issues

Re: [Interest] Best Practices returning data from a dialog

2012-08-22 Thread Alex Malyushytskyy
It depends on functionality you need and type of your dialog (modal/modeless) In any case I do not think appropriate time is when dialog is closed. Check QDialog documentation for example at: http://doc.qt.nokia.com/4.7-snapshot/qdialog.html In general for modal dialog you might want to update

Re: [Interest] memory fragmentation?

2012-08-20 Thread Alex Malyushytskyy
Nonsense. Any application using a gigabyte or more of memory should HAVE SWITCHED to 64-bit a couple of years ago. It is not nonsense. You provide to users version which works on their system (whatever they have). And even though application may need close to 2GB of data (or more) to work

Re: [Interest] crashing when incompatible qt already exists on user's system

2012-08-13 Thread Alex Malyushytskyy
Talking about Windows the only reliable solution is to supply all dependencies (at least not system) with your application. For example you can build dll with different compiler or version of the same compiler. You have to make sure that your application uses correct build of QT. On top of this,

[Interest] Question about usage QNetworkRequest with QNetworkRequest::AuthenticationReuseAttribute set to QNetworkRequest::Manual

2012-08-10 Thread Alex Malyushytskyy
I am starting url request as void ubFileManager::startRequest( QUrl _url ) { qDebug() url= _url; QNetworkRequest request (url); request.setAttribute ( QNetworkRequest::AuthenticationReuseAttribute, QVariant( QNetworkRequest::Manual ) ); // where qnam is instance

Re: [Interest] QNetworkAccessManager - how to enforce authentication?

2012-08-09 Thread Alex Malyushytskyy
be other cases when you might want to reauthorize user from the application side. Alex On Thu, Aug 9, 2012 at 2:08 PM, Richard Moore r...@kde.org wrote: On 9 August 2012 03:34, Alex Malyushytskyy alexmal...@gmail.com wrote: user will not be requested for authentication second time, instead

Re: [Interest] [Development] Digia to acquire Qt from Nokia

2012-08-09 Thread Alex Malyushytskyy
The best news would be Nokia replace Windows with Qt in the future plans. I feel better for Qt developers, cause they are going (if willing) to get job in Digia. If not counting that, it was already clear that somebody will take over Qt and first candidate was Digia due to the fact they already

Re: [Interest] Attaching to an existing MS EXCEL instance

2012-08-06 Thread Alex Malyushytskyy
I think you should read: http://support.microsoft.com/kb/238975/ This might be not as easy as you think: quote Theoretically, you can iterate the ROT for each individual instance, but Office applications do not register themselves if another instance is already in the ROT because the moniker

Re: [Interest] Qt Visual Studio Add-in error when using CMake 2.8

2012-07-12 Thread Alex Malyushytskyy
Hi Mikhail, If you have so many C++ error in the project that was normally compiled with different CMake without compiler change, it might be that your project was not configured properly and mocing was actually done by add-in. In this case errors you get should be probably linking errors. So

Re: [Interest] Qt5 qml only and qfiledialog, qfontdialog, ... crash

2012-05-08 Thread Alex Malyushytskyy
setQuitOnLastWindowClosed(true) only sets flag which is checked when any QWidget closed and closes application when you need the last one. So, since I assume you do not have QWIdget instances anymore, you need manually call exit when you need to exit:. voidQCoreApplicationexit ( int

Re: [Interest] deleting row from QSqlTableModel - not working

2012-05-07 Thread Alex Malyushytskyy
try the following ( assuming index is equal to row ): view-model()-removeRow(index); Alex On Sat, May 5, 2012 at 5:29 AM, Sujan Dasmahapatra sujan.dasmahapa...@gmail.com wrote: I am trying to delete a row from QSqlTableModel which is show in the QTableView but it's not working please help.  

Re: [Interest] problem building qwt in windows

2012-05-07 Thread Alex Malyushytskyy
I would recommend looking for help on Qwt forum, it is separated product and has nothing to do with Qt besides it is using it. It is like asking such question on Widows forums, cause your have Windows installed. As for building problem, just from my experience QWT pro file is too complicated and

[Interest] QSqlRelationalDelegate combobox is not updated

2012-04-19 Thread Alex Malyushytskyy
I found a problem which looks like a bug when trying to display data from database in QTableView using QSqlRelationalDelegate. Assume I have 2 tables: -streets -addresses Table Addresses has column which contains reference to ID in the streets. QSqlRelationalTableModel is used for both tables

Re: [Interest] QSqlRelationalDelegate combobox is not updated

2012-04-19 Thread Alex Malyushytskyy
surprised QSqlRelationalTableModel select() does not call select() for every relation model set itself. Regards, Alex -- Forwarded message -- From: Alex Malyushytskyy alexmal...@gmail.com Date: Thu, Apr 19, 2012 at 2:34 PM Subject: QSqlRelationalDelegate combobox

[Interest] QSplashScreen and multiple screens.

2012-03-01 Thread Alex Malyushytskyy
I've just got weird looking case when my software is running on the systems with multiple screens. My main application window saves its last position and size, so if it was moved to second monitor it will be re-opened there. But QSplashScreen will still be shown on the primary screen at startup.

Re: [Interest] Re : QLineEdit stretch in QHBoxLayout using designer

2012-02-17 Thread Alex Malyushytskyy
No, widget Size Policy will not change anything until layout is flying in the air. It is the same as trying to tow a car which has no any connection to the truck. Alex On Fri, Feb 17, 2012 at 3:28 PM, BOUCARD Olivier boucard_oliv...@yahoo.fr wrote: Hi Carl, Try to play with the widget Size

Re: [Interest] qwt debug version not working with Qt-4.8.0

2012-01-18 Thread Alex Malyushytskyy
qwt has its own mailing list which is the best way to post questions about it. On Wed, Jan 18, 2012 at 4:26 AM, Pritam pritam_ghang...@infosys.com wrote: Hi Sujan, I have never used qwt before, I have no idea why its named like that. On Wednesday 18 January 2012 05:22 PM, Sujan

Re: [Interest] Qt assistant example not working

2012-01-12 Thread Alex Malyushytskyy
Debug void MainWindow::initializeAssistant() and find out why it fails. Mostly likely you don't have assistant_adp.exe in the QLibraryInfo::location(QLibraryInfo::BinariesPath); Alex On Thu, Jan 12, 2012 at 3:39 AM, Sujan Dasmahapatra s...@lmwindpower.com wrote: Dear Friends I am trying to