Hello all,
I am using Qt on windows platform.
i want to get and display vendor id and product id of a plugged usb device from my local system.
Below is my full source code to get the vendor id and product id from the usb device.
when i run the my qt application it does not throw me any errors .
so i plug the usb device into the sys...
I'm writing my own 4 state button and I'm not quite sure what to put in the checkStateSet() method, if anything.
Here is what I've got so far:
SyncDirectionButton::SyncDirectionButton(QWidget *parent) :
QAbstractButton(parent)
{
setCheckable(true);
setToolTip(tr("Click to change the sync direction"));
_state = NoSync;
}...
I have a Qt/C++ application, with the usual GUI thread, and a network thread. The network thread is using an external library, which has its own select() based event loop... so the network thread isn't using Qt's event system.
At the moment, the network thread just emit()s signals when various events occur, such as a successful connecti...
Hey all,
Let's take the case of a simple class:
QScriptEngine engine;
class MyClass {
public:
QScriptValue foo(QScriptContext*, QScriptEngine*);
MyClass();
};
QScriptValue MyClass:foo(QScriptContext* context, QScriptEngine* eng) {
//something
}
MyClass::MyClass() {
QScriptValue self = engine.newFunction(this->foo, 0);...
OS: Windows XP/Vista
Qt version: 4.6.1
Using OpenSSL
I need to watch the actual requests and responses that is going through the wire for QHttp requests and responses and in some cases need to interrupt the request. I tried with few of the http debuggers available in the market but they seem to work only for requests that are using the ...
hi,
i'm having QTextEdit widget with large content in it (content is XML).
i want to take the content and set it into a QDomDocument, so i take the content using
document = textEdit->document();
but i dont know how to take it from here into a QDomDocument...
what's the best way to do it ?
...
Nokia realised qt sdk beta. http://www.forum.nokia.com/info/sw.nokia.com/id/e920da1a-5b18-42df-82c3-907413e525fb/Nokia_Qt_SDK.html
Is it possible to run it on archlinux?
Hm, it is able to run, but unfortunately there is too new libpng version in archlinux.
...
Hi,
is it possible to use QStyle to create a menu like the iphone one with qt on symbian?
I want also to add animations.
Below there is an example of what I want.
...
hi,
i'm having QTextEdit widget with large content in it (content is XML).
i want to take the content and set it into a QDomDocument, so i take the content using
document = textEdit->document();
but i dont know how to take it from here into a QDomDocument...
what's the best way to do it ?
...
I've figured out how to use QPainter to draw rectangles. Now I want to have a drawing area where if the user clicks, a 1x1 rectangle is drawn where the mouse pointer is. To accomplish this, I assume I need a transparent Qt widget that supports the clicked() signal.
How do I make such a transparent widget? Or is there something else I ca...
Hi
I am using QWebView from PyQT4. I'd like to
highlight terms of a webpage.
do a keyboard navigation inside a webpage (for example Ctrl-N move to next link)
is it possible?
...
Hi
I'd like to register a system shortcut for my application. For example:
Shortcut 1: minimize application to
tray
Shortcut 2: open my minimized
application
Shortcut 3: do some function...
I want to do each without having focus in my application
is it possible?
...
I have a class derived from QGraphicsView, which contains QGraphicsItem-derived elements. I want these elements to change color whenever the mouse cursor hovers over them, so I implemented hoverEnterEvent (and hoverLeaveEvent):
void MyGraphicsItem::hoverEnterEvent(QGraphicsSceneHoverEvent* event)
{
update (boundingRect());
}
Howe...
First off: I'm new to both Qt and SWIG. Currently reading documentation for both of these, but this is a time consuming task, so I'm looking for some spoilers. It's good to know up-front whether something just won't work.
I'm attempting to formulate a modular architecture for some in-house software. The core components are in C++ and e...
Hi, i'm new to Qt, i just install all in one QT-SDK beta with QT-creator as described here. I tried to import PhoneGap example files from there (I use Qt-creator coz when I try to do it on Carbide, as described, it said that my EPOCROOT is wrong, but it isn't). When I want to debug or run project it said that there are some files missing...
Hi,
I don't know if this question would fit better on superuser.com, but since it's rather compiler related, I give it a try here.
I have to use Qt with a specific version of gcc (4.5). I downloaded the last official Qt release for Windows (Vista, 32 bits version) and didn't install the shipped MinGW version; I just installed the Qt li...
Hi,
Please help.
How can i remove index from QTableWidget
...
Hello
im trying to programmatic select and change the background color of all the columns of QStandardItemModel
i have this that paint me only the first column out of 5 that the row contains
// getting the rows
QStandardItem* standardItem = m_model->item(i);
//set the color i like all the row to be painted
standardItem->setBackground(Q...
I'm working on an application developed with Qt 4.6.2. I'm linking dynamically and I don't want to share my source code. The application is totally free and I don't plan on selling any part of it.
I did not make any changes in the Qt library, I'm only using it to develop the application... I just want to share my free application, witho...
Hello
i have this code in QT and all i want to to catch the clicked event when some one clicking in one of the treeview rows without success
here is my code:
(parant is the qMmainwindow)
m_model = new QStandardItemModel(0, 5, parent);
// then later in the code i have
proxyModel = new QSortFilterProxyModel;
proxyModel->setDynamicSor...