Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. International
  3. Chinese
  4. QT程序在光盘上运行速度非常慢,求解决方案

QT程序在光盘上运行速度非常慢,求解决方案

Scheduled Pinned Locked Moved Chinese
4 Posts 3 Posters 3.1k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    huajin
    wrote on last edited by
    #1

    我用QT做了一个简单的demo放入到DVD光盘,每次插入电脑,第一次启动非常慢,需要2分钟左右,我的demo就是显示一个Button而已,然后以后再启动就只需要一秒钟而已。然后我改用VB或则MFC之类的软件放入同样的DVD光盘,却启动非常快。我大概估计是QT在QApplication初始化的时候非常慢,每次第一次启动时,光盘在飞快读取中,然后硬盘也在飞快的写入中(通过光盘和硬盘的读写指示灯感觉的)。

    1 Reply Last reply
    0
    • J Offline
      J Offline
      jiangcaiyang
      wrote on last edited by
      #2

      你将Qt程序的dll组件都放在DVD中了?如果是这样的,那还听正常的。因为windows要装载dll啊。MFC、VB或win32的dll在本地磁盘呢。

      1 Reply Last reply
      0
      • H Offline
        H Offline
        huajin
        wrote on last edited by
        #3

        有什么好的解决方案吗??启动非常慢,用vc++编译的QT需要40秒左右

        1 Reply Last reply
        0
        • V Offline
          V Offline
          Vincent007
          wrote on last edited by
          #4
          1. delete unnecessary dll files.
          2. use static link if you can distribute your object code because of LGPL.
          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved