When exposing some code to D-Bus using Qt D-Bus bindings, when should one use a Qt Adaptor over a Qt Interface? I'm having a difficult time understanding how exactly they differ since it seems like they provide the same functionality.
...
I want to code up a panel that will be used both in Linux and Windows. Ideally it will be written in Python using PyQT.
What I've found so far is the QSystemTrayIcon widget, and while that is quite useful, that's not quite what I'm looking for. That widget lets you attach a menu to the left and right clicks of an icon on the system tray...
I have a Win32 console app that is showing this behavior.
1) Using VC 2005 cl to compile and link, the application works fine. What I mean by working fine is that characters above 128 display correctly according to Code Page 437.
2) When I use QT qmake to construct a project (QT += console) and SOURCES = main.c, the build goes fine a...
I have a taskbar menu that when clicked is connected to a slot that gets the trigger event. Now the problem is that I want to know which menu item was clicked, but I don't know how to send that information to the function connected to. Here is the used to connect the action to the function:
QtCore.QObject.connect(menuAction, 'triggered(...
I have a class that is a subclass of QObject that I would like to register as a meta-type. The QObject documentation states that the copy-constructor should be private, but the QMetaType documentation states that a type should have a public default constructor, a public copy constructor, and a public destructor.
I can override QObject'...
Say, i need to run a bunch of code that is prone to crash so i need to run it on a different process. Typically i'd do it something like this:
pid = fork();
if (pid == -1) {
std::cout << "Cant Spawn New Thread";
exit(0);
} else if (pid == 0) {
std::cout << "Im a child that will crash\n";
char *foo = (char *) 0xffff...
I've written an application using Qt on OS X. The installed SDK automatically installed as a framework which I didn't want. So I cloned their newest version from the Qt git repository and built it from source as static libraries. I would like it to compile using those static libraries instead of the framework but in preferences in settin...
Hi,
I got an issue with a QLineEdit. Even if I set the tab order to start at this line edit, once the screen is loaded the LIne Edit won't get the focus automatically.
I've also tried with this two lines :
this->activateWindow();
this->lineEdit_password->setFocus();
But this has still no effect.
So maybe someone experienced the sam...
I have a QHBox with a custom widget that inherits QLabel which iterates through all image files in a dir and generates a thumbnail.
This part is working fine, however I need to implement the functionality to display the original image from which the thumbnail was generated in a central QLabel widget for diplaying pictures.
What would b...
I have this following code:
template <class T>
bool loadCSV (const QString &filename, map<T,int> &mapping){
QFile boxfile;
boxfile.setFileName(filename);
QString line;
QStringList list;
if (!boxfile.open(QIODevice::ReadOnly)){
cout << "Could not open box data file." << endl;
return false;
}
QTextS...
When you addRect ... then addLine ... to a QGraphicsScene, you'd expect the lines to be drawn over the rects, right ? In Qt 4.4.3, mac ppc 10.4.11, some lines are not, in the testcase below. I imagine this is a Qt / mac lib / graphics card interaction
(versionitis disease) so would appreciate anyone who can say "it's clean in ...".
Tha...
I am using twisted and now i want to make some pretty ui using qt
...
Is there a way to play mp3s in Qt 4.5?
Thanks!
...
On Windows XP, I ran "configure", and Qt says that I'm configured to use phonon, but I'm not sure how to set up my environment correctly in Qt Creator. According to the Qt documentation, I need to call:
Set DXSDK_DIR=C:\Program Files\Microsoft DirectX SDK (February 2007)
%DXSDK_DIR%\utilities\bin\dx_setenv.cmd
C:\program files\Microso...
Hello,
Is there any way to integrate Boost.Asio with Qt4 (prefered) or GTK main loop?
GTK provides poll(2) like API so technically is should be possible. Qt provides its own networking layer, however I prefer to use existing code written for Boost.Asio.
I want to integrate them without using an additional thread.
Is there any reference...
I am building a Qt 4.5 application on Windows using Visual Studio 2008. Whenever I run my application in Debug mode and then close it, Visual Studio prints the following to the output pane:
Detected memory leaks!
Dumping objects ->
{696512} normal block at 0x01981AB0, 24 bytes long.
Data: < > 00 CD CD CD 00 00 00...
Hi!
I'm trying to figure out how to get the caps lock state in Qt (4.5) but the only thing I managed to get from qt is either or not the CAPS LOCK was pressed or released, and then could't get the actual state.
In order to solve that I've tried platform dependent and I got something working on xp. But now I'm looking for a solution on...
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...
In the QT4 library QFileSystemWatcher is supposed to emit a "fileChanged" signal when the watched file is changed.
However, under ruby1.8 "fileChanged" is reported as "No such signal".
The FileSystemWatcher is clearly there. I can add files to it and read back the files property; it's just that the changed signal doesn't appear to be de...
I'm in the process of learning Qt4 and working through their tutorials.
In this tutorial:
http://doc.trolltech.com/4.5/mainwindows-menus-mainwindow-cpp.html
they have the following code:
fileMenu = menuBar()->addMenu(tr("&File"));
which causes the compiler to throw this error
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG ...