Is it possible to statically link a library released under the CPL into a commerical application?
I'm contemplating using the libqxt library which is released under both the lgpl and cpl licenses. However the cpl license is a tad unclear as to whether it needs to be dynamically linked (as required by lgpl).
I've checked the cpl faq on...
Hi,
I'm trying to set transparent icons in a QAction, which is then added to a Menu and a toolbar. I'm styling the application with a style sheet. The icon transparency works, but the icons are being drawn on the toolbar with what looks like a 1px black border on the left and top edges of the icons.
Now, all my icons are stored in one...
First, I found a couple of java specific questions and answers for this. I am looking for more "native", but cross platform solution, using C, C++, some kind of shell scripts, or, in my case, Qt.
So the question is, are there standard, cross platform, ways to programmatically open the associated application for certain file types. Or a...
Hey,
I have a QPainter object and would like to obtain the string that is drawn whenever QPainter::drawText is called, as I would if I could connect a slot to that signal (which doesn't exist, so I can't).
What would be the best way to do this? I have read some stuff about redirecting the drawText method to a custom one using the setPro...
Like it has been written here Qt up to now has 8 specilized smart pointer classes.
It looks like it is all you will ever need.
However, in order to use any of these smart pointers your class must be derived from QObject which is not always convenient.
Is there other implementations of smart pointers in Qt which work with arbitrary classe...
OK, this is driving me nuts. I'm sure it is trivial, but I've been looking for the answer for a while and don't see it. I'm sure it will be a flat forehead.
I'm designing a Qt4 dialog in Python. I generated the code via QDesigner, and have 4 inputs on the system:
QLineEdit (can't be blank)
QPlainTextEdit
QLineEdit (can't be blank...
I was wondering if there is a way to convert my QT (version 4.50) menu and all its submenus into a text document in something similar to the following format:
Menu 1
Sub Menu 2
Menu 2
sub menu 3
sub menu 4
sub menu 1
...
Hello
I am using QtWinMigrate solution to show dialogs from my plugin dlls that are loaded in third party Mfc application. The problem is the following :
When I minimize the main window of my Mfc application, and when I restore it back again, all of my open Qt dialogs are lost. I found out that actually my Qt dialogs are destroyed i.e...
I'm a little confused about what the correct way to reset or clear the data in associated with a QAbstractItemModel. I'm writing an application in which the user can "start over" with a new set of data (empty, or small).
Should I be deleting the old model when the user makes this request? Or should I leave the model alone and just remov...
I guess I've asked a few similar questions before, but I was beating around the bush. I think this is the real problem that I can't quite lay to rest.
I'm dealing with a third party library, and there's an object that can't create itself, b2Body. The b2World has to instantiate it. I personally don't like this design pattern very much; I...
Dear All,
I am trying to create a C++ library with QT. However, when I launch the builder,
QT Creator asks me to provide an executable. I do not understand what it is really
asking for. Why would need an executable to make a library?
Thanks!!!
...
All examples in Qt show that one should use delegate classes to provide editors that reside within QTreeView (QListView, etc). I want to have a separate non-modal dialog to edit item's attributes. Should I use delegate classes to do so?
That is, no editing or special behavior is required within QTreeView.
...
I know there is the possibility of setting the parent model index for the item view, but I'd like to do this for the model.
The reason is quite simple, I want to get rid of those constructs:
# PyQt 4.5.4, but this should be similar to Qt.
def insertRows(self, row, count, parent=QModelIndex()):
if parent.isValid():
parentNod...
I am writing an application that needs to read a user name and password and store them so that the program can read them again later. Storing it in some variables sounds like a stupid idea.
Found that KDE library, but it has too huge dependency, and I am too newbie programmer to understand how to use it.
What are the common Methods to...
Greetings,
I have a subdirs project which wraps a couple libraries and a main application. When I change something in one of the libraries the main application does not relink with them.. does anyone have a trick for getting an application to relink with its statically linked libs automatically when using QT Creator?
-Dan O
...
Hi,
I'm working on translating our Qt gui at the moment.
I have the following code:
// header file
static const QString Foo;
// cpp file
const QString FooConstants::Foo = "foo";
// another cpp file
editMenu->addAction(tr(FooConstants::Foo));
This doesn't seem to work though.
That is, there is no entry in the .ts file for the abo...
I recently migrated my Qt project from Linux to Vista, and now I'm debugging signals blindly.
On Linux, if QObject::connect() fails in a debug build, I get a warning message on stderr. On Windows, there is no console output for GUI applications, only an OutputDebugString call.
I already installed DebugView, and it catches my own qDebug...
A group I am working with is tasked with developing a new project using Qt. However, we need to be able to link with C++ libraries from the MSVC 2005 world. We will also need to integrate eventually with the MSVC-based build system, so it seems important to build Qt using MSVC.
I've recompiled Qt using MSVC 2005, and that works. (if ...
I'm trying to style a QTableView with Qt Stylesheets. Everything works OK, except that all the table header texts (column headers) are drawn as bold text whenever data in the table view is selected.
I've tried things like this:
QTableView::section {
font-weight: 400;
}
QTableView::section:selected {
font-weight: 400;
}
QHeader...