Hi I have an existing MFC application which draws some shape on screen, Now A Qt plug in is being developed whose one job is to add some text in the MFC drawing.
We are using Qt to draw the text in bitmap and then bitblting that on screen so that MFC Cview shows both together.
But when we are trying to print(usign Qprinter for text) Text...
How to set the color of margins in a QGridLayout? I want to show the different columns and rows separately by placing lines between various rows and columns.
In other words, how to display items in grid-layout such that they are in a table.
...
I have created 2 exe files: open.exe and edit.exe. and a new extension: say .newext.
Now I want to
open by double click on .newext file with open exe.
get a menu with right click on .newext file where in bold it is written "Open" and under that it is written "Edit". And by clicking "Edit" the edit.exe opens the .newext file.
do thi...
hi...
i am implementing slider in my app like below...
Slider = new QSlider(this);
Slider->setOrientation ( Qt::Horizontal );
when i run the app it shows the slider but i cant able to move the slider handle...
what i am doing wrong ...
please help me out
...
I've been tasked with looking into creating a web front end for an existing application written in C++ with QT for the UI. There are multiple constraints put on the task, along with several suggestions that would be nice to add in.
There is currently a QT-drawn graph updating multiple times per second with data contained in C++ object...
Is it possible to have an event filter on a QGraphicsItem? eventfilter has a param that gives you a QObject, but since QGraphicsItem isn't derived from QObject, then how would it work?
...
I try build plugin to communicate with postgresql and I use this commands:
http://www.ldc.usb.ve/docs/qt/sql-driver.html#qpsql-for-postgresql-version-7-3-and-above
(for windows)
I have QT4, and gcc 4.3.3 and windows xp
First command has been executed without errors, but when i run nmake i have these errors:
C:\Qt\2010.03\qt\src\plug...
hello, I have this snippet of the code:
#include <QApplication>
#include <QFont>
#include <QPushButton>
#include <QWidget>
class MyWidget : public QWidget
{
public:
MyWidget(QWidget *parent = 0);
};
MyWidget::MyWidget(QWidget *parent)
: QWidget(parent)
{
setFixedSize(200, 120);
QPushButton *quit = new QP...
Possible Duplicate:
What should I choose: GTK+ or Qt?
What's easier to understand and more natural, faster to master, pleasant to use every day with different languages - the latest version of GTK or QT?
The question may be a bit subjective and hollyWar-ish, but interesting, significant and possible to answer objectively, I b...
I have some embedded QComboBox in a QTableView. To make them show by default I made those indexes "persistent editor". But now every time I do a mouse scroll on top them they break my current table selection.
So basically how can I disable mouse scrolling of QComboBox?
...
Hello.
I'm trying to make a transparent window stays on top (z-order).
I want to implement something like layer that indicates some parameters on the other program.
So what I need is to make background transparent, not whole widget with QWidget::setWindowOpacity function.
I found some documents about it
http://doc.trolltech.com/qq/...
hello, somebody knows where can I find more examples like these ones
http://doc.trolltech.com/4.3/tutorial.html
I want to study qt, but I think that it is not helpful to read all classes from A to Z, need practice, thanks in advance for any help
...
Hello,
Let's say we have the following XML document:
<root>
<options>
...
</options>
<children>
<child name="first">12345</child>
<child name="second">
<additionalInfo>abcd</additionalInfo>
</children>
</root>
I would like to get a string representation of the "child" nodes and appe...
Is there any function or something like that by which I can create totally random strings or numbers?
...
Hi,
I am new to symbian enviroment, i am trying to build an application using QT Symbian, i need to use etel3rdparty.lib and header also , i have included the lib path and include path also, but i am getting a lot of compilation error.
like as follows
from c:\NokiaQtSDK\Symbian\SDK\epoc32\include/e32const.h:9,
from c:\NokiaQtSDK\Symb...
I was wondering what's the best way to go about the following scenario?
I am dynamically creating QSliders that I wish to link to an associated QLCDNumber for display. The thing is I would like to have tenths available, so I would like to have a conversion between the QSLider and the QLCDNumber to divide by 10. At this point all I keep ...
Hi,
I have implemented a list of users in my Qt program, using the model/view principle of Qt. My QListView displays a subclass of QAbstractListModel and so far this works just fine.
Now I would like to customize the display of my user list (display the name on several line, add IP information, and so on: not really relevant, I just wa...
I have used QGraphicsView, QGraphicsScene classes in order to show a picture in a widget like this:
m_Scene->addPixmap(QPixmap(fileName));
m_View->setScene(m_Scene);
How I can show .gif animation in the same scene?
...
Hello all.
I've had this problem for a while now but I have to remedy it as I must tackle it now. I'm trying to detect when a device is connected to the system in windows 7 and I receive the WM_DEVICECHANGE just fine, however the message in wParam is always DBT_DEVNODES_CHANGED. Never a DBT_DEVICEARRIVAL or DBT_DEVICEREMOVECOMPLETE. I ha...
Hi Folks,
I'm trying to User MySQL Connector/C++ with Qt, and had spent hours pulling my hairs on a problem. Here's a SIMPLE code to test out the connection:
int main(int argc, char *argv[]) {
QCoreApplication a(argc, argv);
cout << "aa" << endl;
sql::Driver *driver;
try {
driver = get_driver_instance();
} catch(exception &e) {
...