Re: [Interest] Memory leak

2015-06-29 Thread Alex Malyushytskyy
Widget may be deleting itself when closed (for example if Qt::WA_DeleteOnClose flag is set ) which would be perfectly fine cool staff actually shows the widget one or another way. when std::shared_ptr temp( new Widget () ); does not make any sense unless widget is modal and exec() is called in

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 3rd

Re: [Interest] Something funny. QAccelerometer

2013-12-17 Thread Alex Malyushytskyy
It measures potential. Just set high speed camera with clock an remove table quickly. You will be able to find a real acceleration. Have fun, Alex On Tue, Dec 17, 2013 at 2:29 PM, Guido Seifert wrote: > > Great idea. I knew someone in this list would have the perfect solution > for my pr

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 wrote: > Since QDataStream vers

Re: [Interest] QSettings possible bug on Windows

2013-10-01 Thread Alex Malyushytskyy
ot;Common > Desktop", "Common Documents", "Common Programs", "Common Start Menu", > "Common Startup", "Common Templates", "CommonMusic", "CommonPictures", > "CommonVideo", "OEM Links", "Personal&q

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: > D

Re: [Interest] QSettings possible bug on Windows

2013-09-30 Thread Alex Malyushytskyy
-project.org [mailto: > interest-bounces+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 > > ** **

Re: [Interest] QSettings possible bug on Windows

2013-09-30 Thread Alex Malyushytskyy
"Common Start Menu", "Common Startup", "Common Templates", "CommonMusic", "CommonPictures", "CommonVideo", "OEM Links", "Personal") but value returned is empty string - different from visible in regedit Alex On Mon, Sep

[Interest] QSettings possible bug on Windows

2013-09-30 Thread Alex Malyushytskyy
I found a problem with QSettings when trying to read from registry. I am using Qt 4.7.3 so I would appreciate if anybody can check with Qt 5 at least. Problem: QSettings fails to return specific key value (Common AppData) when read other keys at the same level just fine. Key exists and verified w

Re: [Interest] Process for building Qt on windows 64bit

2013-09-24 Thread Alex Malyushytskyy
>> Hopefully it will work as easy as you say... Then there are about 5-6 OTHER third party libraries I have to deal with :( It does work as easy as it was claimed. Environment set affects which compiler is executed. Since I am mostly developing on the Windows I have such setup since Qt 3. Multip

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

2013-09-23 Thread Alex Malyushytskyy
would suggest to create small compilable test case which demonstrate the problem. By the way you should be able to delete line below and effect should be the same. scene.removeItem(food); item will be removed as soon you delete it. Alex On Mon, Sep 23, 2013 at 3:46 PM, Alex Malyushytskyy

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, 程梁 wrote: > Hi, there! I have a problem: when I called QGraphicsScene::removeItem() > then delete the removed item, my application crashed. This happens on Qt5 > 64bits (I te

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 docum

Re: [Interest] Widget event called after it has been deleted

2013-09-18 Thread Alex Malyushytskyy
ver, I do not like the stability of the program to rely on the type of > connection. That's not in the essence of modularity with signal/slots. > > Thiago, if you read me, Could you confirm the above's statements? > > Thanks, > > Etienne > > > > > > > &g

Re: [Interest] Widget event called after it has been deleted

2013-09-18 Thread Alex Malyushytskyy
>> 1) I know could use a QueuedConnection for the previously described action, but I don't like that kind of GUI design where a QueuedConnection is required to avoid an app crash... I do not see why you need to use QueuedConnection. I hope you do not want to say you have that 2 widgets you have ar

Re: [Interest] DragLeaveEvent not called?

2013-09-03 Thread Alex Malyushytskyy
I have not used drag and drop features myself, so I might be wrong, but returning true in event handler means that event is stopped/ignored and according to QWidget::dragEnterEvent documentation: "If the event is ignored, the widget won't receive any drag move events ." try to return false: if(e

Re: [Interest] 64 bit capable QVector

2013-09-03 Thread Alex Malyushytskyy
ely > impossible even to shrink a block of memory in-place) makes me 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

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 wrote: > >> STL is

Re: [Interest] 64 bit capable QVector

2013-09-03 Thread Alex Malyushytskyy
; > STL is first of all an interface and there are various implementations, > hence your remark about performances does not make sense. > > Philippe > > On Tue, 3 Sep 2013 14:44:58 -0700 > Alex Malyushytskyy wrote: > > > This question appears on the mailing lists si

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 widget

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

2013-08-27 Thread Alex Malyushytskyy
to know anything about specifics of the actual > type of 'zzz'. Actually, isn't "rely on the interface, not > implementation" the primary idea of inheritance? > > On 08/27/2013 02:36 AM, Alex Malyushytskyy wrote: > > Making function which were public in the parent,

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 feat

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 * ( 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 cannot add a QToolBu

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 y

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] 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 wrote: > Hi everyone, > Recently I encountered a weird issue on Window

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 - your

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 applica

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 w

Re: [Interest] Linking release build of webkit with debug build of Qt

2013-07-10 Thread Alex Malyushytskyy
You do not want to mix debug and release libraries on Windows. Even if there were not other dependencies the modules will depend on different CRTs. Result will be a disaster. Regards, Alex On Wed, Jul 10, 2013 at 3:27 AM, Amogh Kudari wrote: > Hi All, > > I have qt built for wi

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] 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 * ( const QIcon & *icon*, const QString & *text*, const QObject * *receiver*, const char * *member* )Second. You did not clarify wh

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 administrat

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 wrote: > > Greetings all, > > Here's a maybe silly question, but I really could

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] Long menus on Windows

