Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/76.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
linux级别macOs上按钮元素的qt/gtk/fltk到html之间的差异_Html_Qt_Browser_Graphics_Operating System - Fatal编程技术网

linux级别macOs上按钮元素的qt/gtk/fltk到html之间的差异

linux级别macOs上按钮元素的qt/gtk/fltk到html之间的差异,html,qt,browser,graphics,operating-system,Html,Qt,Browser,Graphics,Operating System,在操作系统级别的mac os和linux上,qt/gtk/fltk与html中的元素按钮有什么区别 例如,我使用qpushbutton #include "mainwindow.h" #include <QCoreApplication> MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent) { //

在操作系统级别的mac os和linux上,qt/gtk/fltk与html中的元素按钮有什么区别

例如,我使用qpushbutton

    #include "mainwindow.h"
     
     #include <QCoreApplication>
     
     MainWindow::MainWindow(QWidget *parent)
        : QMainWindow(parent)
     {
        // Create the button, make "this" the parent 
        m_button = new QPushButton("Qt button", this);
      
        // Connect button signal to appropriate slot
        connect(m_button, SIGNAL (released()), this, SLOT (changeParagraph()));
     }
#包括“mainwindow.h”
#包括
主窗口::主窗口(QWidget*父窗口)
:QMainWindow(父级)
{
//创建按钮,使“this”成为父级
m_按钮=新的QPushButton(“Qt按钮”,此按钮);
//将按钮信号连接到适当的插槽
连接(m_按钮,信号(释放()),此,插槽(更改段落());
}
等效html按钮元素代码

<!DOCTYPE html>
<html>

<head>
    <title>Window example click</title>
</head>
<!-- Main body of code -->
<body>
    <button type="button" onclick="changeParagraph()"> html button</button>

    <p>This text will change when you click the button.</p>
</body>

<!-- Reference our JavaScript event code -->
<script src=”js/onclick.js”></script>

</html>

窗口示例单击
html按钮
单击按钮时,此文本将更改

我的兴趣是了解操作系统级别上两个按钮的区别

当我点击html元素按钮时,我的操作系统作为系统调用登录,还是仅限于应用程序web浏览器firefox

关于