Hi, everyone!
I am a noob in using model/view paradigm in Qt and have the following problem: I have a tree-like structure, that must be visualized via Qt. I found out, that QAbstractTableModel is perfect for my needs, so I write the following:
class columnViewModel : public QAbstractTableModel {
// some stuff...
};
Everything now ...
Hello,
Could anyone tell me how to print the thread id using qDebug() on windows environment of QT.
-Suresh
...
I am writing an application, which shall work with networks.
As a GUI I am using rubyqt.
To determine if a Server is up I have to ping it (with net/ping).
But I ran in to a problem. If the server is down,
the GUI freezes for the timeout, even if I put the code in a Thread or IO.popen loop eg.
Thread.new('switch') do
if Net::PingE...
Is there any reason why a QMenu cannot be added from the Qt Designer? I find it weird that you can add other widget types but not this.
...
Hello, i wanna inherit QLabel to add there click event processing.
I'm trying this code:
class NewLabel(QtGui.QLabel):
def __init__(self, parent):
QtGui.QLabel.__init__(self, parent)
def clickEvent(self, event):
print 'Label clicked!'
But after clicking I have no line 'Label clicked!'
EDIT:
Okay, now I'm usi...
hello,
Is it possible to create an executable for Linux and windows using the same QT code in Linux with Eclipse integration or is it necessary to install QT Creator in my Linux machine?
Waiting for reply
Thanks in advance
vincat.
...
Can i use QT Creator in Linux just to create executable for Windows.???
or is Cross compiler must to use??
I guess QT creator in Linux will be having an option to build code for windows??
if i'm wrong pls do suggest me
waitn for reply...
...
I'm using the Qt library to show a slideshow on the second monitor when the user isn't using the second monitor. An example is the user playing a game in the first monitor and showing the slideshow in the second monitor.
The problem is that when I open a new window in Qt, it automatically steals the focus from the previous application. ...
Hello:
I am looking for a GUI toolkit that is easy to use and cross-platform. Another major requirement of the GUI is that it should support zoom and pan. For example, I should be able to zoom in on a picture and enlarge buttons.
Something like this:
http://eaglemode.sourceforge.net/video.html
But it should have Windows support also...
Say, i need to run a bunch of code that is prone to crash so i need to run it on a different process. Typically i'd do it something like this:
pid = fork();
if (pid == -1) {
std::cout << "Cant Spawn New Thread";
exit(0);
} else if (pid == 0) {
std::cout << "Im a child that will crash\n";
char *foo = (char *) 0xffff...
I've written an application using Qt on OS X. The installed SDK automatically installed as a framework which I didn't want. So I cloned their newest version from the Qt git repository and built it from source as static libraries. I would like it to compile using those static libraries instead of the framework but in preferences in settin...
I have developed a small QT project with Qt Eclipse integration on linux and i would like to make a windows executable file (.exe) for the same project using QT, So, my app could run on both systems.
will my QT with Eclipse as plugin help me to generate .exe in Linux.
pls tel me what is the procedure to get .exe from Linux and what ha...
I'm trying to make the cells of a QTableView look like 3D clickable buttons. So that when you click on a cell, the button looks pushed. Everyone seems to think I merely want to change the colour, I need to show images of a normal button, and a pushed button, that look 3-dimensional.
I have done this already with calling QTableView::setI...
Dear all,
I'm looking to use SCons as my prefered method of building my mainly Qt based applications. I'm just learning SCons and I'm struggling to find documentation or tutorials on the topic. Can anyone point me in the right direction please?
This is a start but is there anything better out there?
(I work mainly on Windows)
Kind ...
Hello,
I have console based QCoreApplication in which has timers and does socket communication and also uses locked mutex . When i close console application manually it gives error saying some Mutex is locked and it is timed out. Is there any way i can do clean up in a console application when user closes it.?
Thanks,
Suresh.
...
I have been tasked with creating a OpenGL scene implementing ideas such as simple movement, and an Arcball interface. The problem I am having is dealing with the rotation matrix which NeHe's Arcball class (http://nehe.gamedev.net/data/lessons/lesson.asp?lesson=48) computes.
What I have so far is a very simple solar system (just the ear...
I need to know in the context of which thread my function is running, is it main GUI thread or some worker thread.
I can't use a simple solution to store QThread pointer in the main function and compare it to QThread::currentThread() because I'm writing a library and I do not have access to the main function. I can of course create Init...
hello...
please tel me what is the difference between
MinGW cross compiler and
GCC Cross compiler.
which is used in which Operating System??
i'm very much in confusion...
I need to create ".exe" in Linux Operating system using QT, hence tel me which is the cross compiler to be used.
Please do reply.
...
With reference to this question, could anybody please explain and post example code of metaprogramming? I googled the term up, but I found no examples to convince me that it can be of any practical use.
On the same note, is Qt's Meta Object System a form of metaprogramming?
jrh
...
boost::bind handles boost::shared_ptr the same way as raw pointers.
QObject * object(new QObject);
boost::shared_ptr<QObject> sharedObject(new QObject);
bind(&QObject::setObjectName, object, _1)( "name" );
bind(&QObject::setObjectName, sharedObject, _1)( "name" );
I would love to have a boost::bind that handles QPointers as raw poi...