qt

Qt Creator Debugging

I'm using QT Creator on 3 platforms to create platform independent software. However, I'm getting a segmentation fault with the exact same code in Windows only. That doesn't sound so bad because I can use the debugger. Except, no matter how many breakpoints I set or where I set them, they are ignored by the debugger. I am 100% sure that ...

matplotlib - write TeX on Qt form

I'd like to add some TeX text to my Qt form, like label - just text, no graph, no lines, no borders, just TeX. I thought something like this: render TeX to bitmap and then place that bitmap on form, e.g. into QLabel. Or even better - use some backend, add it to form and use something tex_label.print_tex(<tex code>). Seems matplotplot has...

Set all outgoing network traffic to go through a certain proxy.

I think I know how to do this in windows with registry entry. Any cleaner ways with .NET? Anyway to do this in Qt, so for Macs as well? ...

AlignAbsolute on QGraphicsGridLayout

Hi I have four QGraphicsLinearLayout items all contaning bunch of QGraphicsWidgetItems. I have one QGraphicsGridLayout item. Is it possible to align linear layouts on grid to absolute positions. If possible how? ...

How to find item selected from customContextMenuRequested() on QTreeView item?

I have implemented contextual menus in QTreeView items with the following code MyDerivedQTreeView->setModel(MyDerivedQAbstractItemModel); MyDerivedQTreeView->setContextMenuPolicy(Qt::CustomContextMenu); connect(MyDerivedQTreeView, SIGNAL(customContextMenuRequested(const QPoint &)), MyDerivedQAbstractItemModel(), ...

Basic MCrypt string encryption with password implementation in C++

What is the basic setup on the subject? Let say I have a QByteArray, and I need to encrypt it with simple password. And the application has to be portable to Linux, Windows and Mac. Do I have to include mcrypt.h and mcrypt.c in the QT project? And then decrypt it in another piece of code Just a very simple setup ...

I cannot build Pythonqt

It is PythonQt : pythonqt.sourceforge.net. I am using PythonQt-1.1 . Qt version 4.6.2 and Python 2.6.4.10 . Visual studio 2008 From instruction: cd PythonQtRoot vcvars32 qmake nmake after I typed qmake, it generated makefile, then I entered nmake but it said "makefile(22) :fatal error U1000: syntax error: ')' missing in macro i...

qmake -project command gives QFileInfo warning in Qt 4.6

I've upgraded to Qt 4.6 on my Mac (OS 10.5). When I go to a project directory and run: qmake -project Qt returns this warning (although it doesn't say it's a warning, I assume it is since the .pro file gets created anyway): QFileInfo::absolutePath: Constructed with empty filename I did a completely new install thinking that the "up...

Editable QTreeView with expandable cells

Hi everyone, I tried to write an editable table based on QTreeView with wordwraped content in cells which in turn should expand in height (that whole text was visible) like usual cells in tables like in MSWord, but have met insuperable obstacles: first - i can't set fixed cell size. second - i can't make text display in cells wordwra...

QNetworkAccessManager timeout.

Hi, Presently I am working on an application which sends and receives file from remote server. To do network operation I am using QNetworkAccessManager. To upload a file I am using QNetworkAccessManager::put() and to download I am using QNetworkAccessManager::get() functions. While uploading a file I will initialize a timer with time ...

Qt Sockets and Endianness

Hello I'm writing a program that uses QUdpSocket for transmiting data over the network. This is my first socket program, and I've come across an interesting problem called Endianness. My actual question in, do I have to worry about Endianness when I'm using QNetwork as my sockets library? If I do have to worry, what do I have to do to ...

Qt Embedded for Linux. Keyboard layout switching.

I'm developing application with Qt Embedded and run it in linux framebuffer. I need a way to type non-US characters. Is it possible to change keyboard layout with Qt? I tried to run it on Qt/X11. Layout switching and input are perfectly fine there. But when I compile it with Qt/Embedded and run it in framebuffer I cannot change layout. ...

how to set contextmenu fro qtreewidgetitem in qt

Hello,I would like to know how can we set context menu for a qtreewidgetitem that is if i right click on each item in my qtreewidget,i should have some options like edit,delete ..i would like to know how can we implement this.thanks in advance ...

Instruction on how to build Qt for VxWorks ?

I would like to use Qt with VxWorks. Is that possible? If so, does anyone know if there's a tutorial or step-by-step guide on how to do so? Extra If anyone has experience in using Qt with VxWorks, you could share here as well. ...

Want to store profiles in Qt, use SQLite or something else?

I want to store some settings for different profiles of what a "task" does. I know in .NET there's a nice ORM is there something like that or an Active Record or whatever? I know writing a bunch of SQL will be fun ...

How do I change properties of buttons within button boxes in Qt4 designer?

I have been searching online now to no avail, but does anyone know how to access a button in a button box ?(created using the "Dialog with Buttons right" template) ...

using graphviz with qt

hi , i have a compiler project and i want to print the ast after the compile complete so can i print this ast to qt (on c++) panel using graphviz ? note : i dont know if there is a binding between qt or c++ and graphviz , so if it doesnt work please help me to find the alternative . thanks . ...

Right clicking on QHeaderView inside of QTreeView

I've written a descendant of QTreeView with multiple columns. I want to create a popup menu that appears whe nthe user right-clicks over the column headers. I have tried catching signals from QTreeView for this, but QTreeView doesn't seem to emit signals on the headers. QTreeView.header() does. I therefore believe I must either: 1: conne...

Problems with QDialog in Qt

I'm using Qt for Symbian. I have some problems with a QDialog that I open from a QMenu. The QDialog shows up fine and in the QDialog I have a QDialogButtonBox with a button to Close the QDialog. BUT if I close the QDialog and then open it from the QMenu again, it will show up but the button from the QDialogButtonBox will not show up. Ins...

Does Qt support ribbon control?

Does Qt support ribbon control? ...