I have problem with Qt::Tool flag. When I create new widget with Qt::Tool flag it appears on top of the main window. But when I switch back to main window and make it active the I still have the tool widget in front so it my main window is not fully visible.
Qt::WindowStaysOnTopHint is not active.
Just in case - environment is KDE4
Th...
I'm attempting to use QtWebKit (specifically, a QWebView widget) to display a web page that contains an ActiveX control. On my first attempt, the ActiveX control doesn't appear to be loading. I'm wondering if QtWebKit actually supports ActiveX controls, and I can't immediately find any documentation that gives an answer one way or anot...
Hello, I have some trouble with Qt.
I have a class 'Core'
class Core {
public:
static QString get_file_content(QString filename);
static void setMainwindow(Ui::MainWindow const *w);
private:
static MainWindow *main_window;
};
and class 'MainWindow' in namespace Ui:
namespace Ui {
class MainWindow...
I am trying to create this QT gui using a thread but no luck. Below is my code. Problem is gui never shows up.
/*INCLUDES HERE...
....
*/
using namespace std;
struct mainStruct {
int s_argc;
char ** s_argv;
};
typedef struct mainStruct mas;
void *guifunc(void * arg);
int main(int argc, char * argv[]) {
mas m;<br>
m.s_argc =...
Hello.
Qt library includes advanced meta-programming capabilities using they own preprocessing moc compiler. Does anyone knows, is it possible to create some kind of mix-ins via it? For example, i have a QString and want to add a method to it without sub-classing and changing existing code. Does Qt have such solutions for that?
...
How to make QTextEdit to be resized in a QWidget while the QWidget is being resized? Should I overload resizeEvent functin for the QWidget?
...
I am puting a QWidget and a QTabWidget next to each other in one horisontal splitter. And the splitter loses it's shape, you can know that there is a splitter only by hovering mouse on it. How to make it visible?
Thanks.
...
I'm sending post requests to a Pylons server (served by paster serve), and if I send them with any frequency many don't arrive at the server. One at a time is ok, but if I fire off a few (or more) within seconds, only a small number get dealt with. If I send with no post data, or with get, it works fine, but putting just one character of...
I'm extending a QPlainTextEdit.
When I double click on a word containing a pipe char ex : {"foo"|upper|reverse}
the whole text is surrounded.
I'd like to exclude the pipe char "|" from the selection and don't know what to do
Is there a way to change the behavior of QTextCursor::WordUnderCursor?
I'd like that char to act the same as a ...
I want the top header to span on 2 or 3 bottom header column.
Is there a way to do so in Qt c++?
I'm looking for an exemple.
thank you.
...
I have a Qt script (barchart.qs) that creates a graph for me. I don't know how I can incorporate (i.e. show the graph) in my Qt mainwindow. Can someone please help me look at the code and what its outputs are? I tried engine.evaluate, but I don't know what is the QScriptValue I'm getting in return. Thanks sooo much.
This is the script:
...
What is the correct type to use in Qt development (or C++ in general) for decimal arithmetic, i.e. the equivalent of System.Decimal struct in .Net?
Does Qt provide a built-in struct? (I can't find it in the docs, but maybe don't know where to look.)
Is there a "standard" C++ library to use?
...
I'm trying to unit test a class that inherits QObject; the class itself is located up one level in my directory structure. When I build the unit test I get the standard unresolved errors if a class' MOC file cannot be found:
test.obj : error LNK2001: unresolved external symbol "public: virtual void * __thiscall UnitToTest::qt_metacast(...
What is the correct interpretation of the following segfault messages?
segfault at 10 ip 00007f9bebcca90d sp 00007fffb62705f0 error 4 in libQtWebKit.so.4.5.2[7f9beb83a000+f6f000]
segfault at 10 ip 00007fa44d78890d sp 00007fff43f6b720 error 4 in libQtWebKit.so.4.5.2[7fa44d2f8000+f6f000]
segfault at 11 ip 00007f2b0022acee sp 00007fff368ea...
Can I use Qt stylesheets with a derived widget? I'd like to be able to define some custom properties on the widget (like various colors) and be able to define their value in a stylesheet.
Is this possible?
...
Hi,
I want to open Directory and file using the same function. Is it possible to do the same in QT.
I used
QString directory = QFileDialog::getExistingDirectory(this, tr("Open Directory"),
"",
QFileDialog::ShowDirsOnly
| QFileDialog::DontResolveSymlinks);
Here i can open only directory.
How to open both file and direc...
I wrote the server site call in Qt, but i haven't get the server response for every server invoking. I have to use the server reply to continue the program flow.
The request is correctly reached to server and server do reply.The server is also on my machine.
Here is the code how i make the server site call;
QNetworkAccessManage...
Hi,
I want to keep digital signature on each video i recorded, so that when that video is playing in any player it have to show video with the signature. I want to keep an image in transparent form same like channel logo on each video showing in channels.
I am using directshow
...
I have a parametric curve, say two vectors of doubles where the parameter is the index, and I have to calculate the angle of the tangent to this curve at any given point (index).
Any suggestion or link about how to do that?
Thanks.
...
This is my header:
#ifndef BARELYSOCKET_H
#define BARELYSOCKET_H
#include <QObject>
//! The First Draw of the BarelySocket!
class BarelySocket: public QObject
{
Q_OBJECT
public:
BarelySocket();
public slots:
void sendMessage(Message aMessage);
signals:
void reciveMessage(Message aMessage);
private:
// QVector<M...