A
Anonymous
Jan. 30, 2020, 8:44 p.m.A
Anonymous
Dec. 4, 2019, 7:52 p.m.Untitled
public class MainActivity extends AppCompatActivity { private Button mAddButton; private Button mConnectButton; TCPWorker UniTimer; @Override protected void onCreate(Bundle
Untitled
bool CNvmeDevice::open(const QString& devName) { if (!BaseDevice::open(devName)) return false; if (!get_nsid()) { // Use actual NSID (/dev/nvmeXnN) if available,
Untitled
ComboBox { id: comboBoxDevices anchors.top: parent.top anchors.left: parent.left width: 200 model: pDevices delegate: ItemDelegate
Untitled
ComboBox { id: comboBoxDevices anchors.top: parent.top anchors.left: parent.left width: 200 model: pDevices delegate: ItemDelegate
dictionary for s_k
var s_k = 0; var A = 222; var map_value_to_s_k = {}; map_value_to_s_k[100] = 1; map_value_to_s_k[200] = 2; map_value_to_s_k[300] = 3; map_value_to_s_k[400] = 4; map_value_to_s_k[500] = 5; ma
dynamic properties
QObject* obj = new QObject(); obj->setProperty("first", 1); obj->setProperty("second", 2); QMap<QString, QVariant> propertyNamesToValues; for (const QString& name : obj->dynamicPropertyNames()) {
Untitled
void TankItemWidget::slotShowWidget(Values *values) { if(!shown) { this->resize(400, 600); this->updateGeometry(); //this->paint this->show(); s
connect signal slot
connect(ui->okButton, &QPushButton::clicked, this, &MainWindow::mySlot); // ui->okButton заменить на свой виджет, который был добавлен на форум // &QPushButton::clicked заменить на свой сигнла // &
123
// к сигналу подключается лямбда функция, // которая захватывает объект, в котором она создана через this, // а также какаю-то модель данных model, очевидно, она создана через new, то есть это ука
QVector iterator
QVector<QWidget*> m_widgets; QVector<QWidget*>::iterator it = m_widget.begin(); m_widgets.resize(16); for (int i = 0; i < 16; ++i) { QWidget* w = new QWidget(); *it = w; it++; }
A
Anonymous
July 12, 2019, 7:58 p.m.getData
function getData($ip, $json = false){ $content = []; $ripe = file_get_contents('http://rest.db.ripe.net/search.json?query-string='.$ip); $json = json_decode($ripe, true); for($i =
A
Anonymous
July 12, 2019, 6:32 p.m.getData
function getData($ip){ $content = []; $ripe = file_get_contents('http://rest.db.ripe.net/search.json?query-string='.$ip); $json = json_decode($ripe, true); for($i = 0;$i < count($j
A
Anonymous
July 11, 2019, 4:45 a.m.ip
function getData($ip){ $content = []; $ripe = file_get_contents('http://rest.db.ripe.net/search.json?query-string='.$ip); $json = json_decode($ripe, true); for($i = 0;$i < count($j
A
Anonymous
June 18, 2019, 11:52 a.m.A
Anonymous
May 9, 2019, 8:32 p.m.Untitled
#include "widget.h" #include "ui_widget.h" Widget::Widget(QWidget *parent) : QWidget(parent), ui(new Ui::Widget) { ui->setupUi(this); this->resize(600,600); // Задае
A
Anonymous
April 7, 2019, 8:41 p.m.Untitled
// char* = ""; // char* = NULL; str answer = str( getenv( "string" ) ); if(!answer.empty()) return answer;
Use initialize method
#include <iostream> class A { public: A() { } void virtual initialize() { std::cout << "A" << std::endl; } }; class B : public A { public: B()
Don`t invoke virtual methods in constructor
#include <iostream> class A { public: A() { initialize(); } void virtual initialize() { std::cout << "A" << std::endl; } }; class B : public
- Last comments
- VPMarch 9, 2025, 4:14 p.m.Здравствуйте! Я устанавливал Qt6 из исходников а также Qt Creator по отдельности. Все компоненты, связанные с разработкой для Android, установлены. Кроме одного... Когда пытаюсь скомпилиров…
- ИМNov. 22, 2024, 9:51 p.m.Добрый вечер Евгений! Я сделал себе авторизацию аналогичную вашей, все работает, кроме возврата к предидущей странице. Редеректит всегда на главную, хотя в логах сервера вижу запросы на правильн…
- Подскажите как это запустить? Я не шарю в программировании и кодинге. Скачал и установаил Qt, но куча ошибок выдается и не запустить. А очень надо fb3 переконвертировать в html
- Now discuss on the forum
- fFeb. 15, 2025, 1:46 p.m.Подскажите, пожалуйста! Как данный класс можно дополнить, чтобы созданные объекты можно было перемещать мышкой по сцене?
- Не запускается компьютер (точнее работает блок , но сам монитор вообще жесть)В общем я ничего с интернета не скачивала в последнее время. На компе никаких левых пр…
- Вопрос решен. Узнать QModelIndex элемента на который мы перетаскиваем другой элемент, можно с помощью функции indexAt(event->position().toPoint()) представления QTreeViev вызываемой в переопр…
- Спасибо большое за помощь и простите за то что отнял время своей невнимательностью.