Hi all!
I have a dynamic library (plugin) that uses another dynamic library (dependency). I use the dependency in two ways:
a. by instantiating object from classes defined in the dependency
b. by inheriting from classes defined in the dependency
When doing a., there are no linking errors. But when doing b., I have a linking error stati...
I'm using Qt 4.5 and im working with a QList<QStringList> which is a list of string list.
Now I want to replace one string inside one stringList but with it seems unusual to type. I have found the following way of doing it and was wondering if it is ok:
QList <QStringList> pDataList;
pDataList[listIndex].replace(QStringIndex, newStri...
I have the coordinates (X,Y) of a point in an HTML document. How do I determine what DOM node is at those coordinates?
Some ideas:
Is there a DOM hit test function that I missed, that takes a point (X,Y) and returns the DOM element there?
Is there an efficient way to walk the DOM element tree to find the containing element? This seems...
I'm working with QGLWidget (Qt widget for OpenGL) and want to be able to capture the screen displayed by the widget as JPEG files. How can I achieve this? Is there a function that return what is currently displayed on the widget as an image?
...
I have browsed the documentation, but didn't find one.
Any ideas?
...
I am trying to make a stereo window in QT--I seem to be lost in the interaction of QT and OpenGL.
I have set the stereo context in my GL initialization code
QGLFormat fmt
fmt.setStereo(true)
and when I check the value, it comes back true.
I then draw into the GL_BACK_LEFT and GL_BACK_RIGHT buffers (I have also tried just GL_LEFT an...
In a Qt application, I have a bunch of automatically-created QActions (menu items) that I add to a menu in the menu bar. Each opens a different file. I'd like to connect them all to the same slot so as to not write the same code many times. From that slot, though, how do I figure out which of the QActions was triggered?
(Example: In Coc...
On my toolbar in Qt, I have several QMenus (all of which align to the left by default). I would like to make one of them align to the right side, but I can't seem to find the correct way to do this. Any ideas?
...
Is there a way to make links clickable in a QTextEdit?
I know I can use a QTextBrowser and connect to anchorClicked but I'd rather keep the editing and viewing all in one widget, and have clickable links when I set the widget to read-only mode.
Is this possible or am I stuck with having two separate widgets in a stack and switching be...
Hey,
I just finished half of "the C++ GUI Programming with Qt 4". I wanted to find some small-scale or medium-scale opensource projects that are built on Qt 4, then I can learn something from the source code.
Could anyone recommend some projects from your experience when you start to learn Qt?
Thanks a lot.
...
I'm following a tutorial of making desktop apps. with python and qt4, I downloaded and installed qt creator ide, created the .ui file and then I had to convert it using pyuic4, I've been trying a lot of things and still can't do it.
I thought that pyuic4 would be installed with Qt creator IDE, but it seems that's not the case, so I inst...
I am responsible for a Windows application that loads up plugin "script" dll's written in c++.
The application exposes an API based on Win32 fibers to allow the c++ 'scripts' in the plugin dlls to use 'yield' and 'resume' type calls - essentially co-routines - to sequence the dependencies in the scripts without resorting to an asynchron...
Hi,
i'm working on a windows application, where in a dialog i query some data from Postgres, and manually show the output in a table widget.
m_ui->tableWidget->setRowCount(joinedData.count());
for(int i=0; i<joinedData.count(); i++) //for each row
{
m_ui->tableWidget->setItem(i, 0, new QTableWidgetItem(joinedData[i].bobin.refer...
Actually, I do understand major pros and cons of using exceptions. And I use them in my projects by default as error-handling strategy.
But now I'm starting a Windows CE project with Qt library, and I see that Qt creators refused to use exceptions in the class hierarchy.
So, if I use exceptions I will need to carefully translate them to...
I have the following regular expression that works fine in perl:
Classification:\s([^\n]+?)(?:\sRange:\s([^\n]+?))*(?:\sStructural Integrity:\s([^\n]+))*\n
The type of data format this string is supposed to match against is:
Classification: Class Name Range: xxxx Structural Integrity: value
Classification: Class Name Struc...
I'm considering building a visual programming language, akin to Scratch, for use by children (a.k.a. poor typists) in programming micro-controllers or robots.
There is, for example, a project to build a graphical programming environment for the Arduino.
I really like Scratch, and would like the graphical coding to be similar. Scratc...
I am using Qt designer and I know how to use a QVBoxLayout and QGroupBox but it seems there is no such thing as a QGroupVBoxLayout. So I have to put a QVBoxLayout inside of a QGroupBox but if I modify the dimensions of one I have to do the same to the other. Is there a way to make them change dimensions together directly from QT design...
hi all
I have successfully linked my QT application with openssl and I can use it in my application now.
But qmake makes an strange error when it reaches my openssl function use(it seems to be a compile one,but it is even shown in error list like normal ones):
make[1]: *** [\S60\devices\S60_5th_Edition_SDK_v1.0\EPOC32\BUILD\Pir\Carbide\...
Hi all,
I would like to execute a QMenu object at the position of text cursor in a QPlainTextEdit. My problem is that QTextCursor is only define by its position in the Text (index of the character).
How can I find global position of the QTextCursor? Should I use an other object than QTextCursor in order to find the position of the text...
I am writing a command-line Qt4 script (using QCoreApplication) on Mac OS X.
I am using this code adapted from C++ Programming with Qt 4, 2nd ed. p. 313:
QTemporaryFile outFile;
if (!outFile.open())
return;
QString fileName = outFile.fileName();
QTextStream out(
out << initial_text;
outFile.close();
QProcess::execute(editor, QStr...