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 () );
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
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:
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:
+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
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
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
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
,
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
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
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
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
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,
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
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
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
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..
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 -
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
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
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
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
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,
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*
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,
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
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
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
, 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
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
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
* 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
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
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
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
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
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
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,
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,
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
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
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
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
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
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
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 )
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
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
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
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
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
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
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
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
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
:
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
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
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
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
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
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
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,
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
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
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
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
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
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
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.
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
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
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
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.
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
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
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
76 matches
Mail list logo