E
E
Egorithm2017-02-03 14:45:33
Qt
Egorithm, 2017-02-03 14:45:33

Why create an object within an object?

I saw such a design, and something shorted out in my head. I don't understand how to do that.

#include "mydialogwindow.h"
#include "ui_mydialogwindow.h"

MyDialogWindow::MyDialogWindow(QWidget *parent) :
    QDialog(parent),
    ui(new Ui::MyDialogWindow)
{
    ui->setupUi(this);
    /*code*/ 
}

Why, inside the MyDialogWindow object, create a MyDialogWindow object?
This should give infinite recursion:ui(new Ui::MyDialogWindow)

Answer the question

In order to leave comments, you need to log in

6 answer(s)
J
Jacob E, 2017-02-03
@EgoRusMarch

Ctrl + click here, everything will become clear:
#include "ui_mydialogwindow.h"

O
oh, 2017-09-06
well @AnneSmith

layout is evaluated by code validators and the accessibility validator

V
Vladislav Sofienko, 2017-09-06
@sofvlad

A small minus.
And this bright gray text color on a white background just strains my eyes. In general, adaptability is not bad.
PS I did not look at the layout itself as implemented, only by running html, to check that the semantics are present.

N
Nubbin, 2017-09-06
@Nubbin

Slamzil, 100%.
I saw this template where is the one, now I will find it!

I
Ivan Bogachev, 2017-09-06
@sfi0zy

What needs to be fixed?

Availability. In particular, the issues of contrast elements. If a designer gives you such a bug, you simply have to fix it. In particular, the state of the elements:
Do you see the difference? And she is. You and I may notice it, but the user does not.
In general, everything is sad with the focus, you can’t normally tab the page - the focus flies in an unknown direction and half the page is somewhere there. Well, blue frames - not comme il faut.

M
Maxim, 2017-09-06
@MaxGraph

One thing that catches the eye (or rather, not really) is the social icons. not everyone will see networks :)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question