天天看點

QT遇到問題貼

(1)     執行 qvfb &

        ./hello -qws時出現:

[[email protected] aclock]# ./aclock

QSocket::writeBlock: Socket is not open

QSocket::writeBlock: Socket is not open

QSocket::writeBlock: Socket is not open

QSocket::writeBlock: Socket is not open

No Qt/Embedded server appears to be running.

If you want to run aclock as a server,

add the

"-qws" command-line option.

[[email protected] aclock]# ./aclock -qws

Can't open framebuffer device /dev/fb0

Can't open framebuffer device /dev/fb0

driver cannot connect

 我解決的方法是重新設定QT、QT/E的環境變量 即可正常運作

 還有人解決方法如下:在了lilo.conf或grub.conf中加入

                               vga=0x314

                               或其他模式

                               303 (800x600x8)

                               301 (640x480x8)

                               305 (1024x768x8)

                               然後重新啟動就ok了