Alright, I have a really basic QStandardItemModel, filled with some numbers. I managed to display it in a QTableView, it's ok. I created a new model ( subclass either of QAbstractItemModel or QAbstractProxyModel ), which is some kind of a layer of an existing model - it is needed to set the sourcemodel, and this new layer should do some ...
We're going to running remote GUI on a few PCs, all communicating with a central server where the main application is running. Instead of hacking our own manual network protocol and marshalling layer for button presses and various events, my hope is that this could be solved more cleverly somehow.
Indeed, it'd be nifty if you could auto...
I have my class X which inherits from Qt's class Base. I declared and defined void mySlot() slot in my class X and I'm connecting some signal to this slot in X's constructor. However, when running my program I get an error message saying there's no such slot as void mySlot() in the class Base.
Why is the code generated by Meta Object Co...
I'm making use of Q_PROPERTYs in my project, and I'm trying to figure out the best way to add some attributes to those properties (like min and max value).
It doesn't look like there's any where to store such attributes on the property itself... so I guess I have to store it on the object... statically, since the ranges will be the sam...
In Python and Pyqt - I've got a simple class which instantiates a Label class and a GroupBox class.
According to docs, passing the Groupbox to the Label upon creation should make the Groupbox the parent of Label. However, I must be missing something simple here. When I create the GroupBox it's fine, when I create the Label however - it...
Hello,
I'm essentially trying to make a DNS proxy application using Qt4. If I set my DNS nameserver to 'localhost' then I want to forward all DNS requests to the server specified in the remoteSocket object. Everything seems to be working fine except sending the data from the remoteSocket object back to the localSocket object which is ...
Hi folks,
I have next situation: I need to create widget in standalone static library, which then will be linked with final application (visual c++ 9.0, qt 4.5).
This static widget library contains some resources (icons), and consist of a several .cpp files (each contains standalone widget). As far as I know, i must initialize qt resour...
Hello, I have been working on learning C++ and Qt4 recently, but I have hit a stumbling block.
I have the following class and implementation:
class Window : public QWidget
{
public:
Window();
public slots:
void run();
private:
//...
};
and
Window::Window()
{
//...
connect(runBtn,SIGNAL(clicked()),this,SLOT(run...
When I compile my Qt Maemo application in Scratchbox 1, all of the image resources appear completely messed up and corrupted, and the program runs extremely slow. This only happens for the armel target, and works fine in i386.
I also get these errors at the console:
X Error: BadDrawable (invalid Pixmap or Window parameter) 9
Major op...
can anyone please help me with a tutorial for integrating Qt and OpenCV on eclipse IDE? (windows).
Qt works just fine, OpenCV works just fine,
but together - no good..
I'm losing my mind here..
Thanks!
...
I'm interested PyQt4. Thanks
...
I would like to draw texts in one of the columns in a QTreeView widget using a custom color (depending on the data related to each row). I tried to overload the drawRow() protected method and change the style option parameter like this (a stripped-down example):
virtual void drawRow(QPainter* p_painter, const QStyleOptionViewItem& optio...
How do you embed a vpython plot (animated) within your Qt GUI? so that it has its own display area and would not need to created a new window anymore.
...
I am writing a DNS server for an application I'm working on and I'm running into some difficulties.
I want to bind to port 53 on localhost and listen for DNS lookup requests, then send back the response. Unfortunately, when I call QUdpSocket::bind() the resulting socket is not writeable. Is there a flag I need to pass to make it so I ...
This is a rather strange situation here. I have a class which derived from QGraphicsScene
class DrawingScene : public QGraphicsScene
{
...
}
Whenever I add any item within the derived class, the item ended up attaching to a parent of 0x0. The thing is that despite that, the graphics item appearing within the scene as normal, and ca...
Hi,
I have been involved in building a custum QGIS application in which live data is to be shown on the viewer of the application.
The IPC being used is unix message queues.
The data is to be refreshed at a specified interval say, 3 seconds.
Now the problem that i am facing is that the processing of the data which is to be shown is t...
What is the name of the control that combines the function of a button and a combobox? Visual Studio's open file dialog has this control for the "Open" button. You can select "Open" or "Open With". But once you select an action, the corresponding action is taken.
Lastly, is this control available as a standard control in .NET or in Q...
Hi all,
I am trying to set the text of line editor in Qt on linux. It works for all but 2 line editors which for some strange reason don't display the text even when we set the text using
mValueLineEdit->setText("Hello")
I have debugged each and every line of code in my application but nothing fishy was found.I checked after setting ...
Hello
This question is already asked in this forum but I don't understand the concept.
I was reading around and it seems that signal and slots are implemented using function pointers i.e the signal is one big function which inside it calls all connected slots (function pointers). Is this correct? And what is the role of the generated m...
Hello, I have a PCRE format regular expression:
<a\s*href=\"([^<]*)\"([^<]*)\((.*?)\)\">
but i can not use it in QT, how can i
convert it to QRegexp format to make it work in QT.
Thanks
...