A
Anonymous
30 января 2020 г. 20:44
A
Anonymous
4 декабря 2019 г. 19:52

public class MainActivity extends AppCompatActivity {

    private Button mAddButton;
    private Button mConnectButton;
    TCPWorker UniTimer;
    @Override
    protected void onCreate(Bundle 
BlinCT
6 ноября 2019 г. 21:07

bool CNvmeDevice::open(const QString& devName)
{
    if (!BaseDevice::open(devName))
        return false;

    if (!get_nsid())
    {
        // Use actual NSID (/dev/nvmeXnN) if available,
 
BlinCT
1 ноября 2019 г. 23:46

ComboBox
    {
        id: comboBoxDevices

        anchors.top: parent.top
        anchors.left: parent.left

        width: 200
        model: pDevices

        delegate: ItemDelegate
   
BlinCT
30 октября 2019 г. 14:24

ComboBox
    {
        id: comboBoxDevices

        anchors.top: parent.top
        anchors.left: parent.left

        width: 200
        model: pDevices

        delegate: ItemDelegate
   
Evgenii Legotckoi
23 октября 2019 г. 17:24

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
Evgenii Legotckoi
30 июля 2019 г. 17:32

QObject* obj = new QObject();
obj->setProperty("first", 1);
obj->setProperty("second", 2);
QMap<QString, QVariant> propertyNamesToValues;
for (const QString& name : obj->dynamicPropertyNames())
{
linq
29 июля 2019 г. 21:11

void TankItemWidget::slotShowWidget(Values *values)
{
    if(!shown)
    {
        this->resize(400, 600);
        this->updateGeometry();
        //this->paint
        this->show();
        s
Evgenii Legotckoi
22 июля 2019 г. 17:25

connect(ui->okButton, &QPushButton::clicked, this, &MainWindow::mySlot);
// ui->okButton заменить на свой виджет, который был добавлен на форум
// &QPushButton::clicked заменить на свой сигнла
// &
linq
19 июля 2019 г. 15:16

// к сигналу подключается лямбда функция, 
// которая захватывает объект, в котором она создана через this, 
// а также какаю-то модель данных model, очевидно, она создана через new, то есть это ука
Evgenii Legotckoi
17 июля 2019 г. 20:34

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
12 июля 2019 г. 19:58

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
12 июля 2019 г. 18:32

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
11 июля 2019 г. 4:45

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
18 июня 2019 г. 11:52
A
Anonymous
9 мая 2019 г. 20:32

#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
7 апреля 2019 г. 20:41
BlinCT
28 марта 2019 г. 19:04

// char* = "";
// char* = NULL;
str answer = str( getenv( "string" ) );
if(!answer.empty())
  return answer;
Evgenii Legotckoi
28 марта 2019 г. 14:40

#include <iostream>

class A
{
public:
    A()
    {
    }

    void virtual initialize()
    {
        std::cout << "A" << std::endl;
    }
};

class B : public A
{
public:
    B() 
Evgenii Legotckoi
28 марта 2019 г. 14:38

#include <iostream>

class A
{
public:
    A()
    {
        initialize();
    }

    void virtual initialize()
    {
        std::cout << "A" << std::endl;
    }
};

class B : public