1
0
mirror of https://gitee.com/drabel/LibQQt.git synced 2025-01-04 10:18:44 +08:00
tianduanrui b146c581ad fix qqtorderedmap.h for msvc building.
QQtOrderedDictionary 在 MSVC2015 环境里,导出正常。
2021-04-23 11:30:50 +08:00

43 lines
838 B
C++
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#include "mainwindow.h"
#include "ui_mainwindow.h"
#include <qqtcore.h>
// 2021年4月1日
// BAD EXPORT FOUND [MSVC2015]
// MSVC2015不使用QQtOrderedDictionary就可以了其他模块正常。
// 2021年4月23日
// 已解决。
// MSVC2015QQtOrderedDictionary导出正常。
#include <qqtorderedmap.h>
#include <qqtordereddictionary.h>
#include <qqtdicthelper.h>
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::MainWindow)
{
ui->setupUi(this);
pline() << "aaa";
QQtOrderedDictionary d2;
d2["b"] = 'b';
d2["a"] = 'a';
d2["c"] = "This is a string.";
d2["d"] = QQtOrderedDictionary();
d2["d"]["d_1"] = "What? coming?";
pline() << d2;
pline() << d2["d"];
}
MainWindow::~MainWindow()
{
delete ui;
}