Giter Site home page Giter Site logo

pitaya's Introduction

pitaya's People

Contributors

outliwer avatar humfrey28whu avatar

Stargazers

 avatar Zhang Shuo avatar  avatar  avatar  avatar  avatar WangJianjun avatar pipifoo.CN avatar Hubery Hsu avatar  avatar  avatar  avatar

Watchers

gsq avatar

Forkers

leowong0415

pitaya's Issues

QIODevice::write: device not open” when file is open

  • 这是一个常见的问题,在之前对于读取文件之后也存在这个问题:
  • 原因在于:没有正确定位到文件详细地址
  • 可能出现场景:
    • 直接使用资源文件中的文件进行写入(目前试验仅可用于读取)
    • 对于文件选取框架(系统默认 QString fileName = QFileDialog::getOpenFileName(this, tr("open file"), "", tr("TxtFile(*.txt);;AllFile(*.*)"));)直接使用读取的方式也会出现device not open

对于目录树实现项目的增加、修改与删除

  • 目前已经完成目录树正常响应的使用
  • 但是对于项目的增加、修改与删除还未完成
  • 目前思路:在内存中维持一个最新的根节点 root(从最开始就维持),通过进行节点信息的修改进行文件的重新导入完成这项操作,这样数据重新导入的工作可以放到析构函数之中(之前对于导入目录loadDirectory)的方法需要部分修改)
    • 增加
      • 在特定的目录之下增加:获得当前目录,同时根据当前目录创建一个文件,更新root进行数据重导入
    • 修改
      • 同上
    • 删除
      • 同上

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.