qt

Generating word documents (.doc/.odt) through C++/Qt

Hi, I am using Qt 4.5.3 and Windows XP. I need my application to generate documents that contains the information that is being used and generated. The information that is being used will be just strings (QString to be more specific) and the information that is being generated will be strings and images as well. I want documents to be ...

MS Word/ ODF Automation in Qt

Hi All, How can I perform automation of MS Word documents (.doc) or ODF documents (.odt) in Qt 4.5? I know using the QAxWidget, QAxObject. I have data (QString) and few images as well. I have to add them into the document. I googled but I couldn't find any commands for MS- Word/ ODF. But I want the specific commands that should be pas...

why append Slot doesn't work?

Hi all, I have got a problem when I try to make following simple connections QSpinBox *spinBox = new QSpinBox; QSlider *slider = new QSlider(Qt::Horizontal); QTextEdit *text = new QTextEdit("Hello QT!"); QObject::connect(spinBox, SIGNAL(valueChanged(int)),slider, SLOT(setValue(int))); QObject::connect(slider, SIGNAL(valueChanged(in...

Decrypt an ecrypted String using QCA

Based on QCA::Cipher Example I managed to get an encrypted value. String: hellohellohellohello Encoded: d2fde01cb467a97de2e56bbd76fb0855 Key: cekpo IV: cekpo My code: QString enc = "d2fde01cb467a97de2e56bbd76fb0855"; QCA::Initializer init; QCA::SymmetricKey key(QByteArray("cekpo")); QCA::InitializationVector iv(QByteArra...

qt - how to add additional include directories

Hi I am trying to create a qt program. Here I need some library file which are in C:\Documents and Settings\prabhakaran\Desktop\ChessServerNew\ChessServerNew I tried to edit the .pro file like INCLUDEPATH += C:\Documents and Settings\prabhakaran\Desktop\ChessServerNew\ChessServerNew But, still the qt compiler is saying that it can'...

reading part of svg file in qt

Hello All, I need to read a part of a .svg file. There are many graphs in the .svg file related to values. Is there any way that each graph can be represented as a tab in Qt? Thanking you. ...

how to send QList<Object *> objects to another class ?

hi i'm trying to send a QList as a parameter to another class but for some reason i lose all it's content ... (when i open the object with the debuger i see for objects...) trying to send QList books to class Print: class Store: public QWidget { Q_OBJECT public: Analyze(QWidget *parent = 0); void generate_report(); ~An...

making paint in pyqt or qt

hello i have just received a task to implement a software that paints over pictures (pretty much like microsoft paint ) i have no idea where to start or how to do that. do anyone have a good reference or idea for painting in qt or pyqt ? this will be highly appreciated thanks in advance ...

Debug into Qt sources

Is it possible to step into Qt sources, e.g. qmainwindow.cpp, in Qt Creator? At the moment I'm seeing the disassembly, but it would be nice to see the sources instead. ...

[Qt/C++] Functions cannot access objects defined in the same class .. ! Possibly a bug ?

Hey guys .. Well ever since I've started programming in Qt, I've been having problems regarding scope visibility of objects I've defined .. Till now I've managed to find ways to get around these things but now its getting annoying .. For example, I have this class defined called Canvas: class Canvas : public QWidget//, public MainWindo...

Changing language in Qt on runtime

Hi i have a Qt application and there are several plug-ins attached to the application. i want to change the language of the program on runtime but i dont know how to do it. i know i can do it by a call of this code: ui.retranslateUi(this); but since there are many plug-ins and many widgets on these plug-ins, it is hard to write th...

Qt3Support and mingw static linker error

I had a problem at first compiling Qt static on windows, QTBUG-11249 When configured with "-no-qt3support", the build completes fine. i did that and compiled successfully, but i get the same errors when i try to compile my application. e:\Qt\2010.04-static\qt\lib/libQtGui.a(qapplication.o):qapplication.cpp:(.text+0x8e0f): undef...

Propagate custom QEvent to parent widget in Qt/PyQt

Fist, apologies for the length of the question. I am trying to propagate custom Qt event from child widgets to a top parent widget in order to trigger some action based on event type instead of linking signals. Qt docs suggests that every event posted with postEvent() that have accept() and ignore() methods can be propagated (meaning e...

Can a PyQt program consume a DBus interface that exposes custom C++ types (marhsalled via Qt's MetaType system)? If so, how?

I have a Qt/C++ application that exposes some custom C++ classes via DBus methods (by registering them as MetaTypes, and using annotations in the xml), and I want my PyQt program to consume these methods. The problem I see is that the exposed types are C++ classes, not python, so how can I make python aware of these classes? ...

Deletion of objects send by signals, Ownership of objects in signals, Qt

Here, my signal declaration: signals: void mySignal(MyClass *); And how I'm using it: MyClass *myObject=new myClass(); emit mySignal(myObject); Here comes my problem: Who is responsible for deletion of myObject: 1-)Sender code, what if it deletes before myObject is used? Dangling Pointer 2-)The slot connected to signal, what ...

A terse introduction to Qt?

Is there a terse introduction to GUI programming with Qt, meant for programmers with a decade's worth of experience (but who don't have any exposure to Qt). I am looking for something that gets one started quickly, and covers all the advanced stuff (including best-practices and patterns). Was looking for something like this book - Advanc...

Get previous value of QComboBox, which is in a QTableWidget, when the value is changed

Say I have a QTableWidget and in each row there is a QComboBox and a QSpinBox. Consider that I store their values is a QMap theMap; When comboBoxes value or spin boxes value is being changed I want to update "theMap". So I should know what was the former value of the combo box in order to replace with the new value of the combo box and...

qticon only showing on my pc

i made an app in the tray bar with an icon with qt, this is the way i make the icon; trayIcon->setIcon(QIcon("favicon.ico")); but it only show the icon on my pc, when i give the project to somebody else its just invisible. even if i do the next thing; trayIcon->setIcon(QIcon(QDir::currentPath() + "/favicon.ico")); does somebody kno...

Please let me know its an functionality behaviour or not

Hi all, I am having an listview filled with the items, by default the 0th item will be selected. If I try to navigate the list using mobile keypad its not gaining focus, instead i need to use my mobile select key for focus. In this process my mobile left soft key gets change do “Done” I don’t know why this “Done” menu is appearing in my...

Netbeans - Cannot find include file : QtGui

I am trying to work with Netbeans ans Qt (on Windows) and I am having trouble getting set up. I am getting a message that it can't find an included file: QtGui/QApplication. I think that I must have a path wrong somewhere. Under Tools -> Options QMake Command I have C:\Qt\2010.02.1\qt\bin\qmake.exe In Windows, I have the PATH set ...