Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
QT の QDate タイプで日付検索を実行しようとしています。現在、指定された時刻の QDate と、検索する範囲を提供する 2 つの QDate があります。アイテムが範囲内にある場合は、true を返す必要があります。
QDate item = Apr 22nd 2013 QDate startSearch = Apr 1st 2013 QDate endSearch = Apr 30th 2013
これを行う組み込み関数を認識していません。提案はありますか?
どうですか:
bool withinRange = (item >= startSearch && item <= endSearch);