I need to change my Qt application's dock icon (in MacOS X) in run-time according to some conditions.
I've found several recipes on trolltech.com:
QApplication::setIcon()
setApplicationIcon()
qt_mac_set_app_icon()
but none of it works: there is no such methods/functions in Qt 4.5.
How can I change my application's dock icon and wha...
Recently I changed the hostname of my computer and now every time I start a qt program i get a message that says
_IceTransSocketUNIXConnect: Cannot connect to non-local host [My old hostname]
Qt: Session managment error: Could not open network socket
But the program still works fine. It just is slow to start up. I am using ubuntu 9.0...
I want an app's main window to ignore mouse and keyboard events, passing them to applications underneath it in the window manager Z-order.
I see how to make child widgets ignore keyboard or mouse events, but how about the main window?
I'm trying to make a desktop widget that always sits just over the background and is totally invisib...
I'm trying to build a simple slideshow-like effect using Phonon with PyQt. The "slideshow" will be made up of images and/or video, but the images should display for some fixed period of time. When I queue up an image in a MediaSource, it is displayed for only a short moment.
Phonon appears to support images via the backend (at least o...
I'm trying to make a subclass of QTableView that has an embedded QLineEdit at the top for filtering the results as-you-type. I need my table to have the same API as a normal QTableView, so I want to subclass it rather than subclassing QWidget and adding a QLineEdit and QTableView to it.
I thought I could just reimplement paintEvent(QPai...
Is there a list of what I can and cannot do in my code using the Qt framework under the LGPL license and keep my source code closed? For instance, can I subclass Qt classes like QWidget, etc.?
Thanks!
...
How do I ensure that I am dynamically linking my application to the Qt framework in Qt Creator?
Thanks!
...
I am attempting to create a custom widget. My Widget renders itself unless it is inside a scroll area. The code below works. If I change the if(0) to an if(1) inside the MainWindow constructor, it will not render the "Hello World" string. I assume that I must (re)implement some additional methods, but so far I have not been able to find ...
hello,
it's been two days, i've checked every solution online i could find but still no help.
here's the thing:
my os is Windows 7 RC 64 bit. i have Qt 4.5.1 development environment and PostgreSQL 8.3 development libraries (installed via PostgrePlus one-click installer). so i have some dll's and header files, but no "libpq.lib". so acc...
I am currently trying to compile and build QT for Embedded Linux on an Ubuntu box for ARM architecture. So far, I have run into MANY errors while trying to MAKE. The biggest one being a 2000 line C++ function which caused a compiler error. What are other peoples experiences with this and how did you fix it?
...
Qt has power and lot's of conceptual intricacies - that's my ipression after using/learning it for a few months.
Reading a whole book on the subject is unfeasible, because I neither possess the ignorance of "dummies" or "complete idiots" nor enough perseverance and free time. On the other hand official doc pages (even those broad-view ...
I'm using a provided .pro file and for some reason, it's configured so that the debug libraries do not have "d" appended to their library name. What causes this and how do I restore it?
E.g. QtGui4.dll (release) and QtGuid4.dll (debug)
Thanks.
...
I understand more or less how does MPV works.
But I don't get what classes:
QAbstractItemModel
QAbstractItemView
QAbstractItemDelegate / QItemDelegate
Can do for me?
If that is relevant, I'm using
QGraphicsScene / QGraphicsView with some elements (visual representation of game board) that user can interact with while the interaction log...
Hello, i'm trying to rewrite method paintEvent in my programm and change it.
void MainWindow::paintEvent(QPaintEvent *event)
{
QRegion reg = this->bgPixmapHandle->rect();
QPainter painter(this);
painter.setClipRegion(reg);
painter.drawImage(bgPixmapHandle->rect(), bgPixmapHandle);
painter.end();
}
Here i try to ch...
After configuring with
$./configure -embedded arm -xplatform qws/linux-arm-g++ -opensource
I get this output when Making and can't figure out why:
../../src/corelib/arch/qatomic_arm.h: In function char q_atomic_swp(volatile
char*, char)':
../../src/corelib/arch/qatomic_arm.h:125: warning: address requested for ret',
which is ...
I am trying to write a Trolltech QT library that will be used from a NON-QT CFM Application written in MacApp. I am having trouble that when I have created QApplication it is taking over my event loop in my non-Qt MacApp mac application. I have override QApplication::macEventFilter to call CallNextEventHandler but this calls my Carbon Ev...
I have a QStandardItemModel with some manually implemented "select all" functionality. This loops through and updates the data for all items (or certain items—there's a filter involved). The problem is that I have some slots connected to the model's dataChanged signal, and I don't want them called every step of the way when the user does...
I am trying to write an OpenGL visualization program for some scientific data using qt. I would like to be able to use my existing program unchanged and simply be able to call the glwidget and tell it to update the data at the end of each time step. However in order to run a qt program it appears you have to use QApplication and then qt...
hi everyone, I am trying to deploy(release to public) a simple qt application I made recently, but got stuck at static linking qt libs.
I followed the guide on qt docs to re-build qt and my app statically. But the release build still require qtgui / qtcore dll for no apparent reasons, I wonder if anyone has seen this kind of problems be...
Hello,
I got the following crash in QHash. I am unable to find any thing into. I am using Qtopia-Core-4.3.3 on Linux Machine.
The log is as follows
ASSERT: "node == e || (node)->next" in file /usr/local/Trolltech/QtopiaCore-4.3.3-400wrl/include/QtCore/qhash.h, line 824
Segmentation fault
Can anybody help me in this?
...