qt

insert unicode string in sqllite database from qt

Hi, I am creating a sqllite database from qt like this : QSqlDatabase db = QSqlDatabase::addDatabase("QSQLITE", mConnectionName); db.setDatabaseName("myDattabse.DB"); if (!db.open()) { return false; } When trying to insert macedonian characters in the sqllite database, the characters are inserted as ???. According to this link htt...

Qt Creator: how to debug and watch widget's properties?

Hello, I have a form and several widgets on it. Say, I have the following code and breakpoint on this line: ui->labTitle->setMinimumHeight(64); And I would like to know which height the labTitle has now. Where and how??? If I try to add ui->labTitle into watches list it says it doesn't know what is it. Maybe I need to adjust some debu...

About the autocomplete of Qt Creator 2.0.0.

I have some questions about Qt creator. Under Win XP, I can use autocomplete with hot key 'ctrl + whitespace'. Can I change the hot key to another like 'ctrl + shift + u' ? Because the hot key 'ctrl + whitespace' often is used to change my input method. And under Mac OS X, I installed Qt 4.7 with Qt Creator too. But I cannot find a hot...

Problem migrating type library from C++Builder to QT

Hello. I have a type library compiled with VC6 (APuma.dll) that I load in C + + Builder with this header: [...] typedef TComInterface<IStrings> IStringsPtr; typedef TComInterface<IStringsDisp> IStringsDispPtr; extern __declspec (package) const GUID LIBID_TIGERLib; extern __declspec (package) const GUID DIID__IRecognitionEvents; exter...

problems on Qt on netbeans

guys i have asked a few times ago about Qt usage then problem was that Qt was not configured properly on my system now i have installed metbeans and everything is ok just i have following problem here is code #include <QtGui/QApplication> #include <QDir> #include <QFileInfo> #include <QtDebug> int main(int argc, char **argv) { ...

Newbie problem with QT C++ - Qimage dont work?

I am trying to do console application to read pixels from image: #include <QtCore/QCoreApplication> #include <QtGui/QImage> #include <iostream> int main(int argc, char *argv[]) { QCoreApplication a(argc, argv); QImage *img = new QImage("adadad.jpg"); //std::cout << "Type filename:" << std::endl; img->isNull(); ret...

QT console application

I am goint to develop some console application, and after that probably add GUI to its. I am begginer with QT and I wonder if I should use signal and slots with my own console object? Or if them is used only with GUI? ...

compiling libspeex for symbian.

I want to use libspeex library in my nokia Qt application. How do I compile speex for this purpose, and how do i add it to my qt project? ...

QSettings - File chooser should remember the last directory

Hi ... i upload a file from a location, then the next upload has to point the last uploaded location. how can i accomplish that using QSettings... Thank you for any help ...

QTableWidget orginal index sorting problem.

Hi all i am using QTableWidget and when user click on perticuler row ,i use that index to perform some operation i have also enable sorting using setSortEnable so when i sort it bu clicking on header,all row index changed but i want previous index so wht should i do? please suggest me. ...

qt - creator - how to maximize the widget screen

Hi, I am tryimng to make a UI. But in qt, the window size is too short, I want to work in a separate windows like photoshop. Here I am posting the picture. I want to see the middle window(i rounded it by rose color) in full screen size. Can anybody help me? EDIT: If I want to create a full screen application, How can I positio...

How to minimize application in qt

Hi all! How can I minimize my application by clicking on some button in the application on Windows Mobile and Symbian platforms under QT. Thanks in advance! ...

What is the closest equivalent to Qt's form layout in .NET?

What is the closest equivalent to Qt's QFormLayout in .NET? ...

QT creator - how to achieve access to component from GUI creator?

I am drop some QLabel on main form my qt gui app, and after that in my main class "mainwindow" I cant reach label? Why and how to solve it? (I am trying to type label - its name and there isn't any.) ...

Create Widget in QMainWindow and load to ScrollArea

Hey, I tried to create a Mainwindow with an slot, which creates a Widget and loads it to the ScrollArea in the Mainwindow. This doesn't work, so I tired to create the Widget in the constructor of the mainwindow and I always get errors and don't know why.. so what's the right declaration of the Widget? #include <QtGui> class Mainwindo...

How to draw a QPoint on a QGraphicsView/Scene

It's really not clear to me how to simply draw a 2d point in QT. I want it to overlay a QPixmap item, but every piece of documentation I find talks about drawing polygons with brushes. Thanks in advance - ...

Qt - QImage is there a method to paste Qimage into another Qimage?

I am looking for a way to simply paste some Qimage into bigger one, starting with some given (x,y). Now, I am copying pixel by pixel all Qimage. ...

Qt - Converting QString to Unicode QByteArray

I have a client-server application where client will be in Qt(Ubuntu) and server will be C#. Qt client willsend the strings in UTF-16 encoded format. I have used the QTextCodec class to convert to UTF-16. But whenever the conversion happens it will be padded with some more characters. For example "<bind endpoint='2_3'/>" will be chang...

One QStandardItemModel for different QTableView, Generic vs Specific Views

I really don't know if this makes sense but this is what I trying to do: I'm doing my game's editor in QT. Currently I'm using a QStandardItemModel to store all my scene items. These items have names, position, Textures(vector of Texture which is a custom class), Animations (vector of Animation), etc. I find it useful to have one item...

No such signal in QT4

I have a signal and a slot that should fit together quite nicely. class MemberVisitor: public QObject { Q_OBJECT signals: void processMember(Member* member, bool &breakLoop); public: void processList(QList<Member*>* list); }; along with: class MemberFinder: public QObject { Q_OBJECT public slots: void processMembe...