Hi everyone!
I have a class looking like this:
class FakeRunner : public QObject
{
Q_OBJECT
private:
QProcess* proc;
public:
FakeRunner();
int run()
{
if (proc)
return -1;
proc = new QProcess();
QStringList args;
QString programName = "fake.exe";
connect(comp, SIG...
I need to draw a dynamic overlay on a QImage. The component parts of the overlay are defined in XML and parsed out to a QHash<QString, QPicture> where the QString is the name (such as "crosshairs") and the QPicture is the resolution independent drawing. I then draw components of the overlay as they are needed at a position determined dur...
For one of my opensource project, i need to compute decimal equivalent of given unicode character.
For example if tamil character L'அ' given, output should be 2949 .
I am using c++ in Qt environment. I googled and couldnot find a solution for this. Pls help if you know a solution for this.
...
Once a minute I want to run a task, not blocking other GUI functions. I heared somthing about QConcurent::run ...
Or should I use signals and slots?
...
Hi,
I have MyWindow class which popus a blank window, which accepts a mouse click, I need to unit test the mouse click event
Code snippet:
void TestGui::testGUI_data()
{
QTest::addColumn<QTestEventList>("events");
QTest::addColumn<QTestEventList>("expected");
Mywindow mywindow;
QSize editWidgetSize = mywindow.size();
QPoint clickPoin...
I am working with Qt's QWebView, and have been finding lots of great uses for adding to the webkit window object.
One thing I would like to do is nested objects... for instance:
in Javascript I can...
var api = new Object;
api.os = new Object;
api.os.foo = function(){}
api.window = new Object();
api.window.bar = function(){}
obvious...
Hi all
i'm trying to make a simple GUI with QT 4.6. i made a separete class that represents the menu bar:
MenuBar::MenuBar()
{
aboutAct = new QAction(tr("&About QT"), this);
aboutAct->setStatusTip(tr("Show the application's About box"));
connect(aboutAct, SIGNAL(triggered()), this, SLOT(about()));
quitAct = new QAction...
Hi,
I want to put some text on my UI, I am drawing the text in paint event of a widget using painter..
Here is the sample code, which shows how I am drawing the text..
QWidget::paintEvent(painter);
QPainter paint(this);
paint.drawText(QPoint(10,30),"Duplex");
but, the text color is looks like the default theme color, how to set the...
Hi everyone.
Is it possible to connect to net remoting server with qt4 library? If this is possible how to do it? Where can I find any informations about it?
...
Are there any 2-D Game Engines for Qt4 out there? I want a game engine that has collision detection, and runs smoothly with lots of sprites on screen.
...
What is the best way to show a list of downloads using QT4?
1 QListWidget
2 QTreeWidget
3 QTableWidget
Thanks
...
How do I set line spacing after a wordwrap in QTextBrowser? Ie. how dow I set line height?
...
Hi,
was anyone able to build Qt on windows 7 (64-bit) with visual studio 2010? I've tried different compilers and -no-webkit option for configure, every time nmake fails with error code U1077. Would be very greatful for suggestions. Thanks in advance,
Daryna
...
What is exactly richtext and how do I format data in richtext in QTextEdit?
...
How do I set line height in QLabel when in WordWrap mode?
...
How do I set color of text and background of a QLabel?
...
I want to do something which will access network when a QMainWindow is ready.
I suppose I should not do it in the constructor, so I try to find a signal the widget will get and try to implement something like a OnReady() call back in other UI library. But I still can not find a way to do this.
Thanks a lot in advance.
...
Hi all,
I'm new to QT and have been trying to create a test browser. What I'm trying to do now is to handle js-based popup requests. After reading the QT documentation, I learned that I need to re-implement the QWebView::createWindow method to do just that.
Now I've re-implemented this method, but it seems to be not called when I try t...
How exactly can I subclass QGraphicsLayoutItem?
I write a class that subclass QGraphicsLayoutItem and reimplement sizeHint and setGeometry but when I add my custom item to linear or grid layout. It does not shown?
What is missing?
Here is my trial.
//basicitem.h
#include <QGraphicsWidget>
#include <QtCore/QRectF>
#include <QtGui/QP...
hello
i converted recently from wxpython to pyqt and im still facing alot of problems since im still noob in pyqt
so is it possible to detected if user pressed (CTRL+key ) in pyqt ? and how ?
i've been trying to find an answer for this for 3 days . if you know website or a good place to learn pyqt, it will be highly appreciated
t...