2012-07-25 112 views
5

對於Qt qmake variables我有時會看到不同的符號。

例子

$$PWD 
$${PWD} 

對於我來說,似乎工作一樣,有什麼區別?

回答

5

根據documentation這兩個符號幾乎相同。唯一的區別是the second notation allows you to append the contents of the variable to another value without separating the two with a space

+0

良好的提示,不知何故,我錯過了這一點。謝謝 – 2012-07-26 10:08:29

+0

該鏈接後面的頁面沒有提到qmake,我在鏈接圖中找不到「靠近」它的頁面。 – Grault 2013-06-02 22:09:49

+0

@Jesdisciple非常感謝您通知我。確實,這個鏈接不再有效。我已經取代它。 – Bill 2013-06-03 07:56:32