You are not logged in.

Portal

Dear visitor, welcome to QtForum.org. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

News overview

Last news

Last threads

The newest Posts in forum

Topic
Replies
Views
Last post

By darthsydwayz (Today, 3:02am)

Forum: C++ programming

0 22

No reply

By nik02 (Apr 29th 2014, 5:52pm)

Forum: Qt Programming

2 1,539

By nik02

(Jul 18th 2014, 11:21pm)

By te777 (Jul 14th 2014, 5:04am)

Forum: Qt Programming

0 1,412

No reply

By xwing (Jul 1st 2014, 2:58pm)

Forum: Qt Programming

1 9,363

By pele1410

(Jul 10th 2014, 12:41pm)

By Bereziuk_John (Jul 9th 2014, 2:28pm)

Forum: Qt Programming

0 2,549

No reply

By ssd92 (Jul 8th 2014, 7:25pm)

Forum: Qt Programming

0 2,082

No reply

By jimmiemenon (Jul 8th 2014, 8:58am)

Forum: Offtopic

0 3,853

No reply

By jimmiemenon (Jul 2nd 2014, 6:52am)

Forum: Offtopic

0 5,406

No reply

By allopen (Jun 30th 2014, 11:26am)

Forum: Qt Programming

0 4,375

No reply

By sarina (Jun 27th 2014, 5:13pm)

Forum: Qt Programming

0 9,803

No reply

By Tcll (Jun 13th 2014, 3:30pm)

Forum: Qt Programming

1 7,863

By Tcll

(Jun 27th 2014, 4:18am)

By synpro85 (Jun 26th 2014, 2:58pm)

Forum: Qt Programming

0 5,740

No reply

By jimmiemenon (Jun 26th 2014, 9:50am)

Forum: Offtopic

0 9,777

No reply

By sarina (Jun 24th 2014, 2:38pm)

Forum: Qt Programming

0 6,740

No reply

By Vijay.bhayani (Jun 14th 2013, 12:08pm)

Forum: C++ programming

2 20,840

By pitonyak

(Jun 20th 2014, 8:00pm)

By rostef (Jun 20th 2014, 3:29pm)

Forum: Qt Programming

0 3,950

No reply

By dunnie (Jun 18th 2014, 7:59pm)

Forum: Qt Programming

0 3,642

No reply

By aruna (Jun 17th 2014, 2:12pm)

Forum: Qt Programming

0 3,902

No reply

By tavi (May 6th 2009, 10:06am)

Forum: Qt Programming

6 10,938

By aliks-os

(Jun 16th 2014, 7:14pm)

By avpro (Jun 15th 2014, 7:51pm)

Forum: Qt Programming

0 3,694

No reply

News

re than 10 times, unity coordination and command, unified
distribution clues, unified action to close the net, ensuring combat
effectiveness, focus on the detection of a meat processing plant in Liaoning
liter Thai King and selling toxic and hazardous mutton roll case, California,
New York Lin Young large manufacturing and selling the meat of diseased pigs
and a number of criminal cases major cases. At the same time, adhere to
balanced, according to local conditions, overall progress, focused on the
detection of a large number of manufacturing and selling counterfeit and
shoddy, poisonous cooking oil, health care products, condiments, drinks and
other criminal cases. According to the person in charge of the Ministry of
Public Security, in recent years, the public security organs remain crime
crackdown on food high pressure situation, together with relevant departments
to carry out a series of strikes, some of the outstanding issues have been forceful
and timely remediation, but the influence of various factors, the current food
safety crime remains prominent, and the emergence of some new situations and
new features. Public security organs at all levels to maintain a high degree of
vigilance, and always adhere to "highlight the types of crimes, it is the
focus on the types of crimes",
Outsource
customer satisfaction surveys Services
in time, take the initiative
to prevent the formation of large hazards. The first phase focused on special
operations in the fight against crime detection Battle of meat is important for
the deployment of a new field of criminal cases occur meat made current. From
the investigation situation, engaged in such criminal activities, both small,
poor processing hygiene conditions, serious non-compliance with food safety
standards "black workshop", there are large-scale, production, supply
chain integrity, and there are regular production qualification of "black
factory ", highlights some of the criminals greed, resort to various means
to...[Read on]

Porting Qt Application between development environments

written by CarmelDave at Tuesday, April 29th 2014, 5:46am

Relatively new with Qt and have been handed a Qt application targeting an embedded ARM processor with graphics hardware, etc. Current Qt project is on Linux - have been asked to move the development environment to Windows (still targeting the same embedded ARM which has its own tool flow gnueabi...)

Any suggestions on how to move the project over? Currently uses qmake under the vendor specific embedded environment.

Thanks

help in browser project

written by AliOsm at Tuesday, November 12th 2013, 5:23pm

Hello every body , I'm new in qt but I hope to learn it




I'm started browser project and it running well but there is one problem

The browser is open all the links except facebook "www.facebook.com" and youtube "www.youtube.com"

I don't know Why but I hope that you help me

Knowing I'm using "WebView" in the project ...



that's everything

bye :)

How to process QDBusMessage reply

written by EssM at Thursday, October 31st 2013, 9:20am

Hi All,

I have done the following:-

QDBusMessage messg = QDBusMessage::createMethodCall(service,path,interface,method);

//method here returns a{sv} type i.e map {String,Variant}

QDBusMessage reply = bus.call(messg);

Now i want to store the reply in a data structure and then search for a particular Object Path. Can anyone please help me on this? Which data structure do i need to use? Do i have to do unmarshalling for it?

Redirecting std::cout, std::cerf, qDebug to QTextEdit

written by jamesst20 at Tuesday, October 29th 2013, 10:17pm

Hi,

Starting from here : Redirecting cout,cerr to qDebug I have made a few changes so you can redirect std::cout, std::cerf, qDebug to QTextEdit.

Hopefully it's going to help a lot of people :)


How to use ?

Source code

1
2
new Q_DebugStream(std::cout, ui->TXT_Console); //Redirect Console output to QTextEdit
Q_DebugStream::registerQDebugMessageHandler(); //Redirect qDebug() output to QTextEdit


Yep this is as easy as inserting this in your code ! :)


Insert this Q_DebugStream.h header and you're ready to go!

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
#ifndef Q_DEBUGSTREAM_H
#define Q_DEBUGSTREAM_H

#include <iostream>
#include <streambuf>
#include <string>

#include "QTextEdit.h"

class Q_DebugStream : public std::basic_streambuf<char>
{
public:
    Q_DebugStream(std::ostream &stream, QTextEdit* text_edit) : m_stream(stream)
    {
        log_window = text_edit;
        m_old_buf = stream.rdbuf();
        stream.rdbuf(this);
    }

    ~Q_DebugStream()
    {
        m_stream.rdbuf(m_old_buf);
    }

    static void registerQDebugMessageHandler(){
        qInstallMessageHandler(myQDebugMessageHandler);
    }

private:

    static void myQDebugMessageHandler(QtMsgType, const QMessageLogContext &, const QString &msg)
    {
        std::cout << msg.toStdString().c_str();
    }

protected:

    //This is called when a std::endl has been inserted into the stream
    virtual int_type overflow(int_type v)
    {
        if (v == '\n')
        {
            log_window->append("");
        }
        return v;
    }


    virtual std::streamsize xsputn(const char *p, std::streamsize n)
    {
        QString str(p);
       
...[Read on]

The newest Photos from the Gallery