A
Anonymous
Қаң. 30, 2020, 8:44 Т.Қ.
A
Anonymous
Жел. 4, 2019, 7:52 Т.Қ.

public class MainActivity extends AppCompatActivity {

    private Button mAddButton;
    private Button mConnectButton;
    TCPWorker UniTimer;
    @Override
    protected void onCreate(Bundle 
BlinCT
Қар. 6, 2019, 9: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, 11:46 Т.Қ.

ComboBox
    {
        id: comboBoxDevices

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

        width: 200
        model: pDevices

        delegate: ItemDelegate
   
BlinCT
Қаз. 30, 2019, 2:24 Т.Қ.

ComboBox
    {
        id: comboBoxDevices

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

        width: 200
        model: pDevices

        delegate: ItemDelegate
   
Evgenii Legotckoi
Қаз. 23, 2019, 5: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, 5: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, 9:11 Т.Қ.

void TankItemWidget::slotShowWidget(Values *values)
{
    if(!shown)
    {
        this->resize(400, 600);
        this->updateGeometry();
        //this->paint
        this->show();
        s
Evgenii Legotckoi
Шілде 22, 2019, 5:25 Т.Қ.

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

// к сигналу подключается лямбда функция, 
// которая захватывает объект, в котором она создана через this, 
// а также какаю-то модель данных model, очевидно, она создана через new, то есть это ука
Evgenii Legotckoi
Шілде 17, 2019, 8: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, 7: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, 6: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, 8: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, 8:41 Т.Қ.
BlinCT
Наурыз 28, 2019, 7:04 Т.Қ.

// char* = "";
// char* = NULL;
str answer = str( getenv( "string" ) );
if(!answer.empty())
  return answer;
Evgenii Legotckoi
Наурыз 28, 2019, 2: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, 2:38 Т.Қ.

#include <iostream>

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

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

class B : public