Click here to Skip to main content
15,348,920 members
Home / Discussions / C#
   

C#

 
GeneralRe: How can i specify drive specification Pin
PIEBALDconsult1-May-12 10:37
professionalPIEBALDconsult1-May-12 10:37 
GeneralRe: How can i specify drive specification Pin
Wes Aday1-May-12 10:49
professionalWes Aday1-May-12 10:49 
GeneralRe: How can i specify drive specification Pin
PIEBALDconsult1-May-12 11:10
professionalPIEBALDconsult1-May-12 11:10 
GeneralRe: How can i specify drive specification Pin
Wes Aday1-May-12 11:26
professionalWes Aday1-May-12 11:26 
GeneralRe: How can i specify drive specification Pin
PIEBALDconsult1-May-12 11:40
professionalPIEBALDconsult1-May-12 11:40 
AnswerRe: How can i specify drive specification Pin
Bernhard Hiller1-May-12 23:56
MemberBernhard Hiller1-May-12 23:56 
AnswerRe: How can i specify drive specification Pin
Ravi Bhavnani3-May-12 17:16
professionalRavi Bhavnani3-May-12 17:16 
NewsC-- Pin
dsdssdfsdfds1-May-12 6:59
Memberdsdssdfsdfds1-May-12 6:59 
C++
#include <QCheckBox>
#include <QMouseEvent>

class MyCheckBox : public QCheckBox
{
public:
    void mousePressEvent(QMouseEvent *event);
};

void MyCheckBox::mousePressEvent(QMouseEvent *event)
{
    if (event->button() == Qt::LeftButton) {
        // handle left mouse button here
    } else {
        // pass on other buttons to base class
        QCheckBox::mousePressEvent(event);
    }
}

class MyWidget : public QWidget
{
public:
    bool event(QEvent *event);
};

static const int MyCustomEventType = 1099;

class MyCustomEvent : public QEvent
{
public:
    MyCustomEvent() : QEvent((QEvent::Type)MyCustomEventType) {}
};

bool MyWidget::event(QEvent *event)
{
    if (event->type() == QEvent::KeyPress) {
     QKeyEvent *ke = static_cast<QKeyEvent *>(event);
     if (ke->key() == Qt::Key_Tab) {
        return true;
     }
    } else if (event->type() == MyCustomEventType) {
     MyCustomEvent *myEvent = static_cast<MyCustomEvent *>(event);
       return true;
    }
    return QWidget::event(event);
}

int main()
{
}

GeneralRe: C-- Pin
Dave Kreskowiak1-May-12 7:40
mveDave Kreskowiak1-May-12 7:40 
Questionsend data from c# to html Pin
mrx1001-May-12 5:18
Membermrx1001-May-12 5:18 
GeneralRe: send data from c# to html Pin
mrx1001-May-12 7:44
Membermrx1001-May-12 7:44 
GeneralRe: send data from c# to html Pin
Wes Aday2-May-12 1:40
professionalWes Aday2-May-12 1:40 
QuestionDatabase :( Pin
amx_tiger1-May-12 4:07
Memberamx_tiger1-May-12 4:07 
AnswerRe: Database :( Pin
Dave Kreskowiak1-May-12 4:22
mveDave Kreskowiak1-May-12 4:22 
JokeRe: Database :( Pin
Not Active1-May-12 4:51
mentorNot Active1-May-12 4:51 
AnswerRe: Database :( Pin
amx_tiger1-May-12 4:53
Memberamx_tiger1-May-12 4:53 
GeneralRe: Database :( Pin
Dave Kreskowiak1-May-12 7:37
mveDave Kreskowiak1-May-12 7:37 
AnswerRe: Database :( Pin
Eddy Vluggen1-May-12 5:00
professionalEddy Vluggen1-May-12 5:00 
GeneralRe: Database :( Pin
amx_tiger1-May-12 5:04
Memberamx_tiger1-May-12 5:04 
AnswerRe: Database :( Pin
Eddy Vluggen1-May-12 8:41
professionalEddy Vluggen1-May-12 8:41 
GeneralRe: Database :( Pin
amx_tiger2-May-12 10:53
Memberamx_tiger2-May-12 10:53 
QuestionC# Pin
Koushal Dosi1-May-12 0:46
MemberKoushal Dosi1-May-12 0:46 
AnswerRe: C# Pin
PIEBALDconsult1-May-12 3:36
professionalPIEBALDconsult1-May-12 3:36 
AnswerRe: C# Pin
Eddy Vluggen1-May-12 5:01
professionalEddy Vluggen1-May-12 5:01 
AnswerRe: C# Pin
Abhinav S1-May-12 16:35
MemberAbhinav S1-May-12 16:35 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.