Draw html page using the QPainter
How i can draw html page? QWebView *view = new QWebView(); view.Load(Url("http://www.google.com")); QPrinter printer = new Qprinter(); How I can draw this view? ...
How i can draw html page? QWebView *view = new QWebView(); view.Load(Url("http://www.google.com")); QPrinter printer = new Qprinter(); How I can draw this view? ...
Hi, I am opening a page in QtWebView (in PyQt if that matters) and I want to open all links in the system default browser. I.e. a click on a link should not change the site in the QtWebView but it should open it with the default browser. I want to make it impossible to the user to change the site in the QtWebView. How can I do that? T...
I am working on a mapping application and need to display the data objects using a table, a form and as graphical objects in the map. I'm using PyQt, but that's not really important as this is a Qt question not a Python question. If I only needed the table and form views this would be easy, I'd just use the Qt Model/View framework. Howe...
I have a QCheckbox in a grid layout defined as such: self.isSubfactorCheckbox = QtGui.QCheckBox('Is &subfactor', self) By default the checkbox is to the left of the "Is subfactor" text. I wish to move it to the right of the text. I've tried playing around with subcontrol-position but to no avail. self.isSubfactorCheckbox.setStyleShe...
I am trying the following in PyQt4, using SQLAlchemy as the backend for a model for a QListView. My first version looked like this: class Model(QAbstractListModel): def __init__(self, parent=None, *args): super(Model, self).__init__(parent, *args) def data(self, index, role): if not index.isValid(): ...
Hi - I was just wondering is that possible to use my existing MFC creadted DC to associate with QPrinter so that it directly uses this existing DC rather creates its own with QPrintDialog?? Does Qprinter also does backing store as Qwidget does?I mean does this creates an offscreen image before printing? Regards, Harris ...
I'm writing testing code that will automatically iterate thru all Q_PROPERTY's of widgets and some properties are using types that are registered via qRegisterMetaType. If i want to read/write these into QVariant i need to use QVariant::UserType when storing them into variant. So far so good. But when i want to test reads and writes of ...
i used qt to make an application in the tray. on my pc its a good project and i see the icon in the traybar, but when i release it to give it to sombody else they dont see the icon, its just an invissible square that can be used but it dont show the icon. but on my pc it shows the icon. :S i know it sounds weird but does anybody know how...
Hello, I have a C++ application which dynamically loads plug-in DLLs. The DLL sends text output via std::cout and std::wcout. Qt-based UI must grab all text output from DLLs and display it. The approach with stream buffer replacement doesn't fully work since DLLs might have different instances of cout/wcout due to run-time libraries dif...
hi; I have a C++ code (mini search engine). I wanna make GUI.But i don't know how to add my code to the QT to create the GUI . note:my code contains (test.cpp , linkedlist.h , table.h) thanks. ...
Hello, Short story: does Qt 4 have an analog of Python's os.path.join? Long story: I need to add a relative path to the application directory, QCoreApplication::applicationDirPath() in the Right Way (TM), so that the code doesn't depend on the file system directory separator character. Is merely joining QStrings and using "/" as the s...
Hello, We have ListView.Groups in .NET. Is there an equivalent in Qt (without using Windows APIs)? I am unable to find anything that indicates support for this in the documentation for Qt. Example in Windows Vista/7: http://i50.tinypic.com/zumgyg.jpg Thanks in advance! ...
hello, I tried to install qt-sdk, but every time while unpacking I receive an error Extract: error Extract: error ... qtcreator-debug.ini somebody knows why, thanks in advance I have this file qt-sdk-win-opensource-2010.04.exe I'm working with windows ...
hello, everybody, I'm beginner in programming, I've just finished my course on C++, I want to train my skills and try to write some programs on C++ with graphic windows (not console programs, I did it during all my course), I want to start working with QT, is it good idea, or I need to begin with something simplier, thanks in advance ...
http://qt.nokia.com/downloads/ has links to both. I get that Nokia version has phone emulators and related stuff. Is there anything else? I'm just starting to work with Qt and am not too interested in phone applications at the moment. ...
I have the following code, and I would like to add some HTTP header info along with the call. Anyway that I can do that? void NeoAPI::call(QString apiCall) { if (this->ApiCall.contains(apiCall)) { QNetworkAccessManager* manager = new QNetworkAccessManager(0); connect(manager, SIGNAL(finished(QNetworkReply*)), this,...
Greetings , I my QT application,I have a base class as follows.I am using QObject because I want to use Signal-Slot mechanism in all derived classes. class IRzPlugin : public QObject { public: virtual void registerMenu(QWidget*); virtual void execute(); } Then I have another class as follows.I need to extend from QWidget because...
I want Qt software to be cross compiled for powerpc architecture on windows machine.on,linux machine i am able to do this task by giving the exact qmake specification for xplatform option. but i am not able to this from windows machine. i had powerpc tool chain installed on my windows machine. please tell me in detail how i can cross ...
I'm writing a GUI application, using Qt, which links to a third-party DLL that sometimes sends error messages to stderr. I'd like these error messages to be displayed in a window within my GUI. I couldn't find an established way to redirect stderr (as opposed to std::cerr) even after much searching, so I wrote the following class myself...
How to remove item from QQueue at index i. ...