cplusplusqt | Unsorted

Telegram-канал cplusplusqt - C++ & Qt

1169

Link: @CplusplusQt Embedded: @EMBCpp • Allowed Topics: C++ and everything related to Qt • Use only English • No Private Message without asking user's permission • No NSFW • No Spam • No unauthorized Bots • No Offtopic • No Self Promotions

Subscribe to a channel

C++ & Qt

the thing is that I need to get stream metadata while streaming the audio

Читать полностью…

C++ & Qt

hi guys qt support chromebook?

Читать полностью…

C++ & Qt

I set

        .depthTestEnable = VK_FALSE,
.depthWriteEnable = VK_FALSE,
.depthCompareOp = VK_COMPARE_OP_LESS,
for VkPipelineDepthStencilStateCreateInfo when configure graphics pipeline, but all standard Quick Items works badly if I use z value as z coordinate for vertices in my custom QQuickItem with Vulkan RHI backend.
It looks they have variable z coordinate across parent window viewport. In Renderdoc I see, that they even not write anything into z-buffer (but seems they depth-test it).

Читать полностью…

C++ & Qt

Hi. I have a Q3DScatter graph.
Its axis are configured this way:

    m_graph->axisX()->setRange(-horizontalRange, horizontalRange);
m_graph->axisY()->setRange(-verticalRange, verticalRange);
m_graph->axisZ()->setRange(-horizontalRange, horizontalRange);
m_graph->axisX()->setSegmentCount(int(horizontalRange));
m_graph->axisY()->setSegmentCount(int(verticalRange));
m_graph->axisZ()->setSegmentCount(int(horizontalRange));


where horizontalRange and verticalRange are both 16.0f.
Now, I'm trying to move an item along a given trace. So for example, I'm trying to move an item along a circle. I define the circle using its parametric equations, that is x = rcost, y = rsint. everything is fine except that on horizontalPlane the trace is a perfect circle whereas on OXY (vertical) plane the trace is an ellypse. But its weird, given that this is a graph there has to be consistency between different axis. And yet, the coordinates on Y axis and the coordinates on X axis aren't consistent which results in an ellypse. Any idea why it is this way?

Читать полностью…

C++ & Qt

Why? What's the actual issue?

Читать полностью…

C++ & Qt

On touch screens, try the clicked() signal

Читать полностью…

C++ & Qt

Hi, when I use the QPushButton press signal, it works fine with the mouse, but it doesn't work properly with touch, please guide me.

Читать полностью…

C++ & Qt

thanks so much. I can't believe I didn't catch this before

Читать полностью…

C++ & Qt

QString upper = lower.left(1).toUpper() + lower.mid(1)

Читать полностью…

C++ & Qt

My QSQLite database initialized w/o error, but it doesn't write to disk? What do you think is going wrong in my init file ?

Читать полностью…

C++ & Qt

Connect the textChanged signal to a function that makes the first character uppercase

Читать полностью…

C++ & Qt

How do I always change the LineEdit first character to uppercase

Читать полностью…

C++ & Qt

I try to implement that you say...but server doesn't read & error occurred.

Читать полностью…

C++ & Qt

client.cpp
QByteArray byteArray = str.toUtf8();
byteArray.prepend(header);

int bytes_written = 0;
while (1){
if(bytes_written == byteArray.size()) break;
int written = socket->write(byteArray.mid(bytes_written,1),1);//1Byte
bytes_written += written;
socket->waitForBytesWritten();
}

Читать полностью…

C++ & Qt

Is this some defect of moc or correct behavior?

Читать полностью…

C++ & Qt

hi guys qt support chromebook??

Читать полностью…

C++ & Qt

hi guys qt support chromebook?

Читать полностью…

C++ & Qt

Hi. Where is a place where in RHI QQuickItem::z is applied if backend is Vulkan?

Читать полностью…

C++ & Qt

The actual issue that Qt doesn't work well with touch devices

Читать полностью…

C++ & Qt

I tested but it didn't work

Читать полностью…

C++ & Qt

Welcome to the group, @cesargastonpe! :-)

Wanna share your story of how you started with Qt, QML or C++? Maybe some nice feature that made you stick with it.
Rules are set on the description of the group. :)

Читать полностью…

C++ & Qt

That's why you can always ask here!

Читать полностью…

C++ & Qt

And then you need to set the text in QLineEdit to upper, of course.

Читать полностью…

C++ & Qt

The second parameter in addDatabase() indicates the connection name, not the filename. You can set the filename with db.setDatabaseName(filename); before opening the database. That should work.

Читать полностью…

C++ & Qt

Come on, do not post the same thing on all topics. If you're proramming with Qt Widgets, post it only in here.

Читать полностью…

C++ & Qt

so far I have tried
auto var = ui->LineEdit->text()[0];
var = var.toUpper();

Читать полностью…

C++ & Qt

but that is unrelated to calculating the transfer speed... did you have a working code without the transfer speed calculation?

Читать полностью…

C++ & Qt

server.cpp

while(socket->waitForReadyRead()){
buffer.append(socket->readAll());}

Читать полностью…

C++ & Qt

Question regarding multiple qml engines

Qt Quick has QQmlEngine and QQmlContext. We can create multiple context such that the cpp objects have specified scope in qml. Can we create multiple engines? If we can create multiple engine whats the use case? And lastly.. whats the pros and cons of creating multiple engines?

Читать полностью…

C++ & Qt

If a template class A
template<typename T> class A;
it has a friend template operator ==
template <typename E> friend bool operator ==(const A&,const A<E>&){…}
But in my project I haven't called this function in the code, So this code will not be generated by the compiler in the end. Even though underlying type T or E isn’t overloading operator ==, this code should pass compiler check. But Qt6 will generate some code by moc to check these types have some function or not, It seems that moc can't determine whether the code is finally generated by the compiler.

Читать полностью…
Subscribe to a channel