ICode9

精准搜索请尝试: 精确搜索
  • 二进制文件读取2022-06-02 19:02:53

    界面 代码 qwcomboboxdelegate.h qwcomboboxdelegate.cpp qwfloatspindelegate.h qwfloatspindelegate.cpp qwintspindelegate.h qwintspindelegate.cpp mainwindow.cpp

  • Qthread实例2022-05-29 10:02:47

    pyqt5 Qthread实例 窗口ui,qtdisgner生成 from PyQt5 import QtCore, QtGui, QtWidgets class Ui_MainWindow(object): def setupUi(self, MainWindow): MainWindow.setObjectName("MainWindow") MainWindow.resize(986, 245) self.cent

  • QTable添加复选框2022-05-27 15:04:28

    效果 mainWindow.h #ifndef MAINWINDOW_H #define MAINWINDOW_H #include <QWidget> #include <QListWidget> #include <QStringList> #include <QString> #include <QDebug> #include <QListWidgetItem> #include <QGridLayout> #

  • 520表白小程序设计Python代码详解(PyQt5界面,B站动漫风)2022-05-23 12:04:18

    摘要:介绍一个动漫风的表白小程序,界面使用Python以及PyQt实现,界面样式经过多次美化调整,使得整体清新美观。本文详细介绍代码设计和实现过程,不仅是居家表白必备,而且适合新入门的朋友学习界面设计,完整代码资源文件请转至文末的下载链接。本博文目录如下: 目录前言1. 准备工作(一)设计

  • Qt-QPropertyAnimation的使用(支持放大、移动、透明动画)2022-05-20 19:05:07

     相关资料: https://download.csdn.net/download/zhujianqiangqq/85424062      csdn代码包下载 .pro 1 QT += core gui 2 3 greaterThan(QT_MAJOR_VERSION, 4): QT += widgets 4 5 CONFIG += c++11 6 7 # The following define makes your compiler emit w

  • PyQt5-界面跳转2022-05-02 20:03:51

    PyQt5-界面跳转 代码 import pymysql import sys from single_insert import Ui_MainWindow from Register import Ui_Form from PyQt5.QtWidgets import QApplication,QMainWindow,QMessageBox,QWidget class Run_MainWindow(Ui_MainWindow, QMainWindow): def __init__(se

  • QT5笔记:3.手动撸界面和可视化托界面混合2022-05-02 14:31:14

    3.手动撸界面和可视化托界面混合 参考视频:https://www.bilibili.com/video/BV1AX4y1w7Nt 3.1 工具栏可以通过在UI界面右键选择添加工具栏 3.2 设置窗口中心内容 setCentralWidget // https://blog.csdn.net/u012627502/article/details/38613041 //一个Qt主窗口应用程序

  • 单例-WPF2022-04-11 14:32:41

    1.新建WPF项目,然后引用Microsoft.VisualBasic  2.删除原生的App.xaml,建立WpfApp类,并使该类继承自Application,在该类中实现WPF MainWindow 窗体的创建工作 public class WpfApp:System.Windows.Application { private Action<string> SetTime; private T

  • Qt 线程中发射信号无响应问题2022-04-02 13:34:48

    下面是正常情况代码,将界面对象类的this指针传入到线程中,在一个工作者线程中调用此类的信号,对象的槽函数能够正常响应。 #include "mainwindow.h" #include "ui_mainwindow.h" #include <QtConcurrent> MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent),

  • QT-定时器2022-04-02 01:34:20

    #ifndef MAINWINDOW_H #define MAINWINDOW_H #include <QMainWindow> #include <QTimerEvent> QT_BEGIN_NAMESPACE namespace Ui { class MainWindow; } QT_END_NAMESPACE class MainWindow : public QMainWindow { Q_OBJECT public: MainWindow(QWid

  • Metro UI库2022-04-01 12:01:05

    WPF 皮肤之MathApps.Metro UI库   在WPF中要想使用Metro风格是很简单的,可以自己画嘛.. 但是为了节省时间,哈,今天给大家推荐一款国外Metro风格的控件库。 本文只起到抛砖引玉的作用,有兴趣还是推荐大家上官网,Thanks,官网地址 我会在底部发出。 使用步骤 一、使用Nuget包管理,添加引

  • QT-信号和参函数的细节用法2022-03-31 13:31:25

    文件目录 Teacher.h #ifndef TEACHER_H #define TEACHER_H #include <QObject> class Teacher : public QObject { Q_OBJECT public: explicit Teacher(QObject *parent = nullptr); signals: void hungry(QString foodName); void hungry(); }; #en

  • pyside6快速开始2022-03-28 17:01:44

    目录结构: UI_MAIN.py # -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'd:\pycode\eng\UI\MAIN.ui' # # Created by: PyQt5 UI code generator 5.15.6 # # WARNING: Any manual changes made to this file will be lost when pyu

  • QPushButton2022-03-27 14:31:24

    ` include "mainwindow.h" include "ui_mainwindow.h" include <qpushbutton.h> MainWindow::MainWindow(QWidget *parent) QMainWindow(parent) // 初始化列表 , ui(new Ui::MainWindow) { ui->setupUi(this); QPushButton * b = new QPushBu

  • 【QT编程】—— 揭秘MainWindow::MainWindow(QWidget *parent): QMainWindow(parent), ui(new Ui::MainWindow)2022-03-26 02:32:05

      刚创建一个qt工程项目后,我被中间的一个文件给吸引住了目光。因为这个语法我没看懂(这个继承了QMain类之后出现的是什么东西。。。跟随的初始化列表ui(new Ui :: MainWindow)初始化的是什么),带着刨根问底的心思我对它展开了分析。下面贴图:       首先来拆解 ui(new Ui :: MainWi

  • Qt-事件过滤及实例2022-03-21 16:03:57

        事件过滤器功能使得一个QObject对象可以监视另一个QObject对象中的事件,通过在一个QObject对象中安装事件过滤器,可以在事件到达该对象前捕获事件,从而起到监视该对象的作用。     例如,实现按下按钮时,按钮上的文字为“Key Down”,松开按钮时,按钮上的文字为“Key Up”,创建一个Q

  • Qt-网络应用开发初步2022-03-21 13:06:29

        通过调用服务端接口,解析返回的json数据。此例子在Qt Creator中创建    1.  .pro文件     在文件中添加如下语句: QT += network     若在VS中创建Qt项目,则在.h或.cpp文件中添加头文件"#include <QNetwork>" 即可    2. mainwindow.h #ifndef MAINWINDOW_H #define M

  • QT学习 - 基本窗口部件 (代码实现)2022-03-02 21:35:05

    1、创建QMainwindow项目 有些QT版本需要在 *.pro 文件中 添加配置 CONFIG += c++11 2、代码如下: #include "mainwindow.h" #include <QMenuBar> #include <QMenu> #include <QToolBar> #include <QPushButton> #include <QDebug> #include <QDialog> #

  • Qt-Qt使用QRegExp实现正则表达式处理(Qt5.14.2+win10)2022-02-25 16:32:45

    相关资料: 实例代码: .pro 1 QT += core gui 2 3 greaterThan(QT_MAJOR_VERSION, 4): QT += widgets 4 5 CONFIG += c++11 6 7 # The following define makes your compiler emit warnings if you use 8 # any Qt feature that has been marked deprecated (the

  • Qt使用Iconfont2022-02-21 01:00:36

    将下载的iconfont加载为资源 #include "mainwindow.h" #include "ui_mainwindow.h" #include <QFontDatabase> MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWindow) { ui->setupUi(this); //引入

  • 封装 公共 window2022-02-06 16:05:03

    const { BrowserWindow } = require('electron') class AppWindow extends BrowserWindow {     constructor(config,urlLocation){         const basicConfig = {             width:1024,             height:680,             webPreferences:{  

  • .net NLog2022-02-03 23:57:59

    添加依赖 <ItemGroup> <PackageReference Include="NLog" Version="4.7.13" /> <PackageReference Include="NLog.Config" Version="4.7.13" /> <PackageReference Include="NLog.Schema"

  • Qt Creator编译,存在中文导致错误: error: C2001: 常量中有换行符2022-02-03 20:04:33

    今天使用 Qt Creator 创建工程,在代码中用到 qDebug 函数来输出提示信息, #include <QDebug> MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent) , ui(new Ui::MainWindow) { ... qDebug() << "模态对话框弹出了."; ... } 但是提示报错。 使用

  • WPF入门XAML详解2022-02-02 01:31:54

    XAML XAML(Extensible Applications Markup Language)用于实例化.net对象的标记语言。 创建一个WPF应用程序,生成的基本框架如下: <Window x:Class="_001XAML.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://

  • QT5 动态链接库的创建和使用(QT自己做动态库给自己使用)2022-01-29 22:04:23

    QT5 动态链接库的创建和使用(QT自己做动态库给自己使用) 记录一下QT5 动态链接库的创建和使用 在文章的最后有完成的代码供下载 1.创建动态链接库 先新建一个库项目 选择chose进入下一下页面,类型选择共享库,输入一个名称:我输入的是sld 再点击下一步到 如果这里我们需要QtGui所以

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有