Hi
for some time I am fiddly now to get a massive time/cputime drain action running behind a nicly responding UI. Unfortunatly I can't seem to get it running and "I think" the problem is that the slot is not processed in the QThread worker but the GUI thread. The ThreadIDs differ as expected though.
I allready read this http://doc.trol...
I'm new to Qt as of a few weeks ago. I'm trying to rewrite a C# application with C++ and have a good portion of it figure now. My current challenge is finding a way to detect the system idle time.
With my C# application, I stole code from somewhere that looks like this:
public struct LastInputInfo
{
public uint cbSize;
public u...
Hi,
I work on a Qt application in an embedded system and I only have a remote on which the main key is Key_space.
So, I would like to have a QComboBox on which you can select an item when pushing the Key_space button.
How to do it ? Maybe I should inherit from QComboBox and redefine keyPressEvent ?
...
I have been stumbling through some different steps to do this. I ran the qt3to4.exe on the files with compile errors and got though a lot of conversion steps, however now I am getting this error:
1>c:\qt\4.7.0\src\qt3support\widgets\q3toolbar.h(64) : error C2039: 'ToolBarDock' : is not a
member of 'Qt'
and 55 other similar errors. This...
I want to display googlemap location details in a info window and a button inside the infowindow, so that after clicking that button, a new QMainwindow will display.
At this point of time I am only able to show the default infowindow with close button.
Is it possible to add a clickable event inside the infowindow.
...
Hopefully this isn't too stupid but I want to make sure I'm doing this right.
Some Qt functions return Qt objects as values, but we may want to store them in a pointer somewhere. For example, in QDomDocument, the function documentElement returns a QDomElement, not a pointer to it. Now, as a member of my class I have:
QDomElement *lis...
Im a .net developer , i have studied a course in C followed by one in C++ before as an introduction to Programming, i want to learn Qt, im not sure if it is even possible for me to start right away read a book in Qt or should i start reading a book in C++ first !
Do you think that a Senior C# developer would be able to learn Qt by readi...
I have 2 different QMainWindow, the first is the parent of the second. I want press some keys in the children windows and propagate the event in the parent. I create for everyone the function void keyPressEvent(QKeyEvent* event); but when i press key on the children the event is not propagate to the parent. Why?
This is the code...
//P...
I got stuck with pointer to const QList of pointers to Foo. I pass pointer to myListOfFoo from Bar object to Qux. I use pointer to const to prevent making any changes outside Bar class. The problem is that I'm still able to modify ID_ executing setID in Qux::test().
#include <QtCore/QCoreApplication>
#include <QList>
#include <iostream>...
I'm writing a wrapper in .NET (C++/CLI) to be able to use some native C++ Qt code in .NET. How can I map a Qt signal into a managed .NET event, so that when my Qt code fires off a signal, I can bring this forward to the .NET code.
My Managed class defines the event, but if I try to use the normal QObject::connect method to hook up to th...
If it doesn't then how can i explicitly force it to download async. in a separate thread?
...
How do i set a custom background color for certain rows in a QFileSystemModel applied on a QTreeView?
...
Has anyone had success compiling QJson statically into an application? I am trying to use QJson statically in my Qt application (Windows/Mac), meaning I'm trying to use the source files directly rather than compiling a DLL and using it. Is this possible? My program is producing lots of errors when I attempt to do it, mostly "multiple dec...
I needn't use the QT's dlls and I want to use libs, when I run exe.How can I do this?
...
Hi,
Is it possible to customize the default QMessageBox in Qt, so that it'll look like iPhone's messageBox control.
And also is it possible to display it in the middle of the screen like that of iPhone.
Thanks...
...
I found myself in the need of having to call a slot directly. I think it's perfectly fine doing it as long as it makes sense in your design. What do you think?
Thanks
...
My application consists of a WebView widget. A mouse click on the widget is not handled by the mousePressEvent() of my application, but by the WebView widget. So, I installed an event filter to receive the events. Now, I get notified of all events, except the mouseReleaseEvent for the right click (Everything works fine for left clicks an...
Does anyone know if there is some registry key or mechanism in Automatic Update for Vista that causes it to select default replies on dialog boxes when the program is closed?
I have a program that presents a dialog box to a user when they shut down or log off, but for some reason after automatic updates are ready to be installed, if the...
I am pretty new to Qt and I have just started looking at QML. There are some sample applications included with the Nokia Qt SDK for Symbian and I have managed to load them into Qt Creator and run them using the QML Viewer application on the desktop.
I would like to try some of the samples out on a device, but I am totally clueless as t...
I have a delegate to create a QLineEdit control when you want to edit a cell in my subclass of QTableView. In the data function of my model, I recently added a case to return an icon for Qt::DecorationRole for some items.
As the user edits a cell that has an icon, the value they enter may cause the icon to disappear. That is all worki...