July 22, 2019, 7:25 a.m.
Evgenij Legotskoj

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

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

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++;
}
July 17, 2019, 10:32 a.m.
Evgenij Legotskoj

QVector<QWidget*> m_widgets;
m_widgets.resize(16);
for (int i = 0; i < 16; ++i)
{
    QWidget* w = new QWidget();
    m_widgets.push_back(w);
}
A
July 12, 2019, 9:58 a.m.
Anonymous

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
July 12, 2019, 8:32 a.m.
Anonymous

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
July 10, 2019, 6:45 p.m.
Anonymous

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
June 18, 2019, 1:52 a.m.
Anonymous

<? echo 'Hello world' ?>
A
May 9, 2019, 10:32 a.m.
Anonymous

#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
April 7, 2019, 10:41 a.m.
Anonymous

fvxcvxcv
March 28, 2019, 9:04 a.m.
BlinCT

// char* = "";
// char* = NULL;
str answer = str( getenv( "string" ) );
if(!answer.empty())
  return answer;
March 28, 2019, 4:40 a.m.
Evgenij Legotskoj

#include <iostream>

class A
{
public:
    A()
    {
    }

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

class B : public A
{
public:
    B() 
March 28, 2019, 4:38 a.m.
Evgenij Legotskoj

#include <iostream>

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

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

class B : public 
March 14, 2019, 4:20 a.m.
Evgenij Legotskoj

QSqlQuery query("SELECT * FROM artist");
int fieldNo = query.record().indexOf("country");
while (query.next()) {
    QString country = query.value(fieldNo).toString();
    doSomething(country);
}
A
March 11, 2019, 6:31 p.m.
Anonymous

оли
Feb. 28, 2019, 3:15 p.m.
BlinCT

JobSessionState::type CBackupJobSession::FromVac(const JobState& state)
{
//    enum type
//    {
//        SessionPending = 0,
//        SessionInProgress = 1,            //
//        SessionFi
Feb. 16, 2019, 10 a.m.
BlinCT

ldd ValClientTest 
        linux-vdso.so.1 (0x00007ffff4bcb000)
        libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f53d9d7a000)
        libblkid.so.1 => /lib/x86_64-linux-gnu/libblkid.s
A
Jan. 29, 2019, 3:12 p.m.
Anonymous

#include <iostream>
#include <stack>

using namespace std;

stack <int> st;

int main() {
    freopen("a.out", "w", stdout);

    for (int i = 0; i < 5; i++)
        st.push(i);

    cout
Jan. 24, 2019, 6:16 a.m.
BlinCT

// IBackupJob реализовывает класс CbackupJob
std::vector<shared_ptr<IBackupJob>> CValProduct::GetBackupJobs() const
{
    try
    {
        std::vector<std::shared_ptr<CBackupJob>> vecSers; // Ду
Jan. 9, 2019, 1:36 p.m.
BlinCT

import QtQuick 2.9
import QtQuick.Controls 2.2
import QtQuick.Layouts 1.3
import QtQuick.Controls.Material 2.2
Looking for a Job?
5,000.00 руб. - 15,000.00 руб.
Дизайнер
Moskovskiy, Moscow, Russia
25,000.00 руб. - 30,000.00 руб.
Разработчик Qt/C++
Barnaul, Altai Krai, Russia

For registered users on the site there is a minimum amount of advertising

EVILEG
About
Services
Join us
© EVILEG 2015-2019
Recommend hosting TIMEWEB