env: I use vscode ssh remote plug-in link ubuntu20.04(it run in orangepi3b, I don't know if that's the problem.)
question:
1.1 when I ctrl + mouse leftclick, after clicking open() function is not into usr/include/fcntl.h function declaration, but into usr/include/aarch64-linux-gnu/bits/fcntl2.h function definition.
1.2 read() function also into usr/include/aarch64-linux-gnu/bits/unistd.h function definition.
1.3 open() and read() can show the smart tip.The truncate()function does not have a smart tip.
All the code I've written compiles with gcc and it can run.
how to solve these question.
Modify includePath, browse.path, compilerPath, intelliSenseMode in c_cpp_properties.json.
1.1 includePath and browse.path to add the paths that have been commented out.
1.2 intelliSenseMode change to "linux-gcc-x64", "linux-gcc-arm64", "linux-gcc-x86", "linux-gcc-arm".
1.3 compilerPath to "aarch64-linux-gnu-gcc"
Reinstalling the system on orangepi3b(ubuntu 20.04)
[list] [*]env: I use vscode ssh remote plug-in link ubuntu20.04(it run in orangepi3b, I don't know if that's the problem.) [*]question: 1.1 when I ctrl + mouse leftclick, after clicking open() function is not into usr/include/fcntl.h function declaration, but into usr/include/aarch64-linux-gnu/bits/fcntl2.h function definition. 1.2 read() function also into usr/include/aarch64-linux-gnu/bits/unistd.h function definition. 1.3 open() and read() can show the smart tip.The truncate()function does not have a smart tip. [/list] All the code I've written [b]compiles with gcc and it can run[/b]. how to solve these question. [list] [*]this is my c_cpp_properties.json: [/list] { "configurations": [ { "name": "Linux", "includePath": [ // "/usr/include", // "/usr/include/aarch64-linux-gnu", "${workspaceFolder}/**" ], "browse": { "path": [ // "/usr/include", // "/usr/include/aarch64-linux-gnu", "${workspaceFolder}/**" ] // "limitSymbolsToIncludedHeaders": true }, "defines": [], "compilerPath": "/usr/bin/gcc", "cStandard": "c11", "cppStandard": "c++17", "intelliSenseMode": "linux-gcc-x64" } ], "version": 4 } c_cpp_properties.json [list] [*] using truncate(): using truncate() [*] using read(): using read() [*] this is the error: open() error read() error [/list] [b]my try[/b]: [list] [*] Modify includePath, browse.path, compilerPath, intelliSenseMode in c_cpp_properties.json. 1.1 includePath and browse.path to add the paths that have been commented out. 1.2 [b]intelliSenseMode[/b] change to "linux-gcc-x64", "linux-gcc-arm64", "linux-gcc-x86", "linux-gcc-arm". 1.3 [b]compilerPath[/b] to "aarch64-linux-gnu-gcc" [*] Reinstalling the system on orangepi3b(ubuntu 20.04) [/list]
В jQuery я использую этот код, чтобы отключить мыши правой кнопкой мыши по умолчанию, но он включен правой кнопкой мыши только на изображениях
$(document).bind( contextmenu , function(e) {
if(e.target.tagName.toLowerCase() === 'img'){
return...
В jQuery я использую этот код, чтобы отключить мыши правой кнопкой мыши по умолчанию, но он включен правой кнопкой мыши только на изображениях
$(document).bind( contextmenu , function(e) {
if(e.target.tagName.toLowerCase() === 'img'){
return...
Я пытаюсь создать такую функцию, в которой, когда я нажимаю на слово в QTextEdit, появляется окно QMessage, единственная проблема в том, что оно работает для правого щелчка, но для левого щелчка оно не работает. и если я удалю event-\>button() ==...
Я пытаюсь создать такую функцию, в которой, когда я нажимаю на слово в QTextEdit, появляется окно QMessage, единственная проблема в том, что оно работает для правого щелчка, но для левого щелчка оно не работает. и если я удалю event->button() ==...