What im trying to do is have a table which does not appear editable directly but can be edited in some widget outside the table. That is, the selected node can be edited here, and all nodes use the same editor because i want it to always be shown.
What I've tried is to subclass QItemDelegate and just return the instance of QTextEdit i a...
I have created a GUI which requires .dll files in order to work. Here the list of those:
mingwm10.dll libgcc_s_dw2-1.dll
QtCore4.dll QtGui4.dll
I have read that I should write
CONFIG += static
in .pro file. But it does not work. Could you help?
...
How to make Esc key to minimize a dialog? By default it closes. Should I process KeyEvent or there is a better way?
...
Hi everyone,
I'm trying to find the best way to create a personalized contact List for an instant messaging app.
Maybe with a Tree View but I'm not sure.
I Need a way to view Groups in which there are Contacts.
A Contact contains different info and action buttons like "Send a message, View infos, ... "
An example @ http://ycorpblog.c...
I'm starting off QT 4.6's example "OpenGL - 2D painting"
It uses a subclass of QGLWidget, and makes painting operations with the class QPainter.
I'd like to know how to do drawing directly with OpenGL functions on the OpenGL Widget.
...
Hi ..
I have a string named aDrive = "H:/"
i want to convert this string into WCHAR so used like below
WCHAR Drive[4];
aDrive.toWCharArray ( Drive ) ;
when i printed it qDebug ()<<QString::fromWCharArray ( Drive );
it displays like "H:/???"
why i get the starnge charracters at the end..
Thank you for your time
...
Based on Qt 4.5.1
I placed QWidget, created with QWebPluginFactory, into HTML page.
...
...
TestObject works just fine, also JS communication with it. But i found two problems:
I cant draw no HTML elements above QWidget(positioning absolute and setting z-indexes). Is there any way how to set rendering order in WebKit? Or to make z...
Wikipedia says that "A piece of code is said to be exception-safe, if run-time failures within the code will not produce ill effects, such as memory leaks, garbled stored data, or invalid output. Exception-safe code must satisfy invariants placed on the code even if exceptions occur."
And it seems that we need exception handling for ex...
Say I have a window, where there are 2 horizontal sppliters, and a button. How to move a splitter up/down by clicking on the button?
...
Whan I want to use a signal of a private object in order to arise a signal of its parent object I do the following:
1. I create a signal and a slot (named, let's say, ParentSignal, ParentSlot)
2. connect(private_objcet, SIGNAL(someSignal()), this, SLOT(ParentSlot()));
3. and define parent slot like this:
void ParentSlot()
{
emit ...
I am currently using Phonon VideoWidgets inside of a QGraphicsScene using a QGraphicsProxyWidget.
I have my viewport set to a QGLWidget.
However, it causes me big issues when I try to apply some transforms to the video such as a rotation that isn't evenly divisible by 90 degrees since then it slows my program down a lot.
After reading...
On E63 or similar smart phones,there can be three softkeys(the left and right one always named "OK" or "Cancel" and the middle one always named "Select" or 'Query" alike actions' name) on the screen.QAction has this method:
void setSoftKeyRole ( SoftKeyRole softKeyRole )
,and SoftKeyRole goes these descriptions:
QAction::NoSoftKe...
Alright I tried using a QMaemo5ListPickSelector together with a QMaemo5ValueButton, but when I click on the button, a popup dialog box does come up, but it doesnt any list ..
Here is a picture of what I mean:
This is the code I'm using to start up the above mentioned two components and to populate the lists:
QMaemo5ValueButton *x = ...
Hi all,
I'm using NetBeans C++ to build a simple Qt application. Here is what I did:
From 'File' I chose 'New project'
In the 'New project' window I selected C/C++ category and C/C++ Qt application
Then I clicked Next and on the second frame I renamed my project to 'Test'
Clicked 'Finish' and the sample project was created successfull...
Hi all ... I wanted to know if its possible to have a QMaemo5ListPickSelector but one which displays rectangular images as list items instead of text ? Is this possible ? If not, is there any other list-like object in Qt which can show images as items instead of text ?
...
Hi,
I created a model which list the existing configurations (let's say it lists "files", as this doesn't really matter here). So far, it works well when attached to a QListView.
Example:
--- ListView ---
- file #1 -
- file #2 -
- file #3 -
- file #4 -
----------------
Is it possible to use the same model for a d...
I am trying to create a simple send mail function for a custom app created with the Qt framework in C++. I am very close just at the point where SMTP is trying to authenticate and can't for the life of me to get this to work. Here is what I am working with
do {
responseLine = socket->readLine();
response += responseLine;
}
while...
I am trying to put a QComboBox into a QStandardItem to be used in a QStandardItemModel. I have been looking around and I cannot find an answer, any ideas?
...
So I have a question very closely related to another question I've seen on here but when I tried posing my question there I got no responses, I'm hoping by asking this as a fresh question someone can help me out. Basically I want simply copy a portion of my table that I've created so that I can paste it to an excel file. Here's what I ha...
Is there a STL C++ class that works like QByteArray?
...