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 Barry (Yesterday, 3:02pm)

Forum: Qt Programming

0 15

No reply

By qyog (Apr 15th 2014, 9:14pm)

Forum: Qt Programming

0 34

No reply

By qyog (Apr 14th 2014, 8:35pm)

Forum: Qt Programming

0 136

No reply

By John_z (Apr 12th 2014, 1:06pm)

Forum: Qt Programming

0 140

No reply

By deha (May 17th 2010, 9:15am)

Forum: Qt Programming

1 339

By hcaihao

(Apr 10th 2014, 9:47am)

By vjn (Jan 30th 2008, 4:43pm)

Forum: Qt Programming

12 3,259

By buggex

(Apr 8th 2014, 9:15pm)

By John_z (Apr 7th 2014, 1:00pm)

Forum: Qt Programming

0 79

No reply

By aldo85ita (Apr 3rd 2014, 11:39am)

Forum: Qt Embedded, Qtopia, QSA

0 99

No reply

By John_z (Mar 26th 2014, 2:15pm)

Forum: Qt Programming

1 142

By John_z

(Mar 26th 2014, 4:15pm)

By alperyazir (Mar 26th 2014, 12:59pm)

Forum: Qt Programming

0 94

No reply

By Pechugo66 (Dec 17th 2010, 12:24am)

Forum: Tutorials, Tips and snippets

2 810

By marcohekla

(Mar 22nd 2014, 8:12pm)

By sakthipriya (Apr 7th 2008, 6:13am)

Forum: Qt Programming

11 3,106

By Cardinal

(Mar 20th 2014, 7:44am)

By Doug Hoppes (Oct 7th 2010, 2:43pm)

Forum: Qt Programming

1 512

By cecilhope

(Mar 17th 2014, 7:13am)

By stele (Mar 19th 2004, 1:49pm)

Forum: Tutorials, Tips and snippets

5 7,580

By sisirajaya

(Mar 17th 2014, 1:07am)

By qtAnfaenger (Apr 20th 2013, 1:16pm)

Forum: Installing Qt

1 588

By jspayneco

(Mar 15th 2014, 1:28pm)

By ShapeShiftme (Mar 13th 2010, 10:43am)

Forum: Qt Programming

4 2,108

By lifemore

(Feb 27th 2014, 3:27am)

By smosiris (Jan 22nd 2013, 7:50am)

Forum: C++ programming

3 617

By cindy313

(Feb 26th 2014, 7:21am)

By WolfMM (Aug 11th 2007, 4:32pm)

Forum: Offtopic

8 1,799

By mark74

(Feb 17th 2014, 9:20am)

By saubue (Jan 24th 2007, 4:23pm)

Forum: Tutorials, Tips and snippets

1 1,564

By Tretinoin

(Feb 6th 2014, 9:22am)

By aerosujan (May 5th 2012, 2:49pm)

Forum: Qt Programming

4 89

By ramesh

(Feb 5th 2014, 5:36am)

News

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]

[RELEASE] CYOSB - Create Your Own Simple Bot

written by panzy at Tuesday, September 10th 2013, 10:55am

CYOSB – Create Your Own Simple Bot

With this tool you will be able to create your own bot for Windows,
with the intention to help you in as many ways as possible.

It shouldn’t be necessary to install additional software to run this program.
Suggestions and any feedback are highly appreciated, both praise and critique as well as the submission of bugs you found.

Sourceforge page: https://sourceforge.net/projects/cyosb/

Download version 1.0 (with example)
file-upload.net
sendspace.com
mega.co.nz
megafileupload.com

Download version 1.0 (without example)
file-upload.net
sendspace.com
mega.co.nz
megafileupload.co

[ANN] QtitanRibbon 3.1 has been releaseed and available for download!

written by IgorB at Monday, September 9th 2013, 10:55am

QtitanRibbon 3.1 has been releaseed and available for download! Build fixes all known bugs that were found by users as well as an errors caused because of moving to Qt5. Among other things, this version allows to use Qt layout (based on QLayout) for the arrangement of the elements within the Ribbon Group. Now, it is possible to use standard QBoxLayout, QFormLayout, QGridLayout, and QStackedLayout inside Ribbon Group. Support of Office 2013 will be added in version 3.2, which is scheduled for release within the next month.
http://www.devmachines.com/qtitanribbon-overview.html

The newest Photos from the Gallery