2013-05-31 Thread Alex Malyushytskyy
By the way you can always to make your dialog function like menu. I recall I did it once with Qt 3. I bet in Qt 4 or 5 it will be even easier. On Fri, May 31, 2013 at 3:11 PM, Alex Malyushytskyy wrote: > AFAIK on Windows that is native behavior. > Also from design point of view long m

Re: [Interest] Long menus on Windows

2013-05-31 Thread Alex Malyushytskyy
AFAIK on Windows that is native behavior. Also from design point of view long menu in general are considered bad design. If I were you I would do something similar to what Excel does - display dialog. You might also display a few the most used or/and last used commands together with option to open

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 wrote: > 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 just need to be

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] 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 implem

Re: [Interest] Unique - Hardware bound - ID

2013-05-15 Thread Alex Malyushytskyy
, Alex On Wed, May 15, 2013 at 3:52 AM, Konrad Rosenbaum 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, > >

Re: [Interest] QTableView::moveCursor and scrolling to end

2013-05-14 Thread Alex Malyushytskyy
>> I wonder what do you in general do, when you find yourselves in the need of accessing the private internals. If you absolutely need private you usually end up writing your own class. It happened to me 2 times during over 10 years of my Qt experience. Otherwise you are looking for the ways not t

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 you

Re: [Interest] [Development] Visual Studio Add-In 1.2.1 for Qt 5 Released

2013-04-11 Thread Alex Malyushytskyy
Great ! Thanks! Did not see this announcement on interest, so forwarding message there. Alex On Thu, Apr 11, 2013 at 3:57 AM, Turunen Tuukka wrote: > > Hi All, > > Visual Studio Add-In 1.2.1 for Qt 5 is now released, see: > http://blog.qt.digia.com/blog/2013/04/11/visual-studio-add-in-1-2-1-

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 upgrade

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 wrote: > It might be better also to attach ui file, so people can really see

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 wrote: > It might be better also to attach ui file, so people can really see the > source. > > Possible p

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 dialo

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 dialo

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

2013-04-10 Thread Alex Malyushytskyy
I would encourage people to read "Apologies on the "bloat" thread (a.k.a yes Windows is still important)" before posting in this thread. This might help people (like me :P) to be constructive. On Wed, Apr 10, 2013 at 5:01 PM, Thiago Macieira wrote: > On quarta-feira, 10 de abril de 2013 16.05.

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 commercia

Re: [Interest] QSqlDatabase "left open"

2013-04-05 Thread Alex Malyushytskyy
Do you say QStringList 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, Alex On Thu, Ap

Re: [Interest] QTableWidget add chart

2013-03-22 Thread Alex Malyushytskyy
Write, find free or buy widget you need to insert, ( google it. for example http://qt-apps.org/content/show.php?content=132560) then read QTableWidget documentation about setCellWidget ( int row, int column, QWidget * widget ) Alex On Thu, Mar 21, 2013 at 7:11 PM, pengliang(彭亮) wrote: > Hi a

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, 2

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 unreasonable

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 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] 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 wrote: > On 12/10/2012 02:41 AM, Haataja Ismo wrote: >> Hi! >> >>> Will there be a VS addin for VS 2012 an

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 wrote: > I have a need to make a group of windows behave

Re: [Interest] how to remove QGraphicsEllipseItem from parent

2013-02-26 Thread Alex Malyushytskyy
question an idiot. Alex On Tue, Feb 26, 2013 at 4:58 PM, tang ke wrote: > You must know the relation of QGraphicsScene, QGraphicsView and > QGraphicsItem. > > The QGraphicsView display the item of QGraphicsScene. > > > On 02/27/2013 08:15 AM, Alex Malyushytskyy wrote: >

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 wrote: > On 02/24/2013 07:56 PM,

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 roc

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 ) in

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 wrote: > On Thursday, 29 November 2012 12:33:58 CEST, Volker Po

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 questio

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 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 > Universidad de

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 wrote: > Hello: > > I am adding spell checking to my app

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
ng mouse event handlers and calling QAction::trigger()." Alex On Tue, Oct 9, 2012 at 5:23 PM, Alex Malyushytskyy 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 wrote:

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 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 bar? >> >> It's,

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 wrote: > Is it possible to manipulate QTextStream so that it outputs a > representation of a float or a double with exactly n digi

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 wrote: > Op 4-10-2012 15:21, Sujan

Re: [Interest] Aligning QProgressBar inside a QSplashScreen

2012-10-03 Thread Alex Malyushytskyy
e: > 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

Re: [Interest] Aligning QProgressBar inside a QSplashScreen

2012-10-03 Thread Alex Malyushytskyy
ed. Code can't recover 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 wrote: > On 10/02/12 05:07, Alex Malyushytskyy wrote: >> You would save a lot of time if u properly initialized this->progress to >> n

Re: [Interest] Aligning QProgressBar inside a QSplashScreen

2012-10-01 Thread Alex Malyushytskyy
Few comments 1. If you remove : splash->finish(&w); You will have splash staying on top until you click it. Good for debugging. 2. QApplication can only be one, so it does not make sense to pass pointer of it, use qApp; 3. On Windows with Qt 4.7 your example result in Unhandled exception : A

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 comput

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 t

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 da

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 iss

Re: [Interest] memory fragmentation?

2012-08-20 Thread Alex Malyushytskyy
ern you do it. Cheers, Alex On Mon, Aug 20, 2012 at 4:20 PM, Thiago Macieira wrote: > On segunda-feira, 20 de agosto de 2012 15.27.53, Alex Malyushytskyy wrote: >> Crashing or even exiting due to insufficient memory in the middle of >> long term task is not a choice. > > Th

Re: [Interest] memory fragmentation?

2012-08-20 Thread Alex Malyushytskyy
>>On segunda-feira, 20 de agosto de 2012 14.39.08, Scott Aron Bloom wrote: Ok.. Call me taught.. but I can tell you, last time I tried, it didn't compile in 64 bit mode. >>Last time I tried, it did. I have not tried VS2008 (we skipped it), but we regularly produce 64 bit versions (toget

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 effic

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, ac

[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 o

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 pr

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 wrote: > On 9 August 2012 03:34, Alex Malyushytskyy wrote: >> user will not be requested for authentication second time, >> instead QNetworkReply

[Interest] QNetworkAccessManager - how to enforce authentication?

2012-08-08 Thread Alex Malyushytskyy
I could not find how to enforce authentication of QNetworkAccessManager. Problem is that for at least http server I have go work with, when user specify a valid user name, but invalid password when requested for authentication first time, user will not be requested for authentication second time,

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: 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 for itse

Re: [Interest] How can I subclass a QDockWidget?

2012-07-31 Thread Alex Malyushytskyy
As far as I understand you need 3 different objects (it can be instances of appropriate class or its subclass) for pattern to work: 1. QMainWindow ( add dock widget to) 2. QDockWidget 3. QWidget ( widget for setWidget which would be displayed by QDockWidget ) And 3 is missing in > void QScaffy::a

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 yo

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

2012-07-11 Thread Alex Malyushytskyy
A far as I understand if you run CMake you should not have Qt Visual Studio Add involved. If not mistaken CMake adds full paths to the dependencies, so you should have Add-in to be involved. try to remove it and see if project is built. Also I would check changes in CMake. I would not be surprised

Re: [Interest] mousepressevent on qtablewidgetitem

2012-05-11 Thread Alex Malyushytskyy
Are you sure you need mouse press event? Would listening to void QTableWidget::cellPressed ( int row, int column ) signal help? If not you can always install event filter, look for void QObject::installEventFilter ( QObject * filterObj ) Alex On Tue, May 8, 2012 at 5:10 AM, Riccardo Roasio wrot

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 returnCod

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 v

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 wrote: > I am trying to delete a row from QSqlTableModel which is show in the > QTableView but it's not working please help. > >     MainWindow *mainwin

Re: [Interest] QSqlRelationalDelegate combobox is not updated

2012-04-19 Thread Alex Malyushytskyy
a bug. I am surprised QSqlRelationalTableModel select() does not call select() for every relation model set itself. Regards, Alex -- Forwarded message -- From: Alex Malyushytskyy Date: Thu, Apr 19, 2012 at 2:34 PM Subject: QSqlRelationalDelegate combobox is not updated To: in

[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 and

Re: [Interest] [ Missing pixels when using drawLine ]

2012-04-11 Thread Alex Malyushytskyy
There is no point in excessive color usage. Most of people would would read it if you do not. At least attempt to do it made my eyes tired, so I could not pass second line. Alex ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.or

[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 wrote: > Hi Carl, > > Try to play with the widget Size Policy, it will become

Re: [Interest] [OT] Re: Database in LINUX application in windows

2012-02-17 Thread Alex Malyushytskyy
Actually he already learned something. At least he does not add 12 line signature from his post. So +++ for Dan's suggestion. Alex On Thu, Feb 16, 2012 at 6:16 AM, Dan White wrote: > In an honest effort to try to be helpful, I offer up two links to the group: > > How To Ask Questions The Smart

  1   2   >