qt

Qt- how to set QWidget width

How to set QWidget width? I know setGeometry(QRect& rect) function to do that, but in that case I should use geometry() function to get former parameters of my QWidget, then I should increment the width and use setGeometry(..). Is there any ditect way to say QWidget aa; aa.setWidth(165); //something like this? ...

Qt - Password field

Is there any Qt-built-in method to warn user (with pop-up window) that CapsLock is switched on while password field is active? I am using for passford field QLineEdit (is it good?) with setEchoMode(QLineEdit::Password). ...

Qt - QDialog's "?" button

I create an instance of QDialog and on the left of 'x' (close) button i have also '?' button. How I can disable that '?' ? ...

Qt Jambi: Accessing the content of QNetworkReply

Hi All, I'm having trouble accessing the content of QNetworkReply objects. Content appears to be empty or zero. According to the docs (translating from c++ to java) I think I've got this set up correctly, but to no avail. Additionally an "Unknown error" is being reported. Any ideas much appreciated. Code: public class Test extends QOb...

How to call a c++ function using c && redirect application output to textEdit in Qt

I'm trying to do a couple of things at once. I'm trying to do one major thing: redirect the application output that is displayed in the Qt Creator console to a textEdit that I have on my GUI. However, the class that I need to do this in is written in C and all of its related headers are in C as well. Is there a way that I can redirec...

how to auto enable a signal on my programme window open

i am using QT4 for my c++ programme i want to enable a SIGNAL automatically when my window is open so please tell me how do i enable a SIGNAL when my programme window open. i am new to QT so please give a detail description. Thanks ...

Qt QPainter error. Rotating an ellipse using horizontalSlider. Help?

Well I have to create a simple box which rotates an ellipse and some text depending upon value from horizontalSlider/spinBox. The widget has to be resizable, And size of the ellipse has to change depending upon that. For now only the ellipse is being painted. The text painting will be added if this works. The problem is that if the windo...

In Qt, can I QWebFrame::print() supply additional rendering layers?

I am leveraging WebKit from QWebFrame to convert HTML pages to PDF. Is it possible to apply some additional rendering logic before the page is sent to the QPrinter? What I want to do is to be able to convert links and form controls in HTML to interactive counterparts in PDF, instead of just a vector graphic dump? Thanks a lot for any g...

How can a Symbian based Qt application deploy on Nokia device?

HI, I am new to Qt world. I have made a Symbian based Qt application. Currently its running on emulator. I want to run it on Noika device. If any body can help me to provide the procedure for how to deploy it on Nokia device, that would be great. Thanks, Qtguy ...

What is the mistake in this code

Hey, can you geeks can tell me the solution for this, i have a listview, when i tap on any item,a pop-up list should appear, after that based on the selected item from pop-up list i will update my UI. i have written a code to get the popup list after tapping on any item from my view. my problem is once i tap on any item, will get a p...

How to get USB devices List

I want to get the list of usb devices from the Windows system. I don't know Win 32 programming and all. I am using Qt for development, don't have any idea to solve my problem. I have searched code for that, but I can't find anything. ...

WMI with Qt examples and info

Where can I find more information on and examples of using WMI with Qt? I have no prior experience with WMI. ...

Qt: How to find why QTextEdit is being closed?

Hello everyone, I write a simple MDI text editor using Qt 4. When a text window (MyDoc derived from QTextEdit) is being closed, I want to know whether it is being closed by pressing [X] on that child window or by closing the whole application. Then I will use this info some way (say, I want to issue a message box with an additional ques...

[Qt] Limits of the resource system

Hi, My Qt application depends on Oracle DLLs to start. As it's linked statically for the most part (except for these DLLs), I'd like to embed the DLLs and the EXE into a launcher that would behave like a fully static application (one exe, no DLLs to take along). The launcher would extract the included files in a temp directory, launc...

How to decompress compiled qt resource file with rcc extension?

How to decompress compiled qt resource file with rcc extension? ...

Qt Creator XOpenDisplay undefined reference

Now I am feeling quite stupid. I am trying to do some stuff with xlib in Qt Creator. My code: #include <QtCore/QCoreApplication> #include <X11/Xlib.h> int main(int argc, char *argv[]) { QCoreApplication a(argc, argv); Display *display = XOpenDisplay(NULL); return 0; } Just one line of code and gives me: /main.cpp:8: u...

Cross-platform end-user-help authoring tools

What are some good authoring tools for creating cross-platform help files for end-users? (Our application is using the Qt framework, if that makes any difference.) Note: I'm not interested in internal API documentation--we're using doxygen for that. Ideally, a solution would: Allow us to manage all help content (text, table of conten...

How does one restrict xml with an XML Schema?

I want to restrict xml with a schema to a specific set. I read this tutorial http://www.w3schools.com/schema/schema_facets.asp This seems to be what I want. So, I'm using Qt to validate this xml <car>BMW</car> Here is the pertinent source code. QXmlSchema schema; schema.load( QUrl("file:///workspace/QtExamples/ValidateXSD/car...

QCroreApplication QApplication with WMI

I found some WMI C++ Application Examples in MSDN website. I have tried the code form the below link http://msdn.microsoft.com/en-us/library/aa390423%28v=VS.85%29.aspx when i copied and run the application as win32 console application it worked well. the same code i ut into the Qt application , When i use QApplication anApplication ...

MultiOS "Jet Database" for C++/Qt?

Hopefully I can articulate this well: I'm porting an application I made years ago from VB6 (I know, I know!) to C++/Qt. In my original application, one thing I liked was that I didn't need an actual SQL server running, I could just use MS Access .mdb files. I was wondering if something similar exists for Qt that will work on multiple OSe